/* ===========================
   header-navbar.css PREMIUM HEADER NAVBAR DESIGN
   Modern, Standout Style for NaijaJobPortal
   =========================== */

/* Remove default Bootstrap navbar styling */
.ftco_navbar {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #7e22ce 100%) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    padding: 0 !important;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 3px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

/* Scrolled state */
.ftco_navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    border-bottom: 3px solid #f59e0b;
}

/* Container styling */
.ftco_navbar .container-fluid {
    padding: 0.75rem 2rem !important;
    max-width: 1400px;
    margin: 0 auto;
}

/* Logo Section - Premium styling */
.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.navbar-brand::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.navbar-brand:hover::before {
    left: 100%;
}

.navbar-brand:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.navbar-brand img {
    max-height: 55px !important;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

/* Mobile Toggle Button - Premium design */
.navbar-toggler {
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5) !important;
}

.navbar-toggler .oi {
    color: white;
    font-size: 1.2rem;
}

/* Navigation Links - Modern styling */
.navbar-nav {
    align-items: center;
    gap: 0.25rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.75rem 1.25rem !important;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Hover effect with sliding background */
.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    transition: left 0.3s ease;
    z-index: -1;
}

.nav-link:hover::before {
    left: 0;
}

.nav-link:hover {
    color: white !important;
    transform: translateY(-2px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Active state */
.nav-item.active .nav-link {
    background: rgba(255, 255, 255, 0.2);
    color: white !important;
    font-weight: 600;
}

/* CTA Buttons - Premium design */
.nav-item.cta .nav-link {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white !important;
    font-weight: 600;
    padding: 0.75rem 1.5rem !important;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-item.cta .nav-link::before {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    left: 0;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-item.cta .nav-link:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-item.cta .nav-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

/* Secondary CTA - Different color */
.nav-item.cta-colored .nav-link {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.nav-item.cta-colored .nav-link::before {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.nav-item.cta-colored .nav-link:hover {
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Dropdown Menu - Premium styling */
.dropdown-menu {
    background: white;
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 0.5rem;
    margin-top: 0.5rem;
    min-width: 220px;
    animation: dropdownSlideIn 0.3s ease;
}

@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #1e3c72;
    transform: translateX(5px);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
}

.dropdown-divider {
    margin: 0.5rem 0;
    border-top: 1px solid #e5e7eb;
}

/* User Dropdown Link */
.user-dropdown-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 0.75rem 1.25rem !important;
}

.user-dropdown-link:hover {
    background: rgba(255, 255, 255, 0.25);
}

.user-dropdown-link i {
    font-size: 1.1rem;
}

/* Sign Out Button */
.dropdown-item.text-danger:hover {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626 !important;
}

/* Responsive Design */
@media (max-width: 991px) {
    .ftco_navbar .container-fluid {
        padding: 0.75rem 1rem !important;
    }
    
    .navbar-collapse {
        background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
    
    .navbar-nav {
        gap: 0.5rem;
    }
    
    .nav-link {
        text-align: left;
        padding: 0.75rem 1rem !important;
    }
    
    .nav-item.cta .nav-link,
    .nav-item.cta-colored .nav-link {
        margin: 0.5rem 0;
        text-align: center;
    }
    
    .dropdown-menu {
        background: rgba(255, 255, 255, 0.98);
        margin-top: 0.25rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        padding: 0.4rem 0.8rem;
    }
    
    .navbar-brand img {
        max-height: 45px !important;
    }
    
    .ftco_navbar .container-fluid {
        padding: 0.5rem 0.75rem !important;
    }
}

/* Loading/Transition Effects */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-item.active .nav-link::after {
    width: 80%;
}

/* ===========================
   NOTIFICATION SYSTEM - Enhanced & Fixed
   =========================== */

#notificationContainer {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
    width: 90%;
}

.notification {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: white;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    margin-bottom: 10px;
    border-left: 4px solid #007bff;
    position: relative;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Notification Icon Styling */
.notification-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 18px;
}

/* Icon colors based on notification type */
.notification.success .notification-icon {
    background: #d1fae5;
    color: #10b981;
}

.notification.error .notification-icon {
    background: #fee2e2;
    color: #ef4444;
}

.notification.warning .notification-icon {
    background: #fef3c7;
    color: #f59e0b;
}

.notification.info .notification-icon {
    background: #dbeafe;
    color: #3b82f6;
}

/* Notification Content */
.notification-content {
    flex: 1;
    padding-right: 30px;
}

.notification-title {
    font-weight: 600;
    font-size: 15px;
    color: #1f2937;
    margin-bottom: 4px;
}

.notification-message {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.4;
}

/* Close Button Styling - FIXED */
.notification-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    color: #6b7280;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    font-family: Arial, sans-serif;
    font-weight: 400;
}

.notification-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #374151;
    transform: scale(1.1);
}

.notification-close:active {
    transform: scale(0.95);
}

/* Background colors for notification types */
.notification.success { 
    border-left-color: #10b981; 
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.notification.error { 
    border-left-color: #ef4444; 
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

.notification.warning { 
    border-left-color: #f59e0b; 
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.notification.info {
    border-left-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

/* ===========================
   AUTH MODAL ENHANCEMENTS
   =========================== */

.auth-form {
    display: none !important;
    visibility: hidden;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.auth-form.active {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    overflow: visible !important;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal Dialog */
.modal-dialog {
    width: 90%;
    max-width: 500px;
    margin: 30px auto;
}

.modal-content {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: none;
}

.modal-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border-bottom: none;
    padding: 1.5rem;
}

.modal-title {
    font-weight: 600;
}

.modal-body {
    padding: 2rem;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Form Controls */
.form-control {
    display: block;
    width: 100%;
    height: calc(2.5rem + 2px);
    padding: 0.5rem 0.75rem;
    font-size: 16px;
    line-height: 1.5;
    color: #374151;
    background-color: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: #2a5298;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
    background-color: white;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
}

/* User Type Cards */
.user-type-card {
    display: block;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: white;
    margin-bottom: 15px;
    cursor: pointer;
}

.user-type-card:hover {
    border-color: #2a5298;
    box-shadow: 0 8px 24px rgba(42, 82, 152, 0.15);
    transform: translateY(-4px);
}

/* Buttons */
.btn {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    border: 1px solid transparent;
    padding: 0.75rem 1.5rem;
    font-size: 16px;
    line-height: 1.5;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(42, 82, 152, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1e3c72 0%, #152a5a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 82, 152, 0.4);
}

.btn-success {
    color: #fff;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Loading State */
.btn.loading {
    pointer-events: none;
    opacity: 0.7;
    position: relative;
}

.btn.loading::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    top: 50%;
    left: 50%;
    margin-left: -9px;
    margin-top: -9px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Alert Boxes */
.alert {
    display: block;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    border: none;
    border-radius: 10px;
    border-left: 4px solid;
}

.alert-info {
    color: #0c5460;
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    border-left-color: #17a2b8;
}

.alert-warning {
    color: #856404;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-left-color: #f59e0b;
}

.alert-success {
    color: #155724;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-left-color: #10b981;
}

/* ===========================
   MOBILE RESPONSIVE
   =========================== */

@media (max-width: 576px) {
    .modal-dialog {
        width: 95%;
        margin: 10px auto;
    }
    
    .modal-body {
        padding: 1.5rem 1rem;
    }
    
    #notificationContainer {
        left: 10px;
        right: 10px;
        width: auto;
        top: 80px;
    }
    
    .notification {
        padding: 14px 16px;
    }
    
    .notification-icon {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
    
    .notification-title {
        font-size: 14px;
    }
    
    .notification-message {
        font-size: 13px;
    }
    
    .notification-close {
        width: 22px;
        height: 22px;
        font-size: 16px;
    }
}