/* --- 1. NEW FONT FAMILY --- */
body {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}

/* --- 2. NAV ITEM STYLING --- */
.nav-item-custom {
    color: #94a3b8; /* slate-400 */
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 0;
    position: relative;
    text-decoration: none;
    transition: color 0.3s ease;
}
/* Styling used across all authentication views */
.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.input-glass {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    transition: all 0.3s ease;
}

    .input-glass:focus {
        outline: none;
        border-color: #818cf8;
        background: rgba(0, 0, 0, 0.5);
        box-shadow: 0 0 0 2px rgba(129, 140, 248, 0.2);
    }

    .nav-item-custom:hover {
        color: #ffffff;
    }

    /* Animated Underline */
    .nav-item-custom::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: 0;
        left: 50%;
        background: linear-gradient(90deg, #6366f1, #8b5cf6);
        transition: all 0.3s ease;
        transform: translateX(-50%);
        opacity: 0;
        border-radius: 2px;
    }

    .nav-item-custom:hover::after {
        width: 100%;
        opacity: 1;
    }
/* Add this to your existing CSS */
#main-navbar {
    will-change: background-color, height, margin, border-radius;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
/* --- 3. BOOTSTRAP CONFLICT RESOLUTION --- */
/* Reset Bootstrap anchors globally but keep button/link roles intact */
a {
    text-decoration: none !important;
}

/* Dark Mode Inputs (Bootstrap Overrides) */
.form-control, .form-select {
    background-color: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border-radius: 0.75rem !important;
    padding: 0.75rem 1rem !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}

    .form-control:focus, .form-select:focus {
        background-color: rgba(255, 255, 255, 0.05) !important;
        border-color: #818cf8 !important;
        box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1) !important;
        color: white !important;
    }

/* Cards */
.card {
    background-color: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(10px);
    border-radius: 1rem !important;
}

.card-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: transparent !important;
}

/* Modals */
.modal-content {
    background-color: #0f172a !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 1.5rem !important;
}

.modal-header, .modal-footer {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #020205;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 5px;
    border: 2px solid #020205;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #475569;
    }
/* Dropdown show state (JS toggles this on the menu element) */
[data-dropdown-menu] {
    transition: opacity 0.18s ease, transform 0.18s ease;
}

    [data-dropdown-menu].dropdown-open {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) scale(1);
    }

/* Default hidden state (keeps your previous group-hover fallback) */
[data-dropdown-menu] {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scale(.98);
}

/* Keep existing group-hover rules working — these are unchanged */
.group-hover\:opacity-100:hover &,
.group:hover [data-dropdown-menu] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
