.cv-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

@keyframes cvOverlayFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.cv-modal-box {
    position: relative;
    z-index: 10000;
    /* overlay fölé kerül */
    background: #ffffff;
    padding: 32px;
    border-radius: 16px;
    max-width: 460px;
    width: 92%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

@keyframes cvBoxSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.cv-modal-box h3 {
    margin: 0 0 6px 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
}

.cv-modal-box p {
    margin: 0 0 20px 0;
    color: #64748b;
    font-size: 0.92rem;
}

/* ========== CV Lista ========== */
#cv-modal-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

#cv-modal-list input[type="checkbox"] {
    display: none;
}

/* Kártya stílus */
#cv-modal-list label {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
    background: #f8fafc;
    user-select: none;
}

#cv-modal-list label:hover {
    border-color: #6366f1;
    background: #eef2ff;
}

/* Kijelölt állapot */
#cv-modal-list input[type="checkbox"]:checked+label {
    border-color: #6366f1;
    background: #eef2ff;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* Pipa ikon (kijelölt) */
#cv-modal-list input[type="checkbox"]:checked+label .cv-check-icon {
    opacity: 1;
}

/* Ikon doboz */
.cv-file-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.cv-file-icon.docx {
    background: #dbeafe;
    color: #1d4ed8;
}

.cv-file-icon.pdf {
    background: #fee2e2;
    color: #dc2626;
}

.cv-file-icon.default {
    background: #f1f5f9;
    color: #475569;
}

/* Fájl infók */
.cv-file-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.cv-file-name {
    font-weight: 600;
    font-size: 0.93rem;
    color: #1e293b;
    overflow: hidden;
}

.cv-file-meta {
    font-size: 0.78rem;
    color: #94a3b8;
}

/* Pipa ikon (kijelölt) */
.cv-check-icon {
    margin-left: auto;
    color: #6366f1;
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.15s;
    flex-shrink: 0;
}

#cv-modal-list input[type="radio"]:checked+label .cv-check-icon {
    opacity: 1;
}

/* ========== Gombok ========== */
.cv-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.cv-modal-button {
    padding: 10px 22px;
    background: var(--bernarion-dark-purple);
    color: #FFF !important;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    transition: background 0.18s, opacity 0.18s;
}

.cv-modal-button a {
    color: #FFF !important;
    text-decoration: none;
}

.cv-modal-button:hover:not([disabled]) {
    background: #4f46e5;
}

.cv-modal-button.disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

#cv-modal-cancel {
    padding: 10px 22px;
    background: transparent;
    color: #64748b;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    transition: border-color 0.18s, color 0.18s;
}

#cv-modal-cancel:hover {
    border-color: #94a3b8;
    color: #0f172a;
}