body {
    margin-top: 50px;
}

[data-theme="dark"] .join-section {
    background: #1a1a1a;
        }

        /* Application Form */
        .application-form {
            background: white;
            border-radius: 20px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.1);
            padding: 40px;
            margin-bottom: 40px;
        }

        [data-theme="dark"] .application-form {
            background: #2d2d2d;
            box-shadow: 0 20px 60px rgba(0,0,0,0.3);
        }

        .form-title {
            color: #2A5298;
            font-size: 2rem;
            font-weight: 700;
            margin-bottom: 2rem;
            text-align: center;
        }

        [data-theme="dark"] .form-title {
            color: #4A90E2;
        }

        .form-group {
            margin-bottom: 1.5rem;
        }

        .form-label {
            font-weight: 600;
            color: #333;
            margin-bottom: 0.5rem;
            display: block;
        }

        [data-theme="dark"] .form-label {
            color: #e0e0e0;
        }

        .form-control {
            border: 2px solid #e9ecef;
            border-radius: 10px;
            padding: 12px 15px;
            transition: all 0.3s ease;
            font-size: 1rem;
            width: 100%;
            max-width: 100%;
            box-sizing: border-box;
        }

        .form-control:focus {
            border-color: #2A5298;
            box-shadow: 0 0 0 0.2rem rgba(42, 82, 152, 0.25);
        }

        [data-theme="dark"] .form-control {
            background: #404040;
            border-color: #555;
            color: white;
        }

        [data-theme="dark"] .form-control:focus {
            border-color: #4A90E2;
            box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.25);
        }

        .btn-apply {
            background: linear-gradient(135deg, #2A5298, #3B82F6);
            color: white;
            border: none;
            padding: 15px 40px;
            border-radius: 50px;
            font-weight: 600;
            transition: all 0.3s ease;
            width: 100%;
            font-size: 1.1rem;
        }

        .btn-apply:hover {
            background: linear-gradient(135deg, #1e3a7a, #2563eb);
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(42, 82, 152, 0.3);
            color: white;
        }

        /* Job Offers Sidebar */
        .job-offers-sidebar {
            background: white;
            border-radius: 20px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.1);
            padding: 30px;
            height: fit-content;
            position: sticky;
            top: 100px;
        }

        [data-theme="dark"] .job-offers-sidebar {
            background: #2d2d2d;
            box-shadow: 0 20px 60px rgba(0,0,0,0.3);
        }

        .sidebar-title {
            color: #2A5298;
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
            text-align: center;
            position: relative;
        }

        [data-theme="dark"] .sidebar-title {
            color: #4A90E2;
        }

        .sidebar-title::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 50%;
            transform: translateX(-50%);
            width: 50px;
            height: 3px;
            background: #FFC107;
            border-radius: 2px;
        }

        .job-card {
            border: 1px solid #e9ecef;
            border-radius: 15px;
            padding: 20px;
            margin-bottom: 20px;
            transition: all 0.3s ease;
            background: #fafbfc;
            user-select: none;
            -webkit-user-select: none; /* Safari */
            -moz-user-select: none; /* Firefox */
            -ms-user-select: none; /* IE/Edge */
        }

        .job-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 25px rgba(0,0,0,0.1);
            border-color: #2A5298;
        }

        [data-theme="dark"] .job-card {
            background: #1e1e1e;
            border-color: #404040;
        }

        [data-theme="dark"] .job-card:hover {
            border-color: #4A90E2;
            box-shadow: 0 10px 25px rgba(0,0,0,0.3);
        }

        .job-title {
            font-size: 1.1rem;
            font-weight: 600;
            color: #2A5298;
            margin-bottom: 8px;
        }

        [data-theme="dark"] .job-title {
            color: #4A90E2;
        }

        .job-type {
            background: #e3f2fd;
            color: #1976d2;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 500;
            display: inline-block;
            margin-bottom: 10px;
        }

        .job-type.internship {
            background: #f3e5f5;
            color: #7b1fa2;
        }

        .job-type.part-time {
            background: #e8f5e8;
            color: #2e7d32;
        }

        [data-theme="dark"] .job-type {
            background: #1565c0;
            color: white;
        }

        [data-theme="dark"] .job-type.internship {
            background: #6a1b9a;
            color: white;
        }

        [data-theme="dark"] .job-type.part-time {
            background: #2e7d32;
            color: white;
        }

        .job-description {
            font-size: 0.9rem;
            color: #666;
            margin-bottom: 10px;
            line-height: 1.4;
        }

        [data-theme="dark"] .job-description {
            color: #b0b0b0;
        }

        .job-date {
            font-size: 0.8rem;
            color: #999;
            display: flex;
            align-items: center;
        }

        [data-theme="dark"] .job-date {
            color: #888;
        }

        /* Application Type Toggle */
        .application-type {
            display: flex;
            background: #f8f9fa;
            border-radius: 50px;
            padding: 5px;
            margin-bottom: 2rem;
        }

        [data-theme="dark"] .application-type {
            background: #404040;
        }

        .type-option {
            flex: 1;
            text-align: center;
            padding: 12px 20px;
            border-radius: 45px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 600;
        }

        .type-option.active {
            background: linear-gradient(135deg, #2A5298, #3B82F6);
            color: white;
            box-shadow: 0 4px 15px rgba(42, 82, 152, 0.3);
        }

        .type-option:not(.active) {
            color: #666;
        }

        [data-theme="dark"] .type-option:not(.active) {
            color: #b0b0b0;
        }

        /* File Upload Styling */
        .file-upload {
            position: relative;
            display: inline-block;
            width: 100%;
        }

        .file-upload input[type=file] {
            position: absolute;
            left: -9999px;
        }

        .file-upload-label {
            display: block;
            padding: 12px 15px;
            border: 2px dashed #2A5298;
            border-radius: 10px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            background: #f8f9fa;
            width: 100%;
            max-width: 100%;
            box-sizing: border-box;
        }

        .file-upload-label:hover {
            background: #e3f2fd;
            border-color: #1976d2;
        }

        [data-theme="dark"] .file-upload-label {
            background: #404040;
            border-color: #4A90E2;
            color: #e0e0e0;
        }

        [data-theme="dark"] .file-upload-label:hover {
            background: #4a4a4a;
            border-color: #6bb6ff;
        }

        /* Success Message */
        .success-message {
            background: linear-gradient(135deg, #4caf50, #45a049);
            color: white;
            padding: 15px 20px;
            border-radius: 10px;
            margin-top: 20px;
            text-align: center;
            display: none;
        }
.bg-white {
    background-color: var(--card-bg) !important;
}
.bg-light {
    background-color: var(--bg-secondary) !important;
}

/* Confirmation Modal Styles */
.modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

[data-theme="dark"] .modal-content {
    background: #2d2d2d;
    color: #e0e0e0;
}

.modal-header {
    padding: 2rem 2rem 1rem;
}

.modal-body {
    padding: 1rem 2rem;
}

.modal-footer {
    padding: 1rem 2rem 2rem;
}

.modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 3rem;
}

.modal-icon.success {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

[data-theme="dark"] .modal-title {
    color: #4caf50 !important;
}

.modal-message {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
}

[data-theme="dark"] .modal-message {
    color: #b0b0b0;
}

.modal-details {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 1.5rem;
    margin: 1rem 0;
}

[data-theme="dark"] .modal-details {
    background: #1e1e1e;
}

.detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-weight: 500;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-item i {
    width: 20px;
}

[data-theme="dark"] .detail-item {
    color: #e0e0e0;
}

.btn-modal-close {
    background: linear-gradient(135deg, #2A5298, #3B82F6);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-modal-close:hover {
    background: linear-gradient(135deg, #1e3a7a, #2563eb);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(42, 82, 152, 0.3);
}

.btn-outline-primary {
    border: 2px solid #2A5298;
    color: #2A5298;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-outline-primary:hover {
    background: #2A5298;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(42, 82, 152, 0.3);
}

[data-theme="dark"] .btn-outline-primary {
    border-color: #4A90E2;
    color: #4A90E2;
}

[data-theme="dark"] .btn-outline-primary:hover {
    background: #4A90E2;
    color: white;
}

/* Modal backdrop */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.6);
}

/* Close button styling */
.btn-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.btn-close:hover {
    opacity: 1;
}

[data-theme="dark"] .btn-close {
    filter: invert(1);
}

/* Enhanced Job Cards Styles */
.jobs-count-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 50px;
}

.job-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.job-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.job-detail {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: #666;
}

[data-theme="dark"] .job-detail {
    color: #b0b0b0;
}

.job-detail i {
    width: 14px;
    margin-left: 5px;
    color: #2A5298;
}

[data-theme="dark"] .job-detail i {
    color: #4A90E2;
}

.job-dates {
    border-top: 1px solid #e9ecef;
    padding-top: 10px;
    margin-top: 10px;
}

[data-theme="dark"] .job-dates {
    border-top-color: #404040;
}

.job-deadline {
    font-size: 0.8rem;
    color: #999;
    display: flex;
    align-items: center;
    margin-top: 5px;
}

[data-theme="dark"] .job-deadline {
    color: #888;
}

.deadline-warning {
    background: #fff3cd;
    color: #856404;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

[data-theme="dark"] .deadline-warning {
    background: #664d03;
    color: #ffda6a;
}

.job-type.temporary {
    background: #fff3e0;
    color: #ef6c00;
}

[data-theme="dark"] .job-type.temporary {
    background: #e65100;
    color: white;
}

/* Messages */
#noJobsMessage i {
    opacity: 0.3;
}

#errorMessage {
    border-radius: 15px;
    border: none;
    background: #fff3cd;
    color: #856404;
}

[data-theme="dark"] #errorMessage {
    background: #664d03;
    color: #ffda6a;
}

/* Job Details Modal Styles */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .modal-content {
    background: #2d2d2d;
    color: #e1e1e1;
}

.modal-header {
    border-radius: 15px 15px 0 0;
    border-bottom: none;
    padding: 1.5rem 2rem;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 15px 15px;
    padding: 1rem 2rem;
}

[data-theme="dark"] .modal-footer {
    border-top-color: #404040;
}

.job-summary-card {
    border-left: 4px solid #2A5298;
    transition: all 0.3s ease;
}

[data-theme="dark"] .job-summary-card {
    background: #363636 !important;
    border-left-color: #3B82F6;
}

.job-summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(42, 82, 152, 0.15);
}

.summary-item {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 0.75rem;
}

.summary-item:last-child {
    border-bottom: none;
    margin-bottom: 0 !important;
}

[data-theme="dark"] .summary-item {
    border-bottom-color: #404040;
}

.job-info-section h5 {
    color: #2A5298;
    font-weight: 600;
    margin-bottom: 1rem;
}

[data-theme="dark"] .job-info-section h5 {
    color: #3B82F6;
}

.job-meta-detailed {
    margin-bottom: 1.5rem;
}

.job-meta-detailed .badge {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Enhanced job card hover effect */
.job-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: #2A5298;
    cursor: pointer;
}

[data-theme="dark"] .job-card:hover {
    border-color: #4A90E2;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* Click indicator styling */
.job-card .text-muted {
    transition: all 0.3s ease;
    opacity: 0.7;
}

.job-card:hover .text-muted {
    opacity: 1;
    color: #2A5298 !important;
}

[data-theme="dark"] .job-card:hover .text-muted {
    color: #3B82F6 !important;
}

/* Modal animation */
.modal.fade .modal-dialog {
    transform: translate(0, -50px);
    transition: transform 0.3s ease-out;
}

.modal.show .modal-dialog {
    transform: translate(0, 0);
}