:root {
    --primary: #4F46E5;
    --primary-dark: #4338CA;
    --secondary: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
    --info: #3B82F6;
    --dark: #1F2937;
    --light: #F9FAFB;
    --gray: #6B7280;
    --border: #E5E7EB;
    
    --success: #10B981;
    --error: #EF4444;
    
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    
    --radius: 8px;
    --radius-lg: 16px;
    
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== NAVBAR ========== */
.navbar {
    background: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--primary);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
    padding: 8px;
    position: relative;
    z-index: 1001;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.mobile-menu-toggle:active {
    opacity: 0.7;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-linkedin {
    background: #0077B5;
    color: white;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 119, 181, 0.2);
    border: none;
    cursor: pointer;
}

.btn-linkedin:hover {
    background: #005582;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 119, 181, 0.3);
}

.btn-linkedin-share {
    background: #0077B5;
    color: white;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 119, 181, 0.2);
    border: none;
    cursor: pointer;
}

.btn-linkedin-share:hover {
    background: #005582;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 119, 181, 0.3);
}

.linkedin-autofill-section {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    margin-bottom: 30px;
    border: 2px dashed #dee2e6;
}

.linkedin-hint {
    margin-top: 12px;
    color: #6c757d;
    font-size: 0.9rem;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ========== ALERTS ========== */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius);
    margin: 20px auto;
    max-width: 600px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow);
}

.alert-success {
    background: #D1FAE5;
    color: #065F46;
    border-left: 4px solid var(--success);
}

.alert-error {
    background: #FEE2E2;
    color: #991B1B;
    border-left: 4px solid var(--error);
}

.alert-info {
    background: #DBEAFE;
    color: #1E40AF;
    border-left: 4px solid var(--info);
}

/* ========== HERO ========== */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #6366F1 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.search-box {
    max-width: 800px;
    margin: 0 auto;
}

.search-form {
    display: flex;
    gap: 12px;
    background: white;
    padding: 12px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.search-input {
    flex: 1;
    border: none;
    padding: 12px;
    font-size: 1rem;
    outline: none;
}

.search-select {
    border: 1px solid var(--border);
    padding: 12px;
    border-radius: var(--radius);
    font-size: 1rem;
    outline: none;
    cursor: pointer;
}

/* ========== JOBS ========== */
.jobs-section {
    padding: 60px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

/* Job card link wrapper */
.job-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.job-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.job-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.job-card-link:hover .job-card {
    border-left: 4px solid var(--primary);
}

.job-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.job-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
}

.job-contract {
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.job-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray);
    font-size: 0.875rem;
    margin-bottom: 8px;
}

.job-excerpt {
    color: var(--gray);
    margin: 16px 0;
    line-height: 1.6;
}

.job-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.job-date {
    color: var(--gray);
    font-size: 0.875rem;
}

/* ========== FORMS ========== */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.form-row .form-group {
    margin-bottom: 0;
}

.form-row:last-child {
    margin-bottom: 0;
}

.required {
    color: var(--danger);
}

/* ========== ADMIN LAYOUT ========== */
.admin-layout {
    display: flex;
    min-height: calc(100vh - 80px);
}

.sidebar {
    width: 260px;
    background: white;
    border-right: 1px solid var(--border);
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
}

.sidebar-header {
    padding: 24px;
    border-bottom: 1px solid var(--border);
}

.sidebar-nav {
    padding: 20px 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: var(--dark);
    text-decoration: none;
    transition: var(--transition);
}

.sidebar-link:hover,
.sidebar-link.active {
    background: var(--light);
    color: var(--primary);
    border-left: 4px solid var(--primary);
}

.admin-content {
    flex: 1;
    padding: 40px;
}

/* ========== TABLE ========== */
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    background: white;
}

.data-table {
    width: 100%;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: none;
    min-width: 800px;
}

.data-table thead {
    background: var(--light);
}

.data-table th,
.data-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    font-weight: 700;
    color: var(--dark);
}

.data-table tbody tr:hover {
    background: var(--light);
}

/* ========== BADGES ========== */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.badge-primary {
    background: #DBEAFE;
    color: var(--primary);
}

.badge-success {
    background: #D1FAE5;
    color: var(--success);
}

.badge-warning {
    background: #FEF3C7;
    color: var(--warning);
}

.badge-danger {
    background: #FEE2E2;
    color: var(--danger);
}

.status-new { background: #DBEAFE; color: #1E40AF; }
.status-info { background: #E0E7FF; color: #4338CA; }
.status-warning { background: #FEF3C7; color: #92400E; }
.status-success { background: #D1FAE5; color: #065F46; }
.status-danger { background: #FEE2E2; color: #991B1B; }

/* ========== STATS ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-primary .stat-icon {
    background: #DBEAFE;
    color: var(--primary);
}

.stat-success .stat-icon {
    background: #D1FAE5;
    color: var(--success);
}

.stat-warning .stat-icon {
    background: #FEF3C7;
    color: var(--warning);
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-content p {
    color: var(--gray);
    font-size: 0.875rem;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--dark);
    color: white;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 16px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-4px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .jobs-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .form-row .form-group {
        margin-bottom: 0;
    }

    .admin-layout {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        position: static;
        height: auto;
    }
    
    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        padding: 20px;
        z-index: 999;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        margin: 0;
        padding: 10px 0;
        border-bottom: 1px solid var(--border);
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }
}
/* ========== FIX ICONS & LINKS ========== */
a {
    text-decoration: none;
}

.nav-menu a,
.breadcrumb a,
.sidebar-link {
    color: inherit;
    text-decoration: none;
}

.nav-menu a:hover {
    text-decoration: none;
}

/* Fix icon underline */
i {
    text-decoration: none !important;
    font-style: normal;
}

/* ========== JOB DETAIL PAGE ========== */
.job-detail-container {
    padding: 40px 0;
    background: #f8f9fa;
    min-height: calc(100vh - 200px);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: var(--gray);
}

.breadcrumb a {
    color: var(--primary);
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.breadcrumb i {
    font-size: 0.7rem;
    opacity: 0.5;
}

.job-detail-header {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    gap: 30px;
}

.job-detail-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 16px;
    line-height: 1.2;
}

.job-detail-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    color: var(--gray);
}

.job-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
}

.job-meta i {
    color: var(--primary);
}

.job-detail-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    align-items: start;
}

.job-detail-main {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.job-section {
    margin-bottom: 40px;
}

.job-section:last-child {
    margin-bottom: 0;
}

.job-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary);
}

.job-section h2 i {
    color: var(--primary);
    font-size: 1.3rem;
}

.job-text {
    line-height: 1.8;
    color: #374151;
    font-size: 1rem;
}

.job-text p {
    margin-bottom: 16px;
}

.job-text ul {
    list-style: none;
    padding-left: 0;
}

.job-text li {
    padding-left: 28px;
    margin-bottom: 10px;
    position: relative;
}

.job-text li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
    font-size: 1.2rem;
}

.job-detail-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.sidebar-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-card h3 i {
    color: var(--primary);
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-item strong {
    color: var(--gray);
    font-weight: 600;
    font-size: 0.9rem;
}

.info-item span {
    color: var(--dark);
    font-weight: 600;
    text-align: right;
}

/* ========== BUTTON IMPROVEMENTS ========== */
.btn i {
    font-size: 0.9rem;
}

.btn-primary {
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
    transform: translateY(-3px);
}

.btn-outline {
    box-shadow: none;
}

.btn-outline:hover {
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

/* ========== IMPROVED JOB CARDS ========== */
.job-card {
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.job-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.job-card:hover::before {
    transform: scaleY(1);
}

.job-card:hover {
    border-color: var(--primary);
}

.job-title {
    color: var(--dark);
    transition: var(--transition);
}

.job-card:hover .job-title {
    color: var(--primary);
}

.job-info i {
    color: var(--primary);
    min-width: 16px;
}

.job-card-footer .btn {
    text-decoration: none;
}

/* ========== EMPTY STATE ========== */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--gray);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 1.125rem;
}

/* ========== RESPONSIVE JOB DETAIL ========== */
@media (max-width: 968px) {
    .job-detail-content {
        grid-template-columns: 1fr;
    }
    
    .job-detail-sidebar {
        position: static;
        order: -1;
    }
    
    .job-detail-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .job-detail-header-right {
        display: flex;
        justify-content: center;
        gap: 16px;
        flex-direction: row;
    }
    
    .job-detail-header h1 {
        font-size: 2rem;
    }
}

/* ========== SMOOTH ANIMATIONS ========== */
.slide-up {
    animation: slideUp 0.6s ease-out;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    }
    50% {
        box-shadow: 0 8px 24px rgba(79, 70, 229, 0.5);
    }
}

/* ========== FIX BUTTON TEXT COLOR ========== */
.btn-primary,
.btn-primary:visited {
    color: white !important;
}

.btn-outline,
.btn-outline:visited {
    color: var(--primary) !important;
}

.btn-outline:hover {
    color: white !important;
}

/* ========== IMPROVED FOOTER LINKS ========== */
.footer a {
    color: rgba(255,255,255,0.8);
    transition: var(--transition);
}

.footer a:hover {
    color: white;
    text-decoration: none;
}

/* ========== SIDEBAR ACTION ========== */
.sidebar-action {
    text-align: center;
}

.sidebar-action .btn {
    margin-bottom: 12px;
}

.action-note {
    font-size: 0.85rem;
    color: var(--gray);
    margin: 0;
}

/* ========== CONTENT FORMATTED ========== */
.content-formatted {
    font-size: 1.05rem;
}

.content-formatted p {
    margin-bottom: 20px;
}

/* ========== BETTER CARD SHADOWS ========== */
.job-card,
.sidebar-card,
.job-detail-main,
.job-detail-header {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.job-card:hover {
    box-shadow: 0 12px 28px rgba(79, 70, 229, 0.15);
}

/* ========== IMPROVED BADGES ========== */
.badge, .job-contract {
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    font-size: 0.75rem;
}

/* ========== JOB META IMPROVEMENTS ========== */
.job-meta .badge {
    padding: 6px 14px;
}

/* ========== SECTION TITLE UNDERLINE ========== */
.section-title {
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #6366F1);
    border-radius: 2px;
}

/* ========== SMOOTH SCROLL & STICKY FOOTER ========== */
html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1 0 auto;
}

.footer {
    flex-shrink: 0;
}

/* ========== SELECTION COLOR ========== */
::selection {
    background: var(--primary);
    color: white;
}

/* ========== FOCUS VISIBLE ========== */
.btn:focus-visible,
a:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* ========== CARD HOVER GLOW ========== */
.sidebar-card {
    position: relative;
    overflow: hidden;
}

.sidebar-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(79, 70, 229, 0.05), transparent);
    transition: left 0.5s;
}

.sidebar-card:hover::after {
    left: 100%;
}

/* ========== IMPROVED SPACING ========== */
.job-detail-main {
    line-height: 1.7;
}

.job-section + .job-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

/* ========== PRINT STYLES ========== */
/* ========== BACK BUTTON ========== */
.back-button-container {
    margin-bottom: 20px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    padding: 10px 20px;
}

.btn-back:hover {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ========== AUTH / LOGIN PAGE ========== */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 80px - 200px);
    padding: 40px 20px;
}

.auth-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 48px;
    max-width: 450px;
    width: 100%;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header i {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 16px;
    display: block;
}

.auth-header h2 {
    color: var(--dark);
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.auth-form .form-group {
    margin-bottom: 24px;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark);
    font-size: 14px;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    position: absolute;
    left: 16px;
    color: var(--muted);
    font-size: 16px;
    pointer-events: none;
}

.input-with-icon input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    transition: all 0.3s ease;
    background: white;
}

.input-with-icon input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

.checkbox-label span {
    color: var(--muted);
}

.auth-form .btn-block {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 8px;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.auth-footer a:hover {
    color: var(--dark);
    text-decoration: underline;
}

/* Responsive auth */
@media (max-width: 576px) {
    .auth-card {
        padding: 32px 24px;
    }

    .auth-header h2 {
        font-size: 20px;
    }
}

/* ========== ADMIN LAYOUT ========== */
.admin-layout {
    display: flex;
    min-height: calc(100vh - 80px);
}

.sidebar {
    width: 260px;
    background: white;
    border-right: 1px solid var(--border);
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
    flex-shrink: 0;
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid var(--border);
}

.sidebar-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
}

.sidebar-nav {
    padding: 16px 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--muted);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 15px;
}

.sidebar-link:hover {
    background: var(--light);
    color: var(--primary);
}

.sidebar-link.active {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    border-left: 3px solid var(--primary);
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 14px;
}

.admin-content {
    flex: 1;
    padding: 32px;
    background: var(--light);
    overflow-x: auto;
}

/* ========== ADMIN PAGE HEADER ========== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

.page-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 8px 0;
}

.page-header p {
    color: var(--muted);
    margin: 0;
}

.page-actions {
    display: flex;
    gap: 12px;
}

/* ========== FILTERS BAR ========== */
.filters-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.filters-left {
    display: flex;
    gap: 12px;
    flex: 1;
}

.filters-right {
    display: flex;
    gap: 12px;
}

.filter-input {
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    min-width: 250px;
}

.filter-select {
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    background: white;
    cursor: pointer;
}

/* ========== DATA TABLES ========== */
.table-container {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: var(--light);
    border-bottom: 2px solid var(--border);
}

.data-table th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    color: var(--dark);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.data-table tbody tr:hover {
    background: rgba(79, 70, 229, 0.02);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.candidate-info strong,
.job-title-cell strong {
    display: block;
    margin-bottom: 4px;
    color: var(--dark);
}

.candidate-info small,
.job-title-cell small {
    color: var(--muted);
    font-size: 13px;
}

.actions-cell {
    display: flex;
    gap: 8px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    margin: 16px 0;
    font-size: 16px;
}

/* ========== PAGINATION ========== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.pagination-link {
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--dark);
    transition: all 0.3s ease;
}

.pagination-link:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination-link.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ========== STATS GRID ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background: white;
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-primary .stat-icon {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
}

.stat-success .stat-icon {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
}

.stat-warning .stat-icon {
    background: rgba(251, 191, 36, 0.1);
    color: var(--warning);
}

.stat-info .stat-icon {
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
}

.stat-content h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 4px 0;
}

.stat-content p {
    color: var(--muted);
    margin: 0;
    font-size: 14px;
}

.stat-badge {
    display: inline-block;
    background: var(--light);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    color: var(--muted);
    margin-top: 8px;
}

/* ========== DASHBOARD GRID ========== */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 24px;
}

.dashboard-section {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 24px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
}

.table-responsive {
    overflow-x: auto;
}

/* ========== INTERVIEWS LIST ========== */
.interviews-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.interview-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.interview-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.1);
}

.interview-date {
    flex-shrink: 0;
}

.interview-info h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    color: var(--dark);
}

.interview-info p {
    margin: 0 0 8px 0;
    color: var(--muted);
    font-size: 14px;
}

.interview-info small {
    color: var(--primary);
    font-size: 13px;
}

/* ========== APPLICATION DETAIL ========== */
.application-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
}

.application-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.application-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.card-header h2,
.card-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
}

.card-body {
    padding: 24px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.info-item label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.info-item div {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--dark);
}

.info-item a {
    color: var(--primary);
    text-decoration: none;
}

.info-item a:hover {
    text-decoration: underline;
}

.cover-letter {
    white-space: pre-wrap;
    line-height: 1.7;
    color: var(--dark);
}

.profiles-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--light);
    border-radius: var(--radius);
}

.profile-item i {
    font-size: 20px;
    color: var(--primary);
}

.rating-stars {
    color: #FFC107;
    font-size: 16px;
}

.rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 8px;
}

.rating-input input[type="radio"] {
    display: none;
}

.rating-input label {
    font-size: 0;
    color: #DDD;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 0;
}

.rating-input label::before {
    content: '★';
    font-size: 32px;
    display: inline-block;
}

.rating-input label:hover,
.rating-input label:hover ~ label,
.rating-input input[type="radio"]:checked ~ label {
    color: #FFC107;
}

.badge-lg {
    padding: 10px 20px;
    font-size: 14px;
}

/* ========== JOB FORM ========== */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
}

.form-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark);
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-help {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: var(--muted);
}

.required {
    color: var(--danger);
}

.form-actions {
    margin-top: 24px;
}

.form-actions .btn {
    margin-bottom: 12px;
}

/* ========== BUTTON VARIANTS ========== */
.btn-success {
    background: var(--success);
    color: white;
    border-color: var(--success);
}

.btn-success:hover {
    background: #16A34A;
    border-color: #16A34A;
}

.btn-danger {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
}

.btn-danger:hover {
    background: #DC2626;
    border-color: #DC2626;
}

.btn-warning {
    background: var(--warning);
    color: var(--dark);
    border-color: var(--warning);
}

.btn-warning:hover {
    background: #F59E0B;
    border-color: #F59E0B;
}

/* ========== RESPONSIVE ADMIN ========== */
@media (max-width: 1024px) {
    .admin-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        top: 0;
    }

    .dashboard-grid,
    .application-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .filters-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .filters-left,
    .filters-right {
        width: 100%;
    }

    .filter-input {
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    .admin-content {
        padding: 16px;
    }

    .page-header {
        flex-direction: column;
        gap: 16px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .data-table {
        font-size: 13px;
    }

    .data-table th,
    .data-table td {
        padding: 12px 8px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media print {
    .navbar,
    .footer,
    .breadcrumb,
    .job-detail-header-right,
    .sidebar-action,
    .sidebar,
    .page-actions,
    .filters-bar {
        display: none;
    }

    .job-detail-content,
    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-content {
        padding: 0;
    }
}

/* Modal styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.2s ease-out;
}

.modal-content {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header h3 i {
    color: var(--primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--light);
    color: var(--dark);
}

.modal-body {
    padding: 24px;
}

.modal-body label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Candidate Info Grid - Application Detail */
.candidate-info-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.candidate-info-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    align-items: center;
    gap: 20px;
}

.candidate-info-row:last-child {
    border-bottom: none;
}

.candidate-info-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--gray);
    font-size: 0.9rem;
}

.candidate-info-label i {
    color: var(--primary);
    width: 20px;
    text-align: center;
}

.candidate-info-value {
    color: var(--dark);
    font-weight: 500;
    word-break: break-word;
}

.contact-link {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.2s;
}

.contact-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

.job-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.job-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Profile Links */
.profiles-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--light);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    transition: all 0.3s;
}

.profile-link:hover {
    transform: translateX(5px);
    border-color: var(--primary);
    background: white;
    box-shadow: var(--shadow);
}

.profile-link i:first-child {
    font-size: 1.5rem;
    width: 32px;
    text-align: center;
}

.profile-link i:last-child {
    margin-left: auto;
    font-size: 0.875rem;
    opacity: 0.5;
}

.profile-link span {
    flex: 1;
}

.profile-linkedin:hover {
    border-color: #0077B5;
}

.profile-linkedin:hover i:first-child {
    color: #0077B5;
}

.profile-github:hover {
    border-color: #333;
}

.profile-github:hover i:first-child {
    color: #333;
}

.profile-portfolio:hover {
    border-color: var(--success);
}

.profile-portfolio:hover i:first-child {
    color: var(--success);
}

/* Responsive */
@media (max-width: 768px) {
    .candidate-info-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .candidate-info-label {
        font-size: 0.85rem;
    }

    .candidate-info-value {
        padding-left: 30px;
    }
}

/* ========== USER AVATAR ========== */
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .user-avatar {
        border-radius: 50% !important;
    }
}
