/* SmartCalcs - Navigation Fix for All Pages */

/* DESKTOP NAVIGATION SPACING FIX */
@media (min-width: 769px) {
    .nav-container {
        max-width: 1400px !important; /* Increased from 1200px */
        margin: 0 auto !important;
        padding: 16px 24px !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    
    .nav-links {
        display: flex !important;
        align-items: center !important;
        gap: 1.5rem !important; /* Reduced from 2rem for better spacing */
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
        flex-wrap: nowrap !important;
        overflow: visible !important;
    }
    
    .nav-link {
        font-weight: 600 !important;
        color: #1a202c !important;
        font-size: 15px !important; /* Slightly smaller for better fit */
        text-decoration: none !important;
        padding: 12px 14px !important; /* Reduced padding */
        border-radius: 8px !important;
        transition: all 0.3s ease !important;
        white-space: nowrap !important; /* Prevent text wrapping */
        min-width: auto !important;
    }
    
    .nav-link:hover {
        color: #ff6b35 !important;
        background: rgba(255, 107, 53, 0.1) !important;
        transform: translateY(-1px) !important;
    }
    
    /* Dropdown styling */
    .dropdown {
        position: relative !important;
    }
    
    .dropdown-toggle {
        font-size: 15px !important;
        padding: 12px 14px !important;
    }
    
    .dropdown-menu {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        background: white !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 12px !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12) !important;
        padding: 8px 0 !important;
        min-width: 220px !important;
        z-index: 1000 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translateY(-10px) !important;
        transition: all 0.3s ease !important;
    }
    
    .dropdown:hover .dropdown-menu {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
    }
    
    .dropdown-menu a {
        display: block !important;
        padding: 12px 20px !important;
        color: #1a202c !important;
        text-decoration: none !important;
        font-weight: 500 !important;
        font-size: 14px !important;
        transition: all 0.3s ease !important;
    }
    
    .dropdown-menu a:hover {
        background: rgba(255, 107, 53, 0.1) !important;
        color: #ff6b35 !important;
    }
}

/* RESPONSIVE NAVIGATION FOR MEDIUM SCREENS */
@media (min-width: 769px) and (max-width: 1200px) {
    .nav-container {
        max-width: 100% !important;
        padding: 16px 20px !important;
    }
    
    .nav-links {
        gap: 1.2rem !important; /* Even smaller gap for medium screens */
    }
    
    .nav-link {
        font-size: 14px !important;
        padding: 10px 12px !important;
    }
    
    .dropdown-toggle {
        font-size: 14px !important;
        padding: 10px 12px !important;
    }
}

/* ENSURE BRAND LOGO STYLING */
.nav-logo, .brand-link {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    text-decoration: none !important;
    color: #1a202c !important;
    font-weight: 700 !important;
    font-size: 20px !important;
    z-index: 1001 !important;
    flex-shrink: 0 !important; /* Prevent logo from shrinking */
}

.logo-icon {
    width: 32px !important;
    height: 32px !important;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1)) !important;
}

.brand-text {
    color: #ff6b35 !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
}

/* NAVBAR CONTAINER IMPROVEMENTS */
.navbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1) !important;
    width: 100% !important;
}

/* MOBILE NAVIGATION REMAINS THE SAME */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex !important;
    }
    
    .nav-links {
        position: fixed !important;
        top: 80px !important;
        left: 0 !important;
        right: 0 !important;
        background: white !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15) !important;
        transform: translateY(-100%) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        z-index: 1000 !important;
        flex-direction: column !important;
        padding: 0 !important;
        border-radius: 0 0 16px 16px !important;
        max-height: calc(100vh - 80px) !important;
        overflow-y: auto !important;
    }
    
    .nav-links.active {
        transform: translateY(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .nav-link {
        display: block !important;
        padding: 18px 24px !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        color: #1a202c !important;
        text-decoration: none !important;
        border-bottom: 1px solid #f1f1f1 !important;
        transition: all 0.3s ease !important;
    }
    
    .nav-link:hover {
        background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(255, 107, 53, 0.05) 100%) !important;
        color: #ff6b35 !important;
        padding-left: 32px !important;
    }
}