/* CSS Variables from theme options - Required for theme compatibility */
:root {
    --color-1st: #bead8e;
    /* fallback color */
    --primary-font: 'Roboto', sans-serif;
    /* fallback font */
}

.nt-top-bar *,
.nt-top-header *,
.nt-main-header *,
.nt-main-header {
    margin: 0;
    padding: 0;
    font-weight: 400;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.nt-container {
    padding-left: 20px;
    padding-right: 20px;
    margin: auto;
}

.nt-main-header {
    position: relative;
    z-index: 9;
}

.nt-top-bar {
    display: flex;
    justify-content: end;
    align-items: center;
    gap: 15px;
    padding: 8px 15px;
    color: #ffffff;
    background-color: #5ab846;
    font-size: 14px;
}

.nt-top-bar .nt-container {
    margin: unset;
    display: flex;
    justify-content: end;
}

.nt-topbar-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ffffff;
    font-weight: 400;
    text-decoration: none;
    padding: 7px 12px;
    border-radius: 3px;
    white-space: nowrap;
}

.nt-topbar-link:focus,
.nt-topbar-link:hover,
.nt-topbar-link:visited {
    color: #FFFFFF;
}

.nt-topbar-dropdown {
    position: relative;
    display: inline-block;
}

.nt-topbar-link-dropdown-button {
    display: flex;
    align-items: center;
    gap: 6px;
    border: none;
    padding: 7px 12px;
    border-radius: 3px;
    cursor: pointer;
    color: #000000;
    transition: background-color 0.2s;
    background-color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
    font-size: 14px;
}

.nt-topbar-link-dropdown-button:focus,
.nt-topbar-link-dropdown-button:hover {
    color: #000000;
    background-color: #FFFFFF;
}

.nt-topbar-dropdown-menu {
    position: absolute;
    top: 110%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 200px;
    z-index: 11;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.nt-topbar-dropdown.show .nt-topbar-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nt-topbar-link span,
.nt-topbar-link-dropdown-button span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nt-top-header {
    margin: 0;
    width: 100%;
    padding: 10px 0;
    background-color: #FFFFFF;
    border-bottom: 1px solid #e9ecef;
}

.nt-top-header-content {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.country-img {
    background: url("/verticals_demo_images/ind-dash.png") no-repeat center center;
    background-size: contain;
}

.language-img {
    background: url("/verticals_demo_images/english-dash.png") no-repeat center center;
    background-size: contain;
}

.seller-img {
    background: url("/verticals_demo_images/seller-dash.png") no-repeat center center;
    background-size: contain;
}

.login-img {
    background: url("/verticals_demo_images/login-dash.png") no-repeat center center;
    background-size: contain;
}

.nt-home .country-img {
    background: url("/verticals_demo_images/ind.png") no-repeat center center;
    background-size: contain;
}

.nt-home .language-img {
    background: url("/verticals_demo_images/english.png") no-repeat center center;
    background-size: contain;
}

.nt-top-bar .seller-img,
.nt-home .seller-img {
    background: url("/verticals_demo_images/seller.png") no-repeat center center;
    background-size: contain;
}

.nt-home .login-img {
    background: url("/verticals_demo_images/login.png") no-repeat center center;
    background-size: contain;
}

.img-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    background-size: contain !important;
}

.nt-top-header.nt-home {
    padding: 0 0;
    color: #FFFFFF;
    background-color: #5ab846;
}

.nt-top-header.nt-home .nt-link,
.nt-top-header.nt-home .nt-dropdown-button {
    color: #FFFFFF !important;
}

.nt-top-header.nt-home .nt-channels-dropdown .nt-dropdown-button {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.03);
    background-size: 16px;
    background-repeat: no-repeat;
    background-position: right 6px center;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    padding-right: 26px;
}

.nt-top-header.nt-home .nt-dropdown-arrow {
    border-top: 4px solid #FFFFFF;
}

.nt-top-header.nt-home .nt-logo-nav-group {
    visibility: hidden;
}

.nt-main-header.nt-home {
    background-color: #FFFFFF;
    border-bottom: 1px solid #ddd;
    box-shadow: none;
}

.nt-main-header.nt-home .nt-main-form {
    box-shadow: none;
    border: 1px solid #eeeeee;
}

.nt-logo-nav-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Logo Styles */
.nt-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    height: 36px;
}

.nt-logo:visited {
    color: #333;
}

.nt-logo img {
    height: 36px;
    width: auto;
}

/* Navigation Menu */
.nt-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 4px;
}

.nt-nav-toggle:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.nt-nav-menu {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
}

/* Links */
.nt-link {
    gap: 8px;
    display: inline-flex;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.2s;
    white-space: nowrap;
    flex-shrink: 1;
}

.nt-link:visited {
    color: #333;
}

/* Dropdown Component */
.nt-dropdown {
    position: relative;
    display: inline-block;
}

.nt-dropdown-button {
    background: none;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #333;
    border-radius: 4px;
    transition: background-color 0.2s;
    white-space: nowrap;
    flex-shrink: 1;
}

.nt-channels-dropdown .nt-dropdown-button {
    border-radius: 3px;
    background-color: #ECF8ED;
    border: 1px solid #E6E6E6;
}

.nt-dashboard {
    width: 200px;
    border-radius: 4px !important;
    background-color: #ECF8ED !important;
}

.nt-dropdown-arrow {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #666;
}

.nt-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 200px;
    z-index: 11;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.nt-dropdown-menu img {
    height: 20px;
}

.nt-dropdown.show .nt-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nt-link span,
.nt-dropdown span {
    gap: 8px;
    display: flex;
}

.nt-dropdown-item {
    padding: 10px 12px;
    color: #333;
    text-decoration: none;
    display: block;
    font-size: 14px;
    transition: background-color 0.2s;
}

.nt-dropdown-item:hover {
    background-color: #e0e0e0;
}

.nt-dropdown-item:visited {
    color: #333;
}

.nt-dropdown-item:last-child {
    border-bottom: none;
}

.nt-main-header {
    background: #5ab846;
    padding: 10px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    width: 100%;
}

.nt-main-header-content {
    gap: 0.5rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

.nt-main-nav-group {
    gap: 0.5rem;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 700px;
}

/* Search Form */
.nt-main-form {
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
    background: white;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nt-channels-dropdown .nt-dropdown-button {
    border: none;
    padding: 12px 20px;
    padding-right: 26px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    min-width: 60px;
    color: #000000;
    background: rgba(0, 0, 0, 0.03);
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 6px center;
    background-size: 16px;
    outline: none;
    border-radius: 0;
    vertical-align: top;
    line-height: normal;
    gap: 0;
}

.nt-channels-dropdown .nt-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 200px;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    padding: 0;
    list-style: none;
}

.nt-channels-dropdown.show .nt-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nt-channels-dropdown .nt-dropdown-menu input[type="radio"] {
    visibility: hidden;
    position: absolute;
}

.nt-channels-dropdown .nt-dropdown-menu label {
    display: block;
    cursor: pointer;
    padding: 9px 14px;
    color: #333;
    font-size: 14px;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s;
}

.nt-channels-dropdown .nt-dropdown-menu label:hover {
    background-color: #e0e0e0;
}

.nt-channels-dropdown .nt-dropdown-menu label:last-child {
    border-bottom: none;
}

.select-a-channel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffebee;
    color: #c62828;
    padding: 8px 14px;
    font-size: 12px;
    border: 1px solid #ef5350;
    border-radius: 4px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nt-search-input {
    flex: 1;
    border: none;
    padding: 10px 16px;
    font-size: 14px;
    outline: none;
    min-width: 0;
    width: 100%;
}

.nt-search-input::placeholder {
    color: #999;
}

.nt-search-button {
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.05);
}

.nt-search-button:hover {
    background: rgba(0, 0, 0, 0.1);
}

.nt-search-icon {
    width: 18px;
    height: 18px;
}

.nt-mobile-nav {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-direction: column;
    position: absolute;
    top: 102px;
    left: 0;
    width: 100%;
    background: #FFFFFF;
    box-sizing: border-box;
    border: 1px solid #ddd;
    z-index: 10;
}

/* Mobile nav image styles for inline images */
.nt-mobile-nav img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.nt-auth-links {
    gap: 5px;
    display: flex;
    align-items: center;
}

.nt-auth-links .nt-link {
    padding: 0 !important;
}

.nt-user-name {
    width: 66px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 0 0 66px;
}

/* Auth dropdown specific styles */
.nt-auth .nt-dropdown-button {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
}

.nt-auth .nt-dropdown-menu {
    right: 0;
    left: unset;
    min-width: 180px;
}

.nt-auth .nt-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
}

/* Seller dropdown and dashboard styles */
.nt-seller-dropdown .nt-link {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Dashboard dropdown positioning for mobile */
@media (max-width: 768px) {
    .nt-dash-nav-group .nt-dropdown-menu {
        width: 210px;
        left: 0;
    }

    .nt-dash-nav-group .nt-dropdown:last-child .nt-dropdown-menu {
        left: unset;
        right: 0;
    }
}

/* Hide top bar on large screens */
@media (min-width: 769px) {
    .nt-top-bar {
        display: none;
    }
}

/* Tablet Styles */
@media (max-width: 768px) {
    .nt-top-bar {
        display: flex;
    }

    .nt-dashboard {
        width: 242px;
    }

    .nt-container {
        padding: 0;
    }

    .nt-top-header {
        padding: 10px 12px;
    }

    .nt-channels-dropdown,
    .nt-seller-dropdown {
        display: none;
    }

    .nt-dropdown.nt-channels-dropdown {
        border-radius: 4px;
        display: inline-flex;
        border: 1px solid #E6E6E6;
    }

    /* Adjust main header layout for mobile */
    .nt-main-header-content {
        flex-direction: column;
        gap: 0;
        padding: 0;
    }

    .nt-main-header {
        padding: 0;
        max-width: 100%;
    }

    .nt-main-nav-group {
        width: 100%;
        max-width: 100%;
        padding: 10px 15px;
    }

    .nt-main-nav-group.nt-dash-nav-group {
        justify-content: center;
        background-color: #FFF !important;
        border-bottom: 1px solid #ddd !important;
    }

    .nt-main-nav-group.nt-dash-nav-group>.nt-dropdown {
        max-width: 245px;
    }

    /* Reorder elements: search form first, then dashboards */
    .nt-main-nav-group:first-child {
        order: 2;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .nt-main-nav-group:last-child {
        order: 1;
        width: 100%;
    }

    /* Style dashboard dropdowns for mobile */
    .nt-main-nav-group:first-child .nt-dropdown {
        min-width: 105px;
    }

    .nt-main-nav-group:first-child .nt-dropdown-button {
        justify-content: space-between;
        padding: 12px 16px;
        padding-right: 26px;
        border-radius: 4px;
    }

    .nt-dash-nav-group {
        display: flex;
        flex-direction: row !important;
    }

    .nt-main-form {
        width: 100%;
        margin: auto;
        max-width: 500px;
    }

    .nt-home .country-img {
        background: url("/verticals_demo_images/ind-dash.png") no-repeat center center;
        background-size: contain;
    }

    .nt-home .language-img {
        background: url("/verticals_demo_images/english-dash.png") no-repeat center center;
        background-size: contain;
    }

    .nt-home .seller-img {
        background: url("/verticals_demo_images/seller-dash.png") no-repeat center center;
        background-size: contain;
    }

    .nt-home .login-img {
        background: url("/verticals_demo_images/login-dash.png") no-repeat center center;
        background-size: contain;
    }

    .nt-top-header.nt-home {
        padding: 10px 20px;
        color: #333333;
        background-color: #FFFFFF;
    }

    .nt-top-header.nt-home .nt-link,
    .nt-top-header.nt-home .nt-dropdown-button {
        color: #333333 !important;
    }

    .nt-main-header.nt-home .nt-logo-nav-group {
        display: none;
    }

    .nt-top-header.nt-home .nt-channels-dropdown .nt-dropdown-button {
        padding: 10px 20px;
        background: rgba(255, 255, 255, 0.03);
        background-size: 16px;
        background-repeat: no-repeat;
        background-position: right 6px center;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
        padding-right: 26px;
    }

    .nt-top-header.nt-home .nt-dropdown-arrow {
        border-top: 4px solid #FFFFFF;
    }

    .nt-top-header.nt-home .nt-logo-nav-group {
        visibility: visible;
    }

    .nt-main-header.nt-home {
        background-color: #FFFFFF;
        border-bottom: 1px solid #ddd;
        box-shadow: none;
    }

    .nt-main-header.nt-home .nt-main-form {
        box-shadow: none;
        border: 1px solid #eeeeee;
    }
}

/* Mobile Styles */
@media (max-width: 570px) {

    .nt-nav-toggle {
        display: block;
    }

    .nt-top-header.nt-home {
        padding: 10px 12px;
    }

    /* Show mobile navigation when toggled */
    .nt-mobile-nav.show {
        display: flex;
    }

    .nt-dropdown-menu {
        left: 20px;
    }

    /* Full width dropdown menus for dashboard elements on mobile */
    .nt-main-nav-group:first-child .nt-dropdown-menu {
        left: 0;
        right: 0;
        box-sizing: border-box;
    }

    /* Fix mobile dashboard layout */
    .nt-main-nav-group.nt-dash-nav-group {
        gap: 12px !important;
        padding: 10px 15px !important;
    }

    .nt-main-nav-group.nt-dash-nav-group .nt-dropdown {
        flex: 1;
        max-width: calc(50% - 2.5px) !important;
    }

    .nt-main-nav-group.nt-dash-nav-group .nt-dropdown-button {
        width: 100% !important;
        padding: 12px !important;
        font-size: 13px !important;
    }

    .nt-link,
    .nt-dropdown-button {
        width: 100%;
        padding: 10px 8px;
        justify-content: space-between;
    }

    .nt-mobile-nav .nt-link,
    .nt-mobile-nav .nt-dropdown-button {
        width: 100%;
        padding: 14px;
        justify-content: space-between;
    }

    .nt-dropdown {
        display: block;
    }

    .nt-logo img {
        height: 30px;
    }

    .nt-top-header-content {
        padding-left: 0px;
        padding-right: 8px;
    }

    .nt-main-form {
        gap: 0;
        width: 100%;
        border-radius: 6px;
        min-width: 0;
    }

    .nt-channels-dropdown .nt-dropdown-button {
        padding: 12px;
        font-size: 14px;
        padding-right: 26px;
        border-radius: 6px 6px 0 0;
        min-width: 90px;
    }

    .nt-search-input {
        width: 100%;
        padding: 10px 12px;
        font-size: 14px;
        min-width: 0;
    }

    .nt-language,
    .nt-country {
        display: none;
    }

    .nt-mobile-nav .nt-link span,
    .nt-mobile-nav .nt-dropdown span {
        gap: 10px !important;
    }

    .nt-mobile-nav li:first-child>.nt-dropdown {
        border-bottom: 1px solid #ddd;
    }

    .nt-auth-links {
        display: flex;
        align-items: center;
    }
}