/* --- HARMONIZED WITH WP JOB OPENINGS STYLES --- */

.light-candidate-app {
    font-family: inherit;
    background: transparent;
    padding: 20px 0;
}

.filters-container {
    background: transparent;
    padding: 0;
    margin-bottom: 30px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 140px;
}

.filter-group.form-search {
    position: relative;
    flex: 2;
    min-width: 200px;
}

.filter-group label {
    font-size: 13px;
    color: #444;
    margin-bottom: 8px;
    font-weight: 500;
}

.filter-input,
.filter-select {
    width: 100%;
    padding: 0 15px;
    height: 46px;
    border: 1px solid #dddfe3;
    border-radius: 4px;
    background: #fff;
    color: #444;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.02);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.filter-select {
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23444" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.filter-group.form-search .filter-input {
    padding-left: 40px;
}

.filter-group.form-search .search-icon {
    position: absolute;
    left: 15px;
    bottom: 14px;
    color: #aaa;
    font-size: 14px;
}

.filter-input:focus,
.filter-select:focus {
    border-color: #0195ff;
    box-shadow: 0 0 5px rgba(1, 149, 255, 0.2);
}

/* Results Table Harmonized */
.light-results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background: #fff;
    border: 1px solid #dddfe3;
    border-radius: 4px;
    box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.05);
}

.light-results-table thead th {
    text-align: left;
    padding: 18px 20px;
    font-size: 13px;
    font-weight: 500;
    color: #444;
    background: #fff;
    border-bottom: 2px solid #F5C518;
    /* Retained yellow accent for character */
}

.light-results-table tbody td {
    padding: 20px;
    font-size: 14px;
    color: #444;
    border-bottom: 1px solid #dddfe3;
    vertical-align: middle;
    transition: all 0.3s ease;
}

.light-results-table tbody tr:last-child td {
    border-bottom: none;
}

.light-results-table tbody tr:hover {
    box-shadow: 0 3px 15px -5px rgba(0, 0, 0, 0.1);
    background-color: #fcfcfc;
    transform: translateY(-1px);
    position: relative;
    z-index: 10;
}

.light-results-table i {
    color: #888;
    margin-right: 6px;
    font-size: 13px;
}

.col-position {
    font-weight: 600;
    color: #111;
}

.col-fleet {
    color: #555;
}

.col-duration {
    color: #555;
}

.col-salary {
    font-weight: 600;
}

.col-joining,
.col-adddate {
    color: #666;
    font-size: 13px;
}

/* Load More Button - AWSM Style */
.load-more-container {
    text-align: center;
    margin-top: 30px;
}

#btn-load-more {
    display: inline-block;
    text-align: center;
    padding: 15px 30px;
    background: #fff;
    box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid #dddfe3;
    color: #0195ff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none !important;
    outline: 0 !important;
    transition: all 0.3s ease;
    border-radius: 4px;
}

#btn-load-more:hover {
    box-shadow: 0 3px 15px -5px rgba(0, 0, 0, 0.2);
    color: #0195ff;
}

/* View Toggle */
.view-toggle-group {
    flex: 0 0 auto;
    min-width: auto;
}

.view-toggle {
    display: flex;
    background: #fff;
    border: 1px solid #dddfe3;
    border-radius: 4px;
    height: 46px;
    align-items: center;
    padding: 3px;
    box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.02);
}

.view-btn {
    border: none;
    background: transparent;
    color: #888;
    height: 100%;
    padding: 0 15px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    outline: none;
}

.view-btn.active {
    background: #0195ff;
    color: #fff;
    box-shadow: 0 2px 4px rgba(1, 149, 255, 0.2);
}

.view-btn:not(.active):hover {
    color: #444;
}

/* Reset Button */
.reset-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 46px;
    padding: 0 20px;
    background: #fdfdfd;
    border: 1px solid #dddfe3;
    border-radius: 4px;
    color: #555;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.02);
}

.reset-btn:hover {
    background: #fff;
    border-color: #fca5a5;
    color: #ef4444;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.1);
}

.reset-btn i {
    font-size: 13px;
    transition: transform 0.3s ease;
}

.reset-btn:hover i {
    transform: rotate(-180deg);
}

/* Candidate Grid */
.candidate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 10px;
}

/* Candidate Card */
.candidate-card {
    background: #fff;
    border: 1px solid #dddfe3;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.candidate-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    border-color: #cce7ff;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #f9f9f9;
    padding-bottom: 15px;
}

.card-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0195ff, #0fd7c3);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(1, 149, 255, 0.2);
}

.card-title h3 {
    margin: 0 0 5px 0 !important;
    font-size: 16px;
    color: #222;
    font-weight: 600;
    line-height: 1.2;
}

.card-title p {
    margin: 0 !important;
    font-size: 13px;
    color: #666;
    line-height: 1.2;
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card-stat {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    border-bottom: 1px dashed #f0f0f0;
    padding-bottom: 4px;
}

.card-stat:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.card-stat span {
    color: #777;
}

.card-stat strong {
    color: #333;
    font-weight: 500;
    text-align: right;
    max-width: 60%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- LIGHT THEME CANDIDATE MODAL --- */
.candidate-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Lighter backdrop */
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
    overflow-y: auto;
    font-family: 'Inter', Roboto, sans-serif;
    backdrop-filter: blur(3px);
    /* Premium blur effect */
}

.candidate-modal-content {
    background: #ffffff;
    /* Light background */
    width: 100%;
    max-width: 900px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin: auto;
    overflow: hidden;
    color: #444;
    padding-bottom: 30px;
}

.candidate-modal-header {
    padding: 30px 40px;
    border-bottom: 1px solid #eaeaea;
    position: relative;
    background: #fdfdfd;
}

.candidate-modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
}

.candidate-modal-close:hover {
    color: #333;
}

.candidate-profile-top {
    display: flex;
    align-items: center;
    gap: 25px;
}

.candidate-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0195ff, #0fd7c3);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(1, 149, 255, 0.3);
}

.candidate-title-info h2 {
    color: #222;
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 600;
}

.ready-date {
    color: #666;
    margin: 0;
    font-size: 14px;
}


.candidate-modal-body {
    padding: 30px 40px;
}

.candidate-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 40px;
    margin-bottom: 35px;
}

.stat-item {
    display: flex;
    gap: 15px;
}

.stat-item.full-width {
    grid-column: 1 / -1;
    display: block;
}

.stat-item.full-width .stat-label {
    display: inline-block;
    width: 100px;
}

.stat-label {
    color: #666;
    font-weight: 600;
    font-size: 15px;
    width: 130px;
    /* Slightly wider for light theme readability */
    flex-shrink: 0;
}

.stat-value {
    color: #222;
    font-size: 15px;
    font-weight: 500;
}

.candidate-tables-section h3 {
    color: #222;
    font-size: 18px;
    margin: 0 0 20px 0;
    font-weight: 600;
}

.table-responsive {
    overflow-x: auto;
}

.candidate-dark-table {
    /* Reusing class name structure but making it light */
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eaeaea;
}

.candidate-dark-table th {
    text-align: left;
    padding: 15px 20px;
    color: #555;
    font-weight: 600;
    font-size: 14px;
    border-bottom: 1px solid #eaeaea;
    background: #fdfdfd;
}

.candidate-dark-table td {
    padding: 15px 20px;
    color: #444;
    font-size: 14px;
    border-bottom: 1px solid #eaeaea;
}

.candidate-dark-table tr:hover td {
    background-color: #fafbfc;
}

.candidate-dark-table tr:last-child td {
    border-bottom: none;
}

/* Make table rows click accessible */
.candidate-tr {
    cursor: pointer;
}

/* Custom Multiselect UI */
.custom-select-wrapper {
    position: relative;
    width: 100%;
}

.custom-select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100;
    background: #fff;
    border: 1px solid #0195ff;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-height: 250px;
    overflow-y: auto;
    display: none;
}

.custom-select-wrapper.open .custom-select-display {
    border-color: #0195ff;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    box-shadow: 0 0 5px rgba(1, 149, 255, 0.2);
}

.custom-select-wrapper.open .custom-select-options {
    display: block;
}

.custom-option {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 14px;
    color: #444;
    transition: background 0.2s;
}

.custom-option:hover {
    background: #f0f7ff;
}

.custom-option input[type="checkbox"] {
    margin: 0 10px 0 0;
    cursor: pointer;
}