/* Navigation Bar Modernization */
.navbar {
    background-color: #ffffff !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: none !important;
    height: 64px;
    padding: 0;
}

.nav-container {
    max-width: 1280px !important;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-logo h1 {
    font-size: 1.25rem !important; /* 20px */
    font-weight: 700 !important;
    color: #0f172a !important; /* slate-900 */
    letter-spacing: -0.025em;
    margin: 0;
}

/* Nav Menu Items */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px; /* space-x-8 */
}

.nav-link {
    color: #475569 !important; /* slate-600 */
    font-size: 0.875rem !important; /* text-sm */
    font-weight: 700 !important; /* font-bold */
    text-decoration: none;
    transition: color 0.2s;
    font-family: inherit;
    padding: 0 !important;
    height: auto !important;
    line-height: inherit !important;
}

.nav-link:hover, .nav-link.active {
    color: #2563eb !important; /* blue-600 */
    background: transparent !important;
}

/* Dropdown specific */
.dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.dropdown-content.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0;
    background: white;
    border: 1px solid #f1f5f9;
    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);
    width: 12rem !important; /* w-48 = 192px */
    min-width: 0 !important; /* Override global styles */
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-column {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu-column a {
    padding: 8px 12px;
    font-size: 0.875rem;
    color: #475569;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.15s;
    font-weight: 600;
    display: block;
    white-space: nowrap; /* Prevent text wrapping */
}

.menu-column a:hover {
    background-color: #f8fafc; /* slate-50 */
    color: #2563eb;
}

/* Hide old header in menu if present */
.menu-header {
    display: none; 
}

/* Apply / Actions Button */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.apply-btn {
    background-color: #2563eb; /* blue-600 */
    color: white;
    font-size: 0.875rem; /* text-sm */
    font-weight: 700;
    padding: 8px 24px;
    border-radius: 9999px; /* full rounded */
    text-decoration: none;
    transition: opacity 0.2s;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.apply-btn:hover {
    opacity: 0.9;
    background-color: #2563eb; /* Maintain color */
}

/* Hide Apply button inside nav-menu if moved to nav-actions */
.nav-menu .apply-btn {
    display: block; /* If user kept it there */
}

/* Update nav-menu to NOT contain the button if we separated it structure-wise, 
   but currently in HTML structure I moved it out. 
   Wait, in HTML index.html, I put .nav-actions AFTER .nav-menu. 
   The CSS for .nav-menu needs to adapt. */
   
@media (max-width: 768px) {
    .nav-menu {
        display: none; /* simple responsive hiding for now */
    }
    .nav-actions {
        display: none;
    }
    .nav-toggle {
        display: flex;
    }
}
