/* NORA - Neural Optimization for Recruitment & Assessment */
/* Modern AI-inspired design system */

:root {
    /* Primary Neural Colors */
    --neural-dark: #1a1a2e;
    --neural-purple: #6366f1;
    --neural-cyan: #06b6d4;
    --neural-pink: #ec4899;
    --neural-violet: #8b5cf6;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #6366f1 100%);
    --gradient-accent: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    
    /* Neutral Colors */
    --bg-primary: #0f0f1e;
    --bg-secondary: #1a1a2e;
    --bg-card: #16213e;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --border-color: #2d3748;
    
    /* Legacy compatibility */
    --dark-blue: #1a1a2e;
    --blue: #6366f1;
    --yellow: #06b6d4;
    --light-gray: #f8fafc;
    --medium-gray: #e2e8f0;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #1e293b;
    background: linear-gradient(to bottom, #f8fafc 0%, #e2e8f0 100%);
    background-attachment: fixed;
    background-size: cover;
    min-height: 100vh;
}

/* Header & Navigation */
.navbar-brand {
    font-weight: bold;
    transition: all 0.3s ease;
}

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

.navbar-brand > div > span:last-child {
    transition: color 0.3s ease;
}

.navbar-brand:hover > div > span:last-child {
    color: var(--neural-cyan) !important;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--neural-cyan);
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

.navbar-dark .navbar-nav .nav-link.active {
    color: var(--neural-cyan);
    background: rgba(99, 102, 241, 0.15);
}

/* Job Cards - Modern Neural Design */
.job-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 16px;
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    position: relative;
}

.job-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.job-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(99, 102, 241, 0.2), 0 10px 10px -5px rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
    cursor: pointer;
}

.job-card:hover::before {
    opacity: 1;
}

.job-card .card-title {
    color: var(--neural-purple);
    font-weight: 600;
    font-size: 1.25rem;
}

.job-card .card-footer {
    border-top: none;
    background: transparent;
}

/* Buttons - Modern Gradient Style */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    border-radius: 8px;
    padding: 0.625rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, #5558e3 0%, #7c4fe0 100%);
}

.btn-secondary {
    background-color: var(--dark-blue);
    border-color: var(--dark-blue);
}

.btn-secondary:hover {
    background-color: #1a2a33;
    border-color: #1a2a33;
}

.btn-accent {
    background-color: var(--yellow);
    border-color: var(--yellow);
    color: var(--dark-blue);
}

.btn-accent:hover {
    background-color: #e5b025;
    border-color: #e5b025;
    color: var(--dark-blue);
}

.btn-outline-primary {
    color: var(--neural-purple);
    border: 2px solid var(--neural-purple);
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
}

/* Forms - Modern Style */
.form-control {
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    padding: 0.625rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--neural-purple);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    outline: none;
}

.form-label {
    font-weight: 500;
    color: #475569;
    margin-bottom: 0.5rem;
}

/* Cards - Modern Design */
.card {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(99, 102, 241, 0.1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card-header {
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    border: none;
    padding: 1.25rem 1.5rem;
}

/* Admin Dashboard - Modern Neural Style */
.sidebar {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    min-height: calc(100vh - 56px);
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.875rem 1.5rem;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    border-radius: 0 8px 8px 0;
    margin: 0.25rem 0;
}

.sidebar .nav-link:hover {
    color: white;
    background: rgba(99, 102, 241, 0.2);
    border-left: 3px solid var(--neural-cyan);
    transform: translateX(4px);
}

.sidebar .nav-link.active {
    color: white;
    background: rgba(99, 102, 241, 0.3);
    border-left: 3px solid var(--neural-purple);
}

.sidebar .nav-link i {
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

/* Status badges */
.badge-pending {
    background-color: var(--yellow);
    color: var(--dark-blue);
}

.badge-reviewing {
    background-color: #17a2b8;
    color: white;
}

.badge-interview {
    background-color: var(--blue);
    color: white;
}

.badge-rejected {
    background-color: #dc3545;
    color: white;
}

.badge-hired {
    background-color: #28a745;
    color: white;
}

.badge-active {
    background-color: #28a745;
    color: white;
}

.badge-closed {
    background-color: #6c757d;
    color: white;
}

.badge-draft {
    background-color: #6c757d;
    color: white;
}

/* Profile page - Modern Design */
.profile-header {
    background: var(--gradient-primary);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)"/></svg>');
    opacity: 0.3;
}

.profile-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.profile-img:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Footer */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
    margin-top: auto;
}

footer a {
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Hero Section - Modern Neural Design */
.hero-section {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
    padding: 4rem 0;
    margin-bottom: 3rem;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(99, 102, 241, 0.3);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-section .card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-section h1 {
    color: white;
    font-weight: 700;
    font-size: 2.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-section p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.125rem;
}

.hero-section .btn-light {
    background: white;
    color: var(--neural-purple);
    border: none;
    font-weight: 600;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

.hero-section .btn-light:hover {
    background: rgba(255, 255, 255, 0.95);
    color: var(--neural-purple);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.hero-section .btn-outline-light {
    border: 2px solid white;
    color: white;
    font-weight: 600;
}

.hero-section .btn-outline-light:hover {
    background: white;
    color: var(--neural-purple);
    border-color: white;
    transform: translateY(-2px);
}

/* Auth Page Styles */
.auth-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(99, 102, 241, 0.1);
    overflow: hidden;
}

.auth-tabs .nav-link {
    border: none;
    color: #64748b;
    font-weight: 500;
    padding: 1rem 2rem;
    transition: all 0.3s ease;
    position: relative;
}

.auth-tabs .nav-link.active {
    color: var(--neural-purple);
    background: transparent;
}

.auth-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px 3px 0 0;
}

.auth-tabs .nav-link:hover:not(.active) {
    color: var(--neural-purple);
    background: rgba(99, 102, 241, 0.05);
}

/* Modal Styles */
.modal-content {
    border-radius: 16px;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.modal-header {
    background: var(--gradient-primary);
    border-bottom: none;
    border-radius: 16px 16px 0 0;
}

/* Badge Styles - Modern */
.badge {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.875rem;
}

.bg-primary {
    background: var(--gradient-primary) !important;
}

/* Alert Styles */
.alert {
    border-radius: 12px;
    border: none;
    padding: 1rem 1.25rem;
}

.alert-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.alert-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.alert-info {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
}

/* Input Group Styles */
.input-group .btn {
    border-radius: 0 8px 8px 0;
}

.toggle-password {
    border-left: none;
}

/* Settings Page Tabs - Modern Style */
#settingsTabs .nav-link {
    color: #64748b;
    font-weight: 500;
    padding: 1rem 1.5rem;
    border: none;
    border-bottom: 3px solid transparent;
    background: transparent;
    transition: all 0.3s ease;
    position: relative;
}

#settingsTabs .nav-link:hover {
    color: var(--neural-purple);
    background: rgba(99, 102, 241, 0.05);
    border-bottom-color: rgba(99, 102, 241, 0.3);
}

#settingsTabs .nav-link.active {
    color: var(--neural-purple);
    background: rgba(99, 102, 241, 0.1);
    border-bottom-color: var(--neural-purple);
    font-weight: 600;
}

#settingsTabs .nav-link i {
    font-size: 1.1rem;
}

.card-header-tabs {
    margin: -0.75rem -1rem -0.75rem;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

/* Settings Page Content Styling */
.tab-content h5 {
    color: var(--neural-purple);
    font-weight: 600;
    display: flex;
    align-items: center;
}

.tab-content h5 i {
    color: var(--neural-cyan);
}

.tab-content .card {
    border: 1px solid rgba(99, 102, 241, 0.15);
    transition: all 0.3s ease;
}

.tab-content .card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.1);
}

.tab-content .alert {
    border-left: 4px solid;
}

.tab-content .alert-info {
    border-left-color: var(--neural-cyan);
}

.tab-content .alert-warning {
    border-left-color: #f59e0b;
}

/* Footer Contact Links */
footer a[href^="mailto:"],
footer a[href^="tel:"] {
    transition: all 0.3s ease;
}

footer a[href^="mailto:"]:hover,
footer a[href^="tel:"]:hover {
    color: var(--neural-cyan) !important;
    transform: translateX(3px);
}

/* Error Details Toggle */
.alert a[onclick*="errorDetails"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    color: white !important;
    transition: all 0.3s ease;
}

.alert a[onclick*="errorDetails"]:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.alert a[onclick*="errorDetails"] i {
    font-size: 0.75rem;
    color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .profile-img {
        width: 100px;
        height: 100px;
    }
    
    .profile-header {
        padding: 2rem 0;
    }
    
    .sidebar {
        min-height: auto;
    }
    
    .hero-section {
        padding: 2rem 0;
        margin-bottom: 2rem;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .auth-tabs .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    #settingsTabs .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    #settingsTabs .nav-link i {
        font-size: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem !important;
    }
    
    .navbar-brand > div > span:last-child {
        font-size: 0.9rem !important;
    }
}
