:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --font-family: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: #f4f6f9;
    color: #333;
    line-height: 1.6;
}

/* Navigation */
.navbar {
    background: #ffffff !important;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    padding: 12px 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-brand span {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link {
    font-weight: 500;
    color: #4a4a4a !important;
    padding: 8px 16px !important;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    background: rgba(13, 110, 253, 0.08);
}

.nav-link.active {
    color: var(--primary-color) !important;
    background: rgba(13, 110, 253, 0.12);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 70%;
    height: 200%;
    background: rgba(255, 255, 255, 0.05);
    transform: rotate(35deg);
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

/* Search Box */
.search-box {
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.search-box .form-control,
.search-box .form-select {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.search-box .form-control:focus,
.search-box .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.search-box .btn-primary {
    padding: 12px 35px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
}

/* Hero Right Side */
.hero-right {
    color: #fff;
}

.hero-slider {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

/* Job Cards */
.job-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.job-card .company-logo {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: contain;
    background: #f8f9fa;
    padding: 5px;
}

.job-card .job-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
}

.job-card .job-title:hover {
    color: var(--primary-color);
}

.job-card .company-name {
    color: #6c757d;
    font-weight: 500;
    text-decoration: none;
}

.job-card .job-meta {
    color: #6c757d;
    font-size: 0.9rem;
}

.job-card .job-meta i {
    width: 20px;
}

.job-card .salary-range {
    color: var(--success-color);
    font-weight: 600;
}

.job-card .deadline {
    color: var(--danger-color);
    font-size: 0.85rem;
}

/* Category Cards */
.category-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    text-decoration: none;
    display: block;
    color: #333;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.category-card .category-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.category-card .category-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.category-card .job-count {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Company Card */
.company-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.company-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.company-card .company-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: contain;
    background: #f8f9fa;
    padding: 10px;
    margin-bottom: 15px;
}

.company-card .company-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.company-card .job-count {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Sidebar */
.sidebar-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    border: 1px solid #e9ecef;
}

.sidebar-card .card-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.sidebar-card .filter-group {
    margin-bottom: 15px;
}

.sidebar-card .filter-group label {
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.sidebar-card .filter-group .form-control,
.sidebar-card .filter-group .form-select {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 8px 12px;
    font-size: 0.9rem;
}

/* Dashboard Cards */
.dashboard-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.dashboard-card .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.dashboard-card .stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 10px;
}

.dashboard-card .stat-label {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Status Badges */
.badge-status {
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.8rem;
}

.badge-status.pending { background: #fff3cd; color: #856404; }
.badge-status.approved { background: #d4edda; color: #155724; }
.badge-status.rejected { background: #f8d7da; color: #721c24; }
.badge-status.active { background: #d4edda; color: #155724; }
.badge-status.inactive { background: #e2e3e5; color: #383d41; }
.badge-status.shortlisted { background: #cce5ff; color: #004085; }
.badge-status.confirmed { background: #d4edda; color: #155724; }

/* CV Builder */
.cv-section {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    border: 1px solid #e9ecef;
}

.cv-section .section-title {
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.cv-preview {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 30px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

/* Responsive */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-section {
        padding: 50px 0;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .search-box {
        padding: 15px;
    }
    
    .job-card {
        padding: 16px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .navbar-brand span {
        font-size: 1.2rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

/* Loading Spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner-overlay.show {
    display: flex;
}

/* Toast Notification */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast-custom {
    background: #fff;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    border-left: 4px solid var(--primary-color);
    animation: slideInRight 0.4s ease;
}

.toast-custom.success { border-left-color: var(--success-color); }
.toast-custom.error { border-left-color: var(--danger-color); }
.toast-custom.warning { border-left-color: var(--warning-color); }

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