/* =========================================================
   NAVBAR COMPONENT STYLES - HK EQUIPMENT
========================================================= */

.navbar {
    backdrop-filter: blur(8px);
    transition: all .3s ease;
}

.bg-dark-custom {
    background-color: var(--dark-bg);
}

.navbar-brand {
    font-weight: 900;
    letter-spacing: 1px;
}

.navbar .nav-link {
    font-weight: 500;
    position: relative;
    padding-bottom: 6px;
    transition: color .3s ease;
}

.navbar .nav-link:hover {
    color: var(--accent-color);
}

.navbar .nav-link.active {
    color: var(--accent-color) !important;
    font-weight: 600;
}

.navbar .nav-link.active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 18px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 999px;
    transform: translateX(-50%);
}

/* --- MODERN PROFILE PILL (KAPSUL) --- */
.nav-profile-pill {
    display: flex;
    align-items: center;
    padding: 6px 16px 6px 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none !important;
}

.nav-profile-pill:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-color);
    transform: translateY(-1px);
}

.profile-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-avatar, .nav-avatar-placeholder {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 10px rgba(252, 165, 3, 0.3);
}

.nav-avatar-placeholder {
    background: linear-gradient(135deg, var(--primary-color), #b91c1c);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    border: 2px solid rgba(255,255,255,0.5);
}

/* Teks Profil (Default Desktop) */
.profile-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    text-align: left;
}

.user-name {
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
}

/* Email hanya muncul di Mobile secara default melalui class d-lg-none di Blade */
.user-email {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    font-weight: 400;
}

.user-status {
    color: #10b981;
    font-size: 0.6rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.user-status i { font-size: 5px; }

/* --- DROPDOWN ANIMATION & SYMMETRY --- */
.custom-dropdown-animate {
    min-width: 240px;
    padding: 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    margin-top: 15px !important;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.custom-dropdown-animate .dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1f2937;
    transition: all 0.25s ease;
}

.custom-dropdown-animate .dropdown-item:hover {
    background: #f3f4f6;
    color: var(--primary-color);
    padding-left: 22px;
}

.dropdown-divider {
    border-top: 1px solid #f1f5f9;
    margin: 8px 10px;
}

/* ======================================================================
   RESPONSIVE / MINIMIZE MODE (HP)
====================================================================== */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(15px);
        margin: 0 -1rem; 
        padding: 20px;
        border-radius: 0 0 25px 25px;
        border-bottom: 2px solid var(--primary-color);
        max-height: 80vh;
        overflow-y: auto;
    }

    .nav-auth-section {
        margin-top: 15px;
        padding-top: 15px;
        border-top: 2px solid rgba(255,255,255,0.1);
    }

    /* KAPSUL PROFIL DI SEBELAH KIRI (SIMETRIS) */
    .nav-profile-pill {
        padding: 12px 20px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        display: flex !important;
        justify-content: flex-start;
        border-radius: 20px;
    }

    /* Ubah Warna Teks Nama & Email menjadi Putih Terang */
    .profile-text .user-name {
        font-size: 1rem;
        color: #ffffff !important; 
        margin-bottom: 0px;
    }

    .profile-text .user-email {
        font-size: 0.8rem;
        color: rgba(255, 255, 255, 0.9) !important; /* Putih agak transparan */
        display: block !important;
    }

    /* Sembunyikan Header Info di dalam Dropdown (Sudah ada di baris foto) */
    .dropdown-header-box {
        display: none !important;
    }

    /* Dropdown menu jadi menyatu di bawah profil */
    .custom-dropdown-animate {
        width: 100%;
        position: static !important; 
        float: none;
        background: transparent !important;
        border: none;
        box-shadow: none;
        padding: 0;
        margin-top: 5px !important;
        display: none; 
    }

    .dropdown.show .custom-dropdown-animate {
        display: block;
    }

    .custom-dropdown-animate .dropdown-item {
        color: rgba(255,255,255,0.85) !important;
        padding: 12px 20px;
        border-radius: 12px;
    }



    /* KHUSUS LOGOUT DI MOBILE JADI MERAH TERANG */
    .custom-dropdown-animate .dropdown-item.text-danger {
        color: #ff4d4d !important; /* Merah menyala */
        font-weight: 800 !important;
    }

    .custom-dropdown-animate .dropdown-item:hover {
        background: rgba(255,255,255,0.08);
        color: #ffffff !important;
    }

    /* Hover khusus logout mobile agar tetap merah */
    .custom-dropdown-animate .dropdown-item.text-danger:hover {
        background: rgba(255, 77, 77, 0.1);
        color: #ff4d4d !important;
    }

    .dropdown-divider {
        border-top: 1px solid rgba(255,255,255,0.1);
        margin: 5px 10px;
    }
}