/* Base Styles extracted from base.html */

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
    /* Slate-50 equivalent */
}

/* Dark mode body */
.dark body {
    background-color: #0f172a;
    /* Slate-900 equivalent */
    color: #f1f5f9;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Glassmorphism utilities */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.dark .glass {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-nav {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
}

.dark .glass-nav {
    background-color: rgba(15, 23, 42, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Dropdown hover functionality */
.group:hover .group-hover\:block {
    display: block !important;
}

/* Menu item hover effects */
.group a:hover,
.group button:hover {
    background-color: #eff6ff !important;
    color: #1d4ed8 !important;
}

.group a:hover svg,
.group button:hover svg {
    color: #3b82f6 !important;
}

/* Custom utility classes replacing inline styles */
.nav-sticky {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    top: 0;
    z-index: 50;
}

.dark .nav-sticky {
    background: rgba(15, 23, 42, 0.9);
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
}
.container-custom {
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 16px;
    padding-right: 16px;
}
.h-custom {
    height: 64px;
}
.flex-center {
    display: flex;
    align-items: center;
}
.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.brand-text {
    font-weight: 700;
    font-size: 20px;
    color: #0f172a;
}

.dark .brand-text {
    color: #f8fafc;
}
.brand-highlight {
    color: #2563eb;
}
.menu-gap {
    gap: 20px;
}
.user-profile-gap {
    position: relative;
    margin-left: 12px;
}
.user-btn-style {
    display: flex;
    align-items: center;
    gap: 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 8px 0;
}
.user-text-container {
    text-align: right;
    display: none;
}
.user-name {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

.dark .user-name {
    color: #e2e8f0;
}
.user-role {
    font-size: 12px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.dark .user-role {
    color: #94a3b8;
}
.user-avatar {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    background: linear-gradient(to bottom right, #3b82f6, #4f46e5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border: 2px solid white;
}
.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    margin-top: 0;
    width: 224px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    padding: 8px 0;
    z-index: 50;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.dark .dropdown-menu {
    background-color: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.dropdown-spacer {
    position: absolute;
    top: -8px;
    left: 0;
    width: 100%;
    height: 8px;
    background: transparent;
}
.dropdown-header {
    padding: 12px 16px;
    border-bottom: 1px solid #f8fafc;
    background-color: rgba(248, 250, 252, 0.5);
    display: block;
}

.dark .dropdown-header {
    background-color: rgba(30, 41, 59, 0.5);
    border-bottom: 1px solid #334155;
}

.dark .dropdown-header p.text-slate-900 {
    color: #f1f5f9;
}

.dark .dropdown-header p.text-slate-500 {
    color: #94a3b8;
}

/* Mobile navbar - NOT sticky */
@media (max-width: 767px) {
    nav {
        position: relative !important;
        border-bottom: 3px solid #ef4444 !important; /* Red border to verify CSS is loaded */
    }
    
    /* Force hide desktop menu items on mobile */
    .flex-center.menu-gap {
        display: none !important;
    }
}

/* Responsive typography */
@media (max-width: 640px) {
    h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    h3 {
        font-size: 1.25rem;
        line-height: 1.4;
    }
    .user-text-container {
       display: none;
    }
}
@media (min-width: 768px) {
    .user-text-container {
        display: block;
    }
}

/* Mobile Sidebar Z-Index Override */
.z-sidebar-mobile {
    z-index: 9999 !important;
}
.z-sidebar-backdrop {
    z-index: 9998 !important;
}
