/*
 Theme Name:     Fairlinx Gateway (2025)
 Theme URI:      http://example.com/fairlinx-gateway/
 Description:    Custom theme for Fairlinx Gateway
 Author:         Richard Darell
 Author URI:     http://xenomusemedia.com
 Version:        1.0.0
*/

/* fallback */
@font-face {
    font-family: 'Material Symbols Outlined';
    font-style: normal;
    font-weight: 400;
    src: url(https://fairlinx.io/wp-content/themes/fairlinx-gateway/fonts/MaterialIcons-Outlined.woff2) format('woff2');
}

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background-color: #5b3997;
    font-family: 'Poppins', sans-serif;
    color: #ffffff;
}

h1 {
    font-size: 24px;
}

h2 {
    color: #ffffff;
}

input:focus {
    outline: none;
}

textarea:focus {
    outline: none;
}

/* Color variables */

:root {
    --brand-color: #4c2b7e;
    --interactive-color: #4c2b7e;
}

/* End */


.icon-large {
    font-size: 22px;
    margin-top: 5px;
    margin-left: 5px;
    font-weight: 100;
    user-select: none;
    pointer-events: none;
}

.icon-small {
    font-size: 14px;
}


.top-bar {
    width: 100%;
    height: 56px;
    background: var(--brand-color);
}

.top-logo-img {
    float: left;
    width: 20px;
    height: auto;
    margin: 14px 14px 0 14px;
    cursor: pointer;
    user-select: none;
}

.top-logo-text {
    float: left;
    font-size: 1.3125em;
    font-weight: bold;
    color: #fff;
    margin: 12px 0 0 0;
    cursor: pointer;
    user-select: none;
}

main {
    padding: 0 14px 0 14px;
}

.dashicons {
    user-select: none;
    pointer-events: none;
}

.dashboard-container {
    padding: 0 14px 0 14px;
}

.register-btn {
    width: 82px;
    height: 28px;
    color: #ffffff;
    font-size: 13px;
    text-align: center;
    padding-top: 8px;
    float: right;
    margin: 10px 10px 0 0;
    background: #5b3997;
    border-radius: 3px;
    cursor: pointer;
    user-select: none;
}

.login-btn {
    width: 64px;
    height: 28px;
    color: #ffffff;
    font-size: 13px;
    text-align: center;
    padding-top: 8px;
    float: right;
    margin: 10px 10px 0 0;
    background: #5b3997;
    border-radius: 3px;
    cursor: pointer;
    user-select: none;
}

.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 12px 20px 0 20px;
    background: white;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.login-container h2 {
    color: #333;
}

/* Media query for mobile devices */
@media (max-width: 600px) {
    .login-container {
        margin: 100px 20px;
    }
}

#login-form h2 {
    text-align: center;
    margin-bottom: 20px;
}

#login-form input {
    width: calc(100% - 20px);
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 3px;
}

#login-form button {
    width: 100%;
    padding: 10px;
    background: var(--brand-color);
    color: white;
    font-size: 16px;
    margin: 10px 0 20px 0;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

#login-form button:hover {
    background: #5b3997;
}

#message {
    margin-top: 10px;
    color: red;
}

.footer {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    width: 100%;
    text-align: center;
}

.footer p {
    margin: 0;
    color: #ffffff;
    font-size: 9px;
}

/* User menu */
.user-menu {
    position: absolute;
    top: 13px;
    right: 13px;
    z-index: 1000;
    display: inline-block;
}

.user-icon {
    cursor: pointer;
    background-color: #f1f1f1;
    width: 30px;  /* Width of the circle */
    height: 30px; /* Height of the circle */
    border-radius: 50%; /* Makes the container a circle */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5b3997;
}

.user-icon .dashicons-admin-users {
    font-size: 20px;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 5px;
    overflow: hidden;
    font-size: 13px;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s ease;
}

.dropdown-content a:hover {
    background-color: #dfcffa;
}

.menu-divider {
    width: 100%;
    height: 1px;
    background: #ddd;
}

/* Media Page */

.media-page-container {
    width: calc(100% - 28px);
    padding: 0 14px 0 14px;
}

.media-page-container h1 {
    float: left;
    user-select: none;
}

.add-media-btn {
    float: right;
    width: 64px;
    height: 28px;
    color: #ffffff;
    font-size: 13px;
    text-align: center;
    padding-top: 8px;
    background: var(--brand-color);
    border-radius: 3px;
    cursor: pointer;
    margin-top: 20px;
    user-select: none;
}

.sort-media-btn {
    float: right;
    width: 68px;
    height: 28px;
    color: #ffffff;
    font-size: 13px;
    text-align: center;
    padding-top: 8px;
    background: var(--brand-color);
    border-radius: 3px;
    cursor: pointer;
    margin-top: 30px;
    user-select: none;
    margin-left: 10px;
}

.media-container {
    float: left;
    width: calc(100% - 20px);
    height: auto;
    padding: 10px 10px 10px 10px;
    background: var(--brand-color);
    border-radius: 3px;
}

.add-media-window-one {
    display: none; /* Hide the window initially */
    position: fixed; /* Position it fixed to the screen */
    background: #7d59bd;
    padding: 10px;
    z-index: 1000; /* Ensure it appears above other elements */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    border-radius: 3px;
    
    -webkit-box-shadow: 0px 0px 19px -1px rgba(0,0,0,0.75);
    -moz-box-shadow: 0px 0px 19px -1px rgba(0,0,0,0.75);
    box-shadow: 0px 0px 19px -1px rgba(0,0,0,0.75);
}

.add-media-window-two {
    display: none; /* Hide the window initially */
    position: fixed; /* Position it fixed to the screen */
    background: #7d59bd;
    padding: 10px;
    z-index: 1000; /* Ensure it appears above other elements */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    border-radius: 3px;
    
    -webkit-box-shadow: 0px 0px 19px -1px rgba(0,0,0,0.75);
    -moz-box-shadow: 0px 0px 19px -1px rgba(0,0,0,0.75);
    box-shadow: 0px 0px 19px -1px rgba(0,0,0,0.75);
}

.add-media-window-preview {
    display: none; /* Hide the window initially */
    position: fixed; /* Position it fixed to the screen */
    background: #7d59bd;
    padding: 10px;
    z-index: 1000; /* Ensure it appears above other elements */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    border-radius: 3px;
    
    -webkit-box-shadow: 0px 0px 19px -1px rgba(0,0,0,0.75);
    -moz-box-shadow: 0px 0px 19px -1px rgba(0,0,0,0.75);
    box-shadow: 0px 0px 19px -1px rgba(0,0,0,0.75);
}


.add-media-window-title {
    float: left;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    user-select: none;
}

.add-media-close-btn {
    float: right;
    width: 18px;
    height: 22px;
    background: var(--brand-color);
    color: #fff;
    border-radius: 3px;
    padding-top: -1px;
    padding-left: 4px;
    user-select: none;
    cursor: pointer;
}

.add-media-window-input-full {
    width: calc(100% - 14px);
    height: 31px;
    border: none;
    border-radius: 3px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    padding-left: 10px;
    font-weight: normal;
    margin-bottom: 10px;
}

.add-media-window-input-select-half {
    float: left;
    width: calc(50% - 10px);
    height: 31px;
    border: none;
    border-radius: 3px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    padding-left: 6px;
    font-weight: normal;
    margin-bottom: 10px;
    margin-right: 10px;
}

.form-separator {
    width: calc(100%-10px);
    height: 10px;
}


/* General Dropdown Styles */
.dropdown {
    float: left;
    width: calc(100% - 2px);
    height: 33px;
    border: none;
    border-radius: 3px;
    font-size: 13px;
    background: #ffffff;
    /* position: relative; */
    user-select: none;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 10px;
}

/* Header of the dropdown */
.dropdown-header {
    height: 20px;
    padding-top: 6px;
    padding-left: 0;
    border: 1px solid #fff;
    border-radius: 3px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

/* Title inside the header */
.add-media-dropdown-title {
    font-size: 13px;
    color: #777;
    padding-left: 8px;
}

.dropdown-category-selection-title {
    float: left;
    height: 20px;
    width: auto;
    padding: 5px 10px 4px 10px;
    color: #fff;
    background: #7d59bd;
    margin-right: 9px;
    margin-left: -6px;
    border-radius: 3px;
}

.dropdown-category-selection-title-info {
    float: left;
    height: 20px;
    color: #000;
    padding: 6px 0 4px 0;
    margin-left: 0;
}

/* Arrow for dropdown indicator */
.dropdown-arrow {
    color: #777;
    font-size: 12px;
    transform: rotate(0);
    transition: transform 0.2s ease;
    margin-right: 10px;

}

.dropdown-arrow.open {
    transform: rotate(-180deg);
}

/* Dropdown options container */
.dropdown-options {
    position: relative;
    font-size: 13px;
    color: #000;
    display: none;
    margin-top: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background: #fff;
    max-height: 306px;
    overflow-y: auto;
    z-index: 9999;
}

/* Show options when the dropdown is open */
.dropdown-options.show {
    display: block;
}

/* Individual options (main options and sub-options) */
.dropdown-option {
    width: calc(100% - 16px);
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    position: relative;
    background: #fff;
}

/* Hover effect for options */
.dropdown-option:hover {
    background: #f0f0f0;
}

/* Main option label */
.dropdown-option label {
    margin-left: 5px;
    cursor: pointer;
}

/* Sub-options container (nested under the main option) */
.sub-options {
    position: relative;
    display: none; /* Hidden by default */
    padding-left: 20px; /* Indentation for sub-options */
    background: #f8f8f8;
    cursor: pointer;
    z-index: 9999;
}

/* Show sub-options when toggled */
.sub-options.show {
    display: block;
}

.sub-options .sub-option:first-child {
    margin-bottom: 0px; /* Add margin to the last sub-option only */
    padding-top: 5px;
}

.sub-options .sub-option:last-child {
    margin-bottom: 0px; /* Add margin to the last sub-option only */
    padding-bottom: 1px;
}


/* Sub-option labels */
.sub-option label {
    margin-left: 5px;
    margin-top: 0px;
    margin-bottom: 5px;
    display: block;
    cursor: pointer;
}

/* Styling for checkboxes inside the dropdown */
.dropdown-option input,
.sub-option input {
    margin-right: 10px;
}

/* Main arrow */
.main-option-arrow {
    float: right;
    margin-right: 14px;
    font-size: 12px;
    color: #777;
    transition: transform 0.2s ease-in-out; /* Smooth transition */
    display: inline-block;
    margin-left: auto;
}

/* Rotated state */
.main-option-arrow.rotated {
    transform: rotate(180deg); /* Rotate 180 degrees */
}


/* Form divider line */
.form-divider-container {
    float: left;
    width: calc(100% - 3px);
    display: flex;
    margin-top: 6px;
    user-select: none;
}

.form-section-headline {
    font-size: 12px;
    color: #fff;
    margin-right: 10px;
}

.headline-top {
    margin-top: -6px;
}

.form-section-line {
    flex-grow: 1;
    height: 1px;
    background-color: #fff;
    margin-top: 9px;
}


.section-container {
    float: left;
    width: 100%;
    margin-bottom: 8px;
}

.form-topic-price-container {
    float: left;
    width: calc(50% - 7px);
    height: 33px;
    border-radius: 3px;
    margin-top: 10px;
    margin-right: 10px;
    background: #ffffff;
}

.topic-icon {
    float: left;
    width: 33px;
    height: 33px;
    background: #603c96;
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
    border: 0;
    /* cursor: pointer; */
}

.topic-label {
    float: left;
    width: 174px;
    height: 25px;
    background: #603c96;
    font-size: 11px;
    color: #fff;
    border: 0px;
    border-left: 1px solid #7d59bd;
    padding-left: 10px;
    padding-top: 8px;
    user-select: none;
}

.right-second {
    margin-right: 0;
}

.form-link-container {
    float: left;
    width: calc(100% - 4px);
    height: 33px;
    border-radius: 3px;
    margin-top: 10px;
    margin-right: 10px;
    background: #ffffff;
    /* border: 1px solid #660000; */
}

.add-media-page-nr {
    position: absolute;
    bottom: 10px;
    right: 70px;
    width: auto;
    height: 27px;
    padding: 8px 18px 0 18px;
    font-size: 12px;
    border-radius: 3px;
    margin: 0;
    user-select: none;
}

.add-media-page-nr-two {
    right: 90px;
}

.add-media-next-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: auto;
    height: 30px;
    padding: 8px 18px 0 18px;
    font-size: 14px;
    border-radius: 3px;
    background: #603c96;
    margin: 0;
    user-select: none;
    cursor: pointer;
}

.add-media-previous-btn {
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: auto;
    height: 30px;
    padding: 8px 18px 0 18px;
    font-size: 14px;
    border-radius: 3px;
    background: #603c96;
    margin: 0;
    user-select: none;
    cursor: pointer;
}

.add-media-submit-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: auto;
    height: 30px;
    padding: 8px 18px 0 18px;
    font-size: 14px;
    border-radius: 3px;
    background: var(--brand-color);
    margin: 0;
    user-select: none;
    cursor: pointer;
}

/* The switch - the box around the slider */
.switch {
    float: right;
    position: relative;
    display: inline-block;
    width: 66px;
    height: 33px;
    user-select: none;
    /*border-left: 1px solid #ff0000;*/
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #fff;
    -webkit-transition: .2s;
    transition: .2s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 29px;
    width: 32px;
    left: 2px;
    bottom: 2px;
    background-color: #7d59bd;
    -webkit-transition: .2s;
    transition: .2s;
}

input:checked + .slider {
    background-color: #fff;
}

input:focus + .slider {
    box-shadow: 0 0 1px #fff;
}

input:checked + .slider:before {
    -webkit-transform: translateX(30px);
    -ms-transform: translateX(30px);
    transform: translateX(30px);
}

.add-media-toggle-choice-yes {
    float: left;
    font-size: 12px;
    color: #000;
    margin: 8px 0 0 6px;
}

.add-media-toggle-choice-no {
    float: right;
    font-size: 12px;
    color: #000;
    margin: 8px 9px 0 0;
}

.add-media-textarea {
    width: calc(100% - 20px);
    height: 100px;
    border-radius: 3px;
    border: 0;
    background: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #000000;
    margin-top: 10px;
    padding: 10px 10px 10px 10px;
}


/* Dropdown percentage container */
.dropdown-percentage {
    position: relative;
    font-size: 13px;
    color: #000;
    display: none;
    margin-top: 2px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background: #fff;
    max-height: 300px;
    overflow-y: auto;
    z-index: 9999;
}

/* Show options when the dropdown is open */
.dropdown-percentage.show {
    display: block;
}

/* Individual options (main options and sub-options) */
.dropdown-percentage {
    width: calc(100% - 230px);
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    position: relative;
    background: #fff;
}

/* Hover effect for options */
.dropdown-percentage:hover {
    background: #f0f0f0;
}

/* Main option label */
.dropdown-percentage label {
    margin-left: 5px;
    cursor: pointer;
}

/* Media preview page */
.preview-section-title-color {
    color: #c7b2ed;
}

.media-preview-full-item {
    float: left;
    font-size: 17px;
    margin-top: 0;
}

.media-preview-category-item {
    float: left;
    font-size: 12px;
    background: #c7b2ed;
    border-radius: 3px;
    padding: 6px 8px 6px 8px;
    color: #fff;
    margin: 6px 10px 0 0;
}


/* Desktop styles */
@media (min-width: 768px) {
    .add-media-window {
        width: 600px; /* Fixed width for desktop */
        height: 660px; /* Fixed height for desktop */
        top: 10%; /* Adjust position as needed */
        left: 50%; /* Center horizontally */
        transform: translateX(-50%); /* Center horizontally */
    }

    .dropdown-half {
        float: left;
        width: calc(50% - 5px);
        height: 33px;
        border: none;
        border-radius: 3px;
        font-size: 15px;
        background: #ffffff;
        /* position: relative; */
        user-select: none;
        font-family: 'Poppins', sans-serif;
        margin-bottom: 10px;
    }

    .dropdown-half-left {
        margin-right: 8px;
    }
    
    .topic-label {
        float: left;
        width: 174px;
        height: 25px;
        background: #603c96;
        font-size: 11px;
        color: #fff;
        border: 0px;
        border-left: 1px solid #7d59bd;
        padding-left: 10px;
        padding-top: 8px;
        user-select: none;
    }
    
    .topic-price {
        float: right;
        width: calc(100% - 230px);
        height: 28px;
        font-size: 13px;
        text-align: right;
        padding-top: 3px;
        padding-right: 10px;
        border-top-right-radius: 3px;
        border-bottom-right-radius: 3px;
        border: 0;
    }
    
    .link-label {
        float: left;
        width: 466px;
        height: 25px;
        background: #603c96;
        font-size: 11px;
        color: #fff;
        border: 0px;
        border-left: 1px solid #7d59bd;
        padding-left: 10px;
        padding-top: 8px;
        user-select: none;
    }
    
    .link-number {
        float: right;
        width: calc(100% - 526px);
        height: 28px;
        font-size: 13px;
        text-align: right;
        padding-top: 3px;
        padding-right: 10px;
        border-top-right-radius: 3px;
        border-bottom-right-radius: 3px;
        border: 0;
    }
    
    .placement-label {
        float: left;
        width: 466px;
        height: 25px;
        background: #603c96;
        font-size: 11px;
        color: #fff;
        border: 0px;
        border-left: 1px solid #7d59bd;
        padding-left: 10px;
        padding-top: 8px;
        user-select: none;
    }
    
    .placement-choice {
        float: right;
        width: calc(100% - 235px);
        height: 28px;
        font-size: 15px;
        text-align: right;
        padding-top: 3px;
        padding-right: 10px;
        border-top-right-radius: 3px;
        border-bottom-right-radius: 3px;
        border: 0;
    }

}

/* Mobile styles */
@media (max-width: 767px) {
    .add-media-window {
        width: calc(100% - 40px); /* Full width minus padding on both sides */
        height: calc(100% - 40px); /* Full height minus padding on both sides */
        top: 20px; /* Padding from top */
        left: 20px; /* Padding from left */
        transform: none; /* Remove horizontal centering */
    }
    
    .dropdown-half {
        float: left;
        width: calc(100% - 2px);
        height: 33px;
        border: none;
        border-radius: 3px;
        font-size: 15px;
        background: #ffffff;
        /* position: relative; */
        user-select: none;
        font-family: 'Poppins', sans-serif;
        margin-bottom: 10px;
    }
    
    .dropdown-half-left {
        margin-right: 0;
    }
    
    .topic-label {
        float: left;
        width: 60px;
        height: 25px;
        background: #603c96;
        font-size: 11px;
        color: #fff;
        border: 0px;
        border-left: 1px solid #7d59bd;
        padding-left: 10px;
        padding-top: 8px;
        user-select: none;
    }
    
    .topic-price {
        float: right;
        width: calc(100% - 121px);
        height: 23px;
        font-size: 13px;
        text-align: right;
        padding-top: 5px;
        padding-right: 10px;
        border-top-right-radius: 3px;
        border-bottom-right-radius: 3px;
        border: 0;
    }
    
    .link-label {
        float: left;
        width: 240px;
        height: 25px;
        background: #603c96;
        font-size: 11px;
        color: #fff;
        border: 0px;
        border-left: 1px solid #7d59bd;
        padding-left: 10px;
        padding-top: 8px;
        user-select: none;
    }
    
    .link-number {
        float: right;
        width: calc(100% - 302px); /* 532 - 296 */
        height: 23px;
        font-size: 13px;
        text-align: right;
        padding-top: 5px;
        padding-right: 10px;
        border-top-right-radius: 3px;
        border-bottom-right-radius: 3px;
        border: 0;
        /*border-left: 1px solid #ff0000; */
    }
    
    .placement-label {
        float: left;
        width: 240px;
        height: 25px;
        background: #603c96;
        font-size: 11px;
        color: #fff;
        border: 0px;
        border-left: 1px solid #7d59bd;
        padding-left: 10px;
        padding-top: 8px;
        user-select: none;
    }
    
    .placement-choice {
        float: right;
        width: calc(100% - 435px);
        height: 23px;
        font-size: 15px;
        text-align: right;
        padding-top: 5px;
        padding-right: 10px;
        border-top-right-radius: 3px;
        border-bottom-right-radius: 3px;
        border: 0;
    }
}


