/* General Styles */
.careerfy-cv-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.careerfy-cv-form-title {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 28px;
    font-weight: 600;
}

/* Form Layout */
.careerfy-form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.careerfy-form-group {
    margin-bottom: 20px;
    padding: 0 15px;
}

.careerfy-form-col-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

@media (max-width: 768px) {
    .careerfy-form-col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Form Controls */
.careerfy-form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.careerfy-form-control:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

.careerfy-form-control[type="file"] {
    padding: 10px 15px;
    background: #f9f9f9;
}

.careerfy-form-help {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

.careerfy-file-preview {
    margin-top: 10px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 4px;
    border: 1px dashed #ddd;
}

/* Labels */
.careerfy-cv-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.careerfy-cv-form label[required]::after {
    content: " *";
    color: #d63638;
}

/* Submit Button */
.careerfy-form-submit {
    text-align: center;
    margin-top: 30px;
}

.careerfy-btn {
    display: inline-block;
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.careerfy-btn-primary {
    background: #0073aa;
    color: white;
}

.careerfy-btn-primary:hover {
    background: #005a87;
    color: white;
}

/* Loading Indicator */
.careerfy-form-loading {
    display: none;
    margin-top: 10px;
    padding: 10px;
    background: #f0f0f0;
    border-radius: 4px;
    text-align: center;
    color: #666;
}

/* Messages */
.careerfy-cv-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    border-left: 4px solid;
}

.careerfy-cv-message-success {
    background: #f0f9f0;
    border-color: #46b450;
    color: #2c662d;
}

.careerfy-cv-message-error {
    background: #fdf0f0;
    border-color: #dc3232;
    color: #8a1a1a;
}

/* Form Notice */
.careerfy-form-notice {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 4px solid #6c757d;
}

.careerfy-form-notice p {
    margin: 0;
    color: #666;
}

/* CV List Styles */
.careerfy-cv-list-wrapper {
    margin: 20px 0;
}

.careerfy-cv-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.careerfy-search-box {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.careerfy-search-box input[type="search"] {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.careerfy-search-btn {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    background: none;
    border: none;
    padding: 0 15px;
    cursor: pointer;
    color: #666;
}

.careerfy-clear-search {
    margin-left: 10px;
    color: #0073aa;
    text-decoration: none;
}

.careerfy-cv-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.careerfy-filter-btn {
    padding: 8px 16px;
    background: #f0f0f0;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.careerfy-filter-btn:hover,
.careerfy-filter-btn.active {
    background: #0073aa;
    color: white;
}

.careerfy-filter-btn .count {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 12px;
}

/* CV Table */
.careerfy-cv-table-responsive {
    overflow-x: auto;
}

.careerfy-cv-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.careerfy-cv-table th {
    background: #f8f9fa;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #dee2e6;
}

.careerfy-cv-table td {
    padding: 15px;
    border-bottom: 1px solid #dee2e6;
}

.careerfy-cv-table tbody tr:hover {
    background: #f8f9fa;
}

/* Status Badges */
.careerfy-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-new {
    background: #e8f4fd;
    color: #0066cc;
}

.status-reviewed {
    background: #fff3e0;
    color: #f57c00;
}

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

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

.status-shortlisted {
    background: #e8f5e9;
    color: #388e3c;
}

/* Action Buttons */
.cv-actions {
    display: flex;
    gap: 10px;
}

.careerfy-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #f0f0f0;
    border-radius: 4px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.careerfy-action-btn:hover {
    background: #0073aa;
    color: white;
}

/* Pagination */
.careerfy-cv-pagination {
    margin-top: 30px;
    text-align: center;
}

.careerfy-cv-pagination ul {
    display: inline-flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
}

.careerfy-cv-pagination li {
    margin: 0;
}

.careerfy-cv-pagination a,
.careerfy-cv-pagination span {
    display: inline-block;
    padding: 8px 16px;
    background: #f0f0f0;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.careerfy-cv-pagination a:hover,
.careerfy-cv-pagination .current {
    background: #0073aa;
    color: white;
}

/* Empty State */
.careerfy-cv-empty {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.careerfy-cv-empty p {
    margin: 0;
    color: #666;
    font-size: 16px;
}

/* Login Required */
.careerfy-cv-login-required {
    padding: 20px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    color: #856404;
}

/* Responsive */
@media (max-width: 768px) {
    .careerfy-cv-form-wrapper {
        padding: 20px;
    }
    
    .careerfy-cv-list-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .careerfy-search-box {
        min-width: 100%;
    }
    
    .careerfy-cv-table {
        font-size: 14px;
    }
    
    .careerfy-cv-table th,
    .careerfy-cv-table td {
        padding: 10px;
    }
}