/* ─────────────────────────────────────────────────────────────────────────
   NAVBAR & PROFILE DROPDOWN STYLES
   Extracted from auth.blade.php
   ───────────────────────────────────────────────────────────────────────── */

/* --- Mobile Toggler --- */
.sidebar-mobile-toggler {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 4px 8px;
    margin-right: 10px;
    cursor: pointer;
}

.sidebar-mobile-toggler:focus {
    outline: none;
}

.sidebar-toggler-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    content: "";
    background: no-repeat center center;
    background-size: 100% 100%;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.7)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-mobile-logo {
    height: 40px;
}

/* --- Mobile Breakpoints --- */
@media (max-width: 991.98px) {
    .mobile-logo-center {
        position: absolute !important;
        left: 50%;
        transform: translateX(-50%);
    }

    .mobile-dropdown-menu {
        position: absolute !important;
        top: 100% !important;
        right: 0 !important;
        left: auto !important;
        min-width: 200px;
    }
}

/* --- Modern Dropdown Styling --- */
.modern-dropdown {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 10px;
}

.modern-dropdown .dropdown-item {
    border-radius: 8px;
    padding: 10px 15px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    margin-bottom: 2px;
    font-weight: 600;
}

.modern-dropdown .dropdown-item i {
    margin-right: 12px;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.modern-dropdown .dropdown-item:hover {
    background-color: var(--hgs-green-light);
    color: var(--hgs-green) !important;
    transform: translateX(3px);
}

.modern-dropdown .dropdown-item.text-danger:hover {
    background-color: rgba(244, 67, 54, 0.08);
    color: #f44336 !important;
}

.modern-header {
    padding: 10px 15px 5px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #8898aa;
    font-weight: 700;
}

#navbar-main {
    z-index: 1000 !important;
}

/* --- Profile Trigger --- */
.profile-trigger {
    padding: 10px 15px !important;
    border-radius: 999px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.profile-trigger:hover,
.profile-trigger.active-glass {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2),
        0 4px 15px rgba(0, 0, 0, 0.1);
}

.profile-avatar {
    background-color: var(--hgs-green);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.transition-all {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.profile-dropdown {
    width: 260px;
    min-width: 260px;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    margin-top: 10px !important;
    z-index: 10000;
}

.dropdown-header-title {
    letter-spacing: 1px;
}

.profile-avatar-xs {
    font-size: 10px;
    width: 32px;
    height: 32px;
    line-height: 32px;
}

.user-account-header {
    padding: 22px 20px !important;
    background: rgba(248, 250, 252, 0.6);
    border-bottom: 1px solid #f1f5f9;
    border-radius: 12px 12px 0 0;
}

.logout-section {
    padding: 12px;
}

.logout-btn-premium {
    background: linear-gradient(135deg, #f53d2d 0%, #ff5e7e 100%) !important;
    color: white !important;
    border-radius: 10px !important;
    padding: 12px 15px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.75rem !important;
    box-shadow: 0 4px 15px rgba(245, 61, 45, 0.3);
    justify-content: center !important;
    margin-top: 5px;
}

.logout-btn-premium i {
    color: white !important;
    margin-right: 8px !important;
    font-size: 1rem !important;
}

.logout-btn-premium:hover {
    background: linear-gradient(135deg, #d82d1f 0%, #ef4464 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 61, 45, 0.4);
    color: white !important;
}

.logout-btn-premium:active {
    transform: translateY(0) scale(0.97);
}

.dropdown-item {
    margin: 0 8px !important;
    width: calc(100% - 16px) !important;
    font-size: 0.85rem !important;
}

/* --- Dark Mode Support for Navbar --- */
body.dark-mode .profile-dropdown {
    background: rgba(30, 41, 59, 0.95) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode .user-account-header {
    background: rgba(15, 23, 42, 0.6);
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .user-account-header .text-dark {
    color: #f1f5f9 !important;
}

body.dark-mode .modern-dropdown .dropdown-item:hover {
    background-color: rgba(64, 157, 88, 0.15);
}
