/* ===================================
   NAVBAR REFACTORED STYLING
   =================================== */

/* Currency Dropdown */
.navbar-currency-dropdown {
    position: relative !important;
    overflow: visible;
    z-index: 1300;
}

.currency-selector {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 34px;
}

.currency-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.currency-btn:hover {
    transform: scale(1.05);
}

.currency-menu {
    display: none !important;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 120px;
    z-index: 1400;
    margin-top: 0;
}

.currency-selector:hover .currency-menu,
.currency-selector:focus-within .currency-menu {
    display: block !important;
}

.currency-menu::before {
    content: "";
    position: absolute;
    top: -12px;
    right: 0;
    width: 100%;
    height: 12px;
}

.currency-menu a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

.currency-menu a:last-child {
    border-bottom: none;
}

.currency-menu a:hover {
    background: #f5f5f5;
    color: #667eea;
}

.currency-menu a.active {
    background: #f5f5f5;
    font-weight: bold;
    color: #667eea;
}

/* ===================================
   NAVBAR ICON IMPROVEMENTS
   =================================== */

.wrap-icon-header .icon-header-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.wrap-icon-header .icon-header-item i {
    font-size: 18px;
    display: flex;
    align-items: center;
}

.wrap-icon-header .icon-header-item:hover {
    transform: scale(1.1);
}

.wrap-icon-header .icon-header-noti[data-notify]::after {
    content: attr(data-notify);
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff6b6b;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
}

/* ===================================
   TOP BAR CLEAN STYLING
   =================================== */

.top-bar {
    background: #222;
    color: #ccc;
    font-size: 13px;
}

.content-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.left-top-bar {
    flex: 1;
    color: #ccc;
    font-size: 13px;
}

.right-top-bar {
    display: flex;
    gap: 30px;
    align-items: center;
}

.right-top-bar a {
    color: #ccc;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.right-top-bar a:hover {
    color: white;
}

/* ===================================
   WHITE NAVBAR IMPROVEMENTS
   =================================== */

.wrap-menu-desktop {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.limiter-menu-desktop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    gap: 24px;
}

.limiter-menu-desktop .logo {
    width: 170px;
    flex-shrink: 0;
}

.limiter-menu-desktop .menu-desktop {
    flex: 1;
    min-width: 0;
}

.menu-desktop .main-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 24px;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
}

.menu-desktop .main-menu > li {
    margin: 0;
    padding: 20px 0;
    flex: 0 0 auto;
}

.menu-desktop .main-menu li a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.menu-desktop .main-menu li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #667eea;
    transition: width 0.3s ease;
}

.menu-desktop .main-menu li a:hover::after {
    width: 100%;
}

/* ===================================
   DARK MODE NAVBAR
   =================================== */

[data-theme="dark"] .wrap-menu-desktop {
    background: #1f1f1f;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .menu-desktop .main-menu li a {
    color: #e0e0e0;
}

.wrap-icon-header {
    flex: 0 0 auto;
    gap: 12px;
}

.wrap-icon-header .icon-header-item,
.account-trigger {
    width: 34px;
    height: 34px;
    padding: 0 !important;
}

.account-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.account-trigger {
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.account-menu {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    width: 190px;
    padding: 8px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    z-index: 1200;
}

.account-dropdown:hover .account-menu,
.account-dropdown:focus-within .account-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.account-menu::before {
    content: "";
    position: absolute;
    top: -14px;
    right: 0;
    width: 100%;
    height: 14px;
}

.account-menu-name {
    padding: 8px 10px 9px;
    margin-bottom: 4px;
    color: #777;
    font-size: 12px;
    line-height: 1.4;
    border-bottom: 1px solid #f0f0f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.account-menu a,
.account-menu button {
    width: 100%;
    min-height: 36px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #333;
    font-size: 13px;
    line-height: 1.3;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.account-menu a:hover,
.account-menu button:hover {
    background: #f5f6ff;
    color: #667eea;
}

.account-menu i {
    width: 16px;
    text-align: center;
    font-size: 15px;
}

.account-menu form {
    margin: 4px 0 0;
    padding-top: 4px;
    border-top: 1px solid #f0f0f0;
}

[data-theme="dark"] .account-menu {
    background: #242424;
    border-color: #3a3a3a;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .4);
}

[data-theme="dark"] .account-menu-name {
    color: #aaa;
    border-color: #363636;
}

[data-theme="dark"] .account-menu a,
[data-theme="dark"] .account-menu button {
    color: #e0e0e0;
}

[data-theme="dark"] .account-menu a:hover,
[data-theme="dark"] .account-menu button:hover {
    background: #30344f;
    color: #9aa5ff;
}

@media (max-width: 1200px) {
    .limiter-menu-desktop {
        gap: 18px;
    }

    .limiter-menu-desktop .logo {
        width: 150px;
    }

    .menu-desktop .main-menu {
        gap: 18px;
    }

    .menu-desktop .main-menu li a {
        font-size: 13px;
    }

    .wrap-icon-header {
        gap: 8px;
    }
}

[data-theme="dark"] .menu-desktop .main-menu li a::after {
    background: #667eea;
}

[data-theme="dark"] .currency-menu {
    background: #2a2a2a;
    border-color: #444;
}

[data-theme="dark"] .currency-menu a {
    color: #e0e0e0;
    border-bottom-color: #444;
}

[data-theme="dark"] .currency-menu a:hover {
    background: #333;
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 1024px) {
    .menu-desktop .main-menu {
        gap: 20px;
    }

    .menu-desktop .main-menu li a {
        font-size: 13px;
    }

    .right-top-bar {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .limiter-menu-desktop {
        padding: 12px 0;
        gap: 15px;
    }

    .menu-desktop {
        display: none;
    }

    .right-top-bar {
        gap: 15px;
    }

    .left-top-bar {
        font-size: 11px;
    }
}
