﻿/* ═══════════════════════════════════════════════════════════════════════════
   CV MODULE STYLES
   ═══════════════════════════════════════════════════════════════════════════ */

/* Container principale */
.cv-container {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Header */
.cv-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

    .cv-header h1 {
        font-size: 1.75rem;
        font-weight: 600;
        color: #1e293b;
        margin: 0;
    }

.cv-header-actions {
    display: flex;
    gap: 12px;
}

/* Statistiche Cards */
.cv-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.cv-stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
}

    .cv-stat-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

.cv-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
}

    .cv-stat-icon.blue {
        background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    }

    .cv-stat-icon.green {
        background: linear-gradient(135deg, #22c55e, #16a34a);
    }

    .cv-stat-icon.orange {
        background: linear-gradient(135deg, #f59e0b, #d97706);
    }

    .cv-stat-icon.red {
        background: linear-gradient(135deg, #ef4444, #dc2626);
    }

    .cv-stat-icon.purple {
        background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    }

.cv-stat-content {
    flex: 1;
}

.cv-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}

.cv-stat-label {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 2px;
}

/* Filtri */
.cv-filters {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.cv-filters-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.cv-filter-group {
    flex: 1;
    min-width: 200px;
}

    .cv-filter-group label {
        display: block;
        font-size: 0.875rem;
        font-weight: 500;
        color: #475569;
        margin-bottom: 6px;
    }

    .cv-filter-group input,
    .cv-filter-group select {
        width: 100%;
        padding: 10px 14px;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        font-size: 0.9375rem;
        transition: border-color 0.2s, box-shadow 0.2s;
    }

        .cv-filter-group input:focus,
        .cv-filter-group select:focus {
            outline: none;
            border-color: #3b82f6;
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
        }

.cv-filter-actions {
    display: flex;
    gap: 8px;
}

/* Tabella CV */
.cv-table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
}

.cv-table {
    width: 100%;
    border-collapse: collapse;
}

    .cv-table thead {
        background: #f8fafc;
    }

    .cv-table th {
        padding: 14px 16px;
        text-align: left;
        font-weight: 600;
        font-size: 0.875rem;
        color: #475569;
        border-bottom: 1px solid #e2e8f0;
    }

    .cv-table td {
        padding: 14px 16px;
        border-bottom: 1px solid #f1f5f9;
        vertical-align: middle;
    }

    .cv-table tbody tr:hover {
        background: #f8fafc;
    }

    .cv-table tbody tr:last-child td {
        border-bottom: none;
    }

/* CV Name Cell */
.cv-name-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cv-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.cv-name-info {
    display: flex;
    flex-direction: column;
}

.cv-name {
    font-weight: 600;
    color: #1e293b;
}

.cv-email {
    font-size: 0.8125rem;
    color: #64748b;
}

/* Status Badge */
.cv-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 500;
}

    .cv-status.completed {
        background: #dcfce7;
        color: #166534;
    }

    .cv-status.pending {
        background: #fef9c3;
        color: #854d0e;
    }

    .cv-status.processing {
        background: #dbeafe;
        color: #1e40af;
    }

    .cv-status.failed {
        background: #fee2e2;
        color: #991b1b;
    }

/* Seniority Badge */
.cv-seniority {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    background: #f1f5f9;
    color: #475569;
}

    .cv-seniority.junior {
        background: #e0f2fe;
        color: #0369a1;
    }

    .cv-seniority.mid {
        background: #fef3c7;
        color: #92400e;
    }

    .cv-seniority.senior {
        background: #d1fae5;
        color: #065f46;
    }

    .cv-seniority.lead {
        background: #ede9fe;
        color: #5b21b6;
    }

/* Actions */
.cv-actions {
    display: flex;
    gap: 8px;
}

.cv-action-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

    .cv-action-btn.view {
        background: #eff6ff;
        color: #3b82f6;
    }

        .cv-action-btn.view:hover {
            background: #dbeafe;
        }

    .cv-action-btn.edit {
        background: #f0fdf4;
        color: #22c55e;
    }

        .cv-action-btn.edit:hover {
            background: #dcfce7;
        }

    .cv-action-btn.delete {
        background: #fef2f2;
        color: #ef4444;
    }

        .cv-action-btn.delete:hover {
            background: #fee2e2;
        }

/* Empty State */
.cv-empty-state {
    text-align: center;
    padding: 60px 20px;
}

.cv-empty-icon {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 16px;
}

.cv-empty-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
}

.cv-empty-text {
    color: #64748b;
    margin-bottom: 24px;
}

/* Pagination */
.cv-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-top: 1px solid #e2e8f0;
}

.cv-pagination-info {
    font-size: 0.875rem;
    color: #64748b;
}

.cv-pagination-buttons {
    display: flex;
    gap: 8px;
}

.cv-page-btn {
    padding: 8px 14px;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

    .cv-page-btn:hover:not(:disabled) {
        border-color: #3b82f6;
        color: #3b82f6;
    }

    .cv-page-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    .cv-page-btn.active {
        background: #3b82f6;
        color: white;
        border-color: #3b82f6;
    }

/* Buttons */
.btn-cv-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

    .btn-cv-primary:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    }

.btn-cv-secondary {
    background: white;
    color: #475569;
    border: 1px solid #e2e8f0;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

    .btn-cv-secondary:hover {
        border-color: #3b82f6;
        color: #3b82f6;
    }

/* Responsive */
@media (max-width: 768px) {
    .cv-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .cv-filters-row {
        flex-direction: column;
    }

    .cv-filter-group {
        min-width: 100%;
    }

    .cv-table-container {
        overflow-x: auto;
    }

    .cv-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .cv-stats-row {
        grid-template-columns: 1fr;
    }
}
