/* Modern CSS Variables */
:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #dbeafe;
    --secondary: #64748b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray: #94a3b8;
    --gray-light: #e2e8f0;
    --border-radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s ease;
}

body {
    background-color: #48484f;
    color: white;
}

/* Layout */
.job-container {
    margin-top: 2rem;
    margin-bottom: 4rem;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-title {
    font-weight: 800;
    font-size: 2.5rem;
    color: white;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: white;
    font-size: 1.1rem;
}

/* Modern Grid Layout */
.layout-row {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2rem;
    align-items: start;
}

/* Enhanced Sidebar */
.sidebar {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    position: sticky;
    top: 2rem;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-light);
}

.sidebar-header i {
    color: var(--primary);
    font-size: 1.25rem;
}

.sidebar h4 {
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}

.filter-section {
    margin-bottom: 2rem;
}

.filter-title {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Modern Radio & Checkbox Styles */
.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--gray-light);
}

.filter-option:hover {
    background-color: var(--primary-light);
    border-color: var(--primary);
}

.filter-option input[type="radio"],
.filter-option input[type="checkbox"] {
    display: none;
}

.filter-option .custom-radio {
    width: 18px;
    height: 18px;
    border: 2px solid var(--gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.filter-option .custom-radio::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
    transform: scale(0);
    transition: var(--transition);
}

.filter-option input[type="radio"]:checked+.custom-radio {
    background: var(--primary);
    border-color: var(--primary);
}

.filter-option input[type="radio"]:checked+.custom-radio::after {
    transform: scale(1);
}

.filter-option .option-label {
    flex: 1;
    font-weight: 500;
    color: var(--dark);
}

.filter-option .option-count {
    background: var(--gray-light);
    color: var(--secondary);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Search Box */
.search-box {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
}

.search-box .form-control {
    padding-left: 2.5rem;
    border: 2px solid var(--gray-light);
    border-radius: 10px;
    transition: var(--transition);
}

.search-box .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Modern Button */
.btn-modern {
    background: var(--primary);
    border: none;
    border-radius: 10px;
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    color: white;
    transition: var(--transition);
    width: 100%;
    margin-top: 1rem;
}

.btn-modern:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    color: white;
}



/* Enhanced Job Card */
.card-job {
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    background: white;
    cursor: pointer;
    height: 100%;
}

.card-job:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-image {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.card-job img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-job:hover img {
    transform: scale(1.05);
}

.card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.card-body {
    padding: 1.5rem;
}

.job-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.company-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.company-icon {
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
}

.company-name {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.9rem;
}

.job-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary);
    font-size: 0.85rem;
}

.meta-item i {
    width: 16px;
    color: var(--primary);
}

.job-description {
    color: var(--secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Modern Badges */
.badge-modern {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.75rem;
    border: none;
}

.badge-open {
    background: var(--success);
    color: white;
}

.badge-closed {
    background: var(--danger);
    color: white;
}

.badge-category {
    background: var(--primary-light);
    color: var(--primary);
}

/* Results Header */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.results-count {
    font-weight: 600;
    color: var(--dark);
}

.sort-select {
    border: 2px solid var(--gray-light);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Loading Animation */
.loading-spinner {
    display: none;
    text-align: center;
    padding: 3rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--secondary);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--gray);
}

.empty-state h4 {
    color: var(--dark);
    margin-bottom: 0.5rem;
}



@media (max-width: 992px) {
    .layout-row {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {

    .page-title {
        font-size: 2rem;
    }

    .results-header {
        flex-direction: column;
        gap: 1rem;
        align-items: start;
    }
}

/* Animation for new cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.5s ease-out;
}

/* Modern Job Card Styles */
.card-job {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
    overflow: hidden;
    height: 100%;
    position: relative;
}

.card-job:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Card Header */
.card-header {
    padding: 1.5rem 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.job-meta-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    flex: 1;
}

.job-number {
    flex-shrink: 0;
}

/* Badges */
.badge {
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.75rem;
    border: none;
}

.badge-category {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.badge-status {
    font-size: 0.7rem;
    padding: 0.4rem 0.6rem;
}

.badge-open {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
}

.badge-closed {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    color: white;
}

/* Card Body */
.card-body {
    padding: 1.25rem 1.5rem;
    flex: 1;
}

.job-title {
    font-weight: 700;
    font-size: 1.25rem;
    color: #1a202c;
    margin-bottom: 1rem;
    line-height: 1.4;
}

/* Job Meta Grid */
.job-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f7fafc;
    border-radius: 12px;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.meta-item i {
    color: #667eea;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.meta-item span {
    font-size: 0.75rem;
    color: #718096;
    font-weight: 500;
}

.meta-item strong {
    font-size: 0.875rem;
    color: #2d3748;
    font-weight: 600;
}

/* Job Description */
.job-description {
    margin-bottom: 1.5rem;
}

.job-description p {
    color: #4a5568;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* Salary Range */
.salary-range {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #fed7e2 0%, #fbb6ce 100%);
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.salary-range i {
    color: #d53f8c;
    font-size: 1rem;
}

.salary-text {
    font-weight: 700;
    color: #702459;
    font-size: 0.95rem;
}

.salary-text small {
    font-weight: 500;
    opacity: 0.8;
}

/* Skills Tags */
.job-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.skill-tag {
    padding: 0.375rem 0.75rem;
    background: #edf2f7;
    color: #4a5568;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.skill-tag:hover {
    background: #667eea;
    color: white;
    transform: translateY(-1px);
}

.skill-tag.more {
    background: transparent;
    color: #667eea;
    border: 1px dashed #667eea;
}

/* Card Footer */
.card-footer {
    padding: 1rem 1.5rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: transparent;
    border-top: 1px solid #e2e8f0;
}

.btn-view-job {
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-view-job:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

.btn-save-job {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.75rem;
    color: #718096;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-save-job:hover {
    background: #667eea;
    border-color: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .job-meta-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .job-number {
        align-self: flex-end;
    }
}

/* Animation for card entrance */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* Empty state styling */
.no-jobs {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: #718096;
}

.no-jobs i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-jobs h4 {
    color: #2d3748;
    margin-bottom: 0.5rem;
}