/* =========================================
   Vacancy Management Styles
   ========================================= */

/* Scoped Modern Styles for Preview Page */
.preview-sidebar-modern {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 20px;
}

.preview-sidebar-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.preview-sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Updated Padding for compact look */
.preview-sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    color: #111111;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.preview-sidebar-menu li a i {
    width: 18px;
    font-size: 14px;
    color: #027dcf;
}

.preview-sidebar-menu li a:hover {
    background: #f0f8ff;
    color: #027dcf;
}

.preview-sidebar-menu li.active a {
    background: linear-gradient(135deg, #027dcf 0%, #0396e8 100%);
    color: white;
}

.preview-sidebar-menu li.active a i {
    color: white;
}

.preview-content-modern {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.preview-section-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.preview-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 10px;
}

.preview-section-title i {
    color: #027dcf;
    font-size: 18px;
}

/* Unique Styles from PreviewVacancy */
.preview-company-header {
    background: linear-gradient(135deg, #027dcf 0%, #0396e8 100%);
    border-radius: 12px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 25px;
    box-shadow: 0 4px 20px rgba(2, 125, 207, 0.2);
}

.preview-company-logo-wrapper {
    flex-shrink: 0;
}

.preview-company-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    background: white;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.preview-company-logo-placeholder {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #027dcf;
}

.preview-company-info-text {
    flex: 1;
}

.preview-company-name {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin: 0 0 10px 0;
}

.preview-company-address {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.preview-company-address i {
    font-size: 14px;
}

.preview-status-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 14px;
}

.preview-status-label {
    font-weight: 600;
}

.preview-section-content {
    color: #4a4a4a;
    font-size: 15px;
    line-height: 1.8;
}

.preview-vacancy-header {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.preview-vacancy-title {
    font-size: 26px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 12px 0;
}

.preview-vacancy-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #111111;
    font-size: 14px;
}

.preview-vacancy-meta i {
    color: #027dcf;
    margin-right: 5px;
}

.preview-meta-divider {
    color: #dee2e6;
}

.preview-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.preview-detail-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.preview-detail-full {
    grid-column: 1 / -1;
}

.preview-detail-label {
    font-size: 13px;
    font-weight: 600;
    color: #111111;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.preview-detail-value {
    font-size: 15px;
    color: #2c3e50;
    font-weight: 500;
}

.preview-badge-success {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    background: #d4edda;
    color: #155724;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.preview-badge-neutral {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    background: #e9ecef;
    color: #495057;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.preview-actions {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    gap: 15px;
}

/* Responsive */
@media (max-width: 992px) {
    .preview-details-grid {
        grid-template-columns: 1fr;
    }

    .preview-company-header {
        flex-direction: column;
        text-align: center;
    }
}

/* =========================================
   Applicant List Styles (Card Layout)
   ========================================= */
.applicant-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.applicant-card {
    display: grid;
    grid-template-columns: 60px 2fr 1.5fr 1fr 100px;
    /* Avatar, Info, Date, Status, Action */
    align-items: center;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #f0f2f5;
    gap: 15px;
}

.applicant-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(2, 125, 207, 0.1);
    border-color: #e1f0fa;
}

.applicant-sn {
    display: none;
    /* Hidden for modern look, or small absolute? */
}

.applicant-avatar-wrapper {
    position: relative;
    width: 60px;
    height: 60px;
}

.applicant-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f8f9fa;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.applicant-info h5 {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 5px 0;
}

.applicant-email {
    font-size: 13px;
    color: #111111;
    display: flex;
    align-items: center;
    gap: 5px;
}

.applicant-meta-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #aeb5bc;
    font-weight: 600;
    margin-bottom: 4px;
    display: block;
}

.applicant-date {
    font-size: 14px;
    color: #4a4a4a;
    font-weight: 500;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.status-applied {
    background: #e3f2fd;
    color: #0277bd;
}

.status-shortlisted {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-interview-schedule {
    background: #fff3e0;
    color: #ef6c00;
}

.status-interviewed {
    background: #f3e5f5;
    color: #7b1fa2;
}

.status-offer-sent {
    background: #e0f7fa;
    color: #006064;
}

.status-accepted {
    background: #e0f2f1;
    color: #004d40;
}

/* Same as hired? */
.status-hired {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    box-shadow: 0 2px 5px rgba(46, 204, 113, 0.3);
}

.status-rejected {
    background: #ffebee;
    color: #c62828;
}

.status-declined {
    background: #eceff1;
    color: #37474f;
}

/* Action Button */
.btn-view-applicant {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f8f9fa;
    color: #027dcf;
    transition: all 0.3s ease;
    border: none;
}

.btn-view-applicant:hover {
    background: #027dcf;
    color: white;
    box-shadow: 0 4px 10px rgba(2, 125, 207, 0.3);
}

/* Responsive Table */
@media (max-width: 992px) {
    .applicant-card {
        grid-template-columns: 60px 1fr;
        grid-template-rows: auto auto auto;
        gap: 15px;
        position: relative;
    }

    .applicant-avatar-wrapper {
        grid-row: 1;
        grid-column: 1;
    }

    .applicant-info {
        grid-row: 1;
        grid-column: 2;
        align-self: center;
    }

    .applicant-date-wrapper {
        grid-row: 2;
        grid-column: 1 / -1;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .applicant-status-wrapper {
        grid-row: 3;
        grid-column: 1 / -1;
    }

    .applicant-action-wrapper {
        position: absolute;
        top: 20px;
        right: 20px;
    }
}

/* =========================================
   Applicant Detail Styles (Single View)
   ========================================= */
.applicant-detail-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f2f5;
}

.applicant-header-modern {
    display: flex;
    align-items: center;
    gap: 25px;
    padding-bottom: 25px;
    border-bottom: 2px solid #f0f2f5;
    margin-bottom: 25px;
}

.applicant-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.applicant-header-info {
    flex: 1;
}

.applicant-header-info h2 {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 8px 0;
}

.applicant-contact-row {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #111111;
}

.applicant-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.applicant-contact-item i {
    color: #027dcf;
}

.applicant-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.applicant-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.detail-pills {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-label {
    font-size: 12px;
    color: #8898aa;
    font-weight: 600;
    text-transform: uppercase;
}

.detail-value {
    font-size: 15px;
    color: #32325d;
    font-weight: 500;
}

.resume-preview-box {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    margin-top: 20px;
}

.resume-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.btn-modern-primary {
    background: #027dcf;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.btn-modern-primary:hover {
    background: #026aa8;
    color: white;
}

.btn-modern-outline {
    background: transparent;
    color: #027dcf;
    border: 1px solid #027dcf;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-modern-outline:hover {
    background: #f0f8ff;
}

/* Status Actions */
.status-actions-bar {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.status-actions-title {
    font-weight: 600;
    color: #2c3e50;
}

.action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 768px) {
    .applicant-header-modern {
        flex-direction: column;
        text-align: center;
    }

    .applicant-details-grid {
        grid-template-columns: 1fr;
    }

    .status-actions-bar {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}

/* =========================================
   Timeline Styles (Experience)
   ========================================= */
.experience-timeline {
    position: relative;
    padding-left: 20px;
    border-left: 2px solid #e9ecef;
    margin-left: 10px;
    margin-bottom: 30px;
}

.timeline-item {
    position: relative;
    margin-bottom: 25px;
    padding-left: 20px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -28px;
    top: 5px;
    width: 14px;
    height: 14px;
    background: #fff;
    border: 3px solid #027dcf;
    border-radius: 50%;
}

.timeline-company {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
}

.timeline-role {
    font-size: 14px;
    color: #027dcf;
    font-weight: 600;
    margin-bottom: 5px;
}

.timeline-date {
    font-size: 13px;
    color: #111111;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    background: #f8f9fa;
    display: inline-flex;
    padding: 2px 8px;
    border-radius: 4px;
}

.timeline-desc {
    font-size: 15px;
    color: #4a4a4a;
    line-height: 1.6;
}

/* Skills Badges */
.skill-badge {
    background: #fff;
    border: 1px solid #e9ecef;
    color: #2c3e50;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    display: inline-block;
    margin-right: 8px;
    margin-bottom: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.skill-badge:hover {
    border-color: #027dcf;
    color: #027dcf;
}

/* =========================================
   Status Management (Single View)
   ========================================= */
/* =========================================
   Status Management (Pills)
   ========================================= */
.status-management-compact {
    margin-bottom: 25px;
    padding: 15px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.status-label {
    font-size: 13px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
    display: block;
}

.status-pills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.status-pill-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 50px;
    cursor: pointer;
    font-size: 12px;
    color: #111111;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s ease;
    user-select: none;
}

.status-pill-label:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
    color: #495057;
}

.status-pill-label input[type="radio"] {
    display: none;
}

/* Checked State */
.status-pill-label:has(input:checked) {
    background: #e6f3fa;
    border-color: #027dcf;
    color: #027dcf;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(2, 125, 207, 0.1);
}

.status-pill-label i {
    font-size: 11px;
}

/* =========================================
   Related Jobs Section Grid
   ========================================= */
.related-jobs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 640px) {
    .related-jobs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .related-jobs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}