/* =============================================
   직원평가 — Evaluation-specific styles
   (filter / table / pagination live in dashboard.css)
   ============================================= */

/* ─── Grade Letter Badge ─── */
.eval-grade {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 7px;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: -.5px;
}
.eval-grade-S { background: rgba(251,191,36,.12); color: #fbbf24; border: 1px solid rgba(251,191,36,.25); }
.eval-grade-A { background: rgba(52,211,153,.12); color: #34d399; border: 1px solid rgba(52,211,153,.25); }
.eval-grade-B { background: rgba(96,165,250,.12); color: #60a5fa; border: 1px solid rgba(96,165,250,.25); }
.eval-grade-C { background: rgba(251,191,36,.12); color: #f59e0b; border: 1px solid rgba(251,191,36,.25); }
.eval-grade-D { background: rgba(239,68,68,.12); color: #f87171; border: 1px solid rgba(239,68,68,.25); }
.eval-grade-none { background: rgba(255,255,255,.04); color: rgba(255,255,255,.25); border: 1px solid rgba(255,255,255,.08); }

/* ─── Score Bar (inline progress) ─── */
.eval-score-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}
.eval-score-num {
    font-weight: 700;
    min-width: 28px;
    font-size: .85rem;
    color: rgba(255,255,255,.9);
}
.eval-score-bar {
    width: 60px;
    height: 6px;
    border-radius: 3px;
    background: rgba(255,255,255,.08);
    overflow: hidden;
    flex-shrink: 0;
}
.eval-score-fill {
    height: 100%;
    border-radius: 3px;
    transition: width .3s ease;
}
.eval-score-fill.fill-S { background: #fbbf24; }
.eval-score-fill.fill-A { background: #34d399; }
.eval-score-fill.fill-B { background: #60a5fa; }
.eval-score-fill.fill-C { background: #f59e0b; }
.eval-score-fill.fill-D { background: #f87171; }

/* ─── Detail Button (in table) ─── */
.eval-btn-detail {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 6px;
    border: 1px solid rgba(129,140,248,.3);
    background: transparent;
    color: #818cf8;
    font-size: .72rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
}
.eval-btn-detail:hover {
    background: rgba(129,140,248,.1);
    border-color: #818cf8;
}

/* ─── Modal ─── */
.eval-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.eval-modal-overlay.show { display: flex; }

.eval-modal-container {
    background: #14141e;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
    animation: evalModalIn .25s ease;
}
@keyframes evalModalIn {
    from { opacity: 0; transform: translateY(-16px) scale(.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.eval-modal-lg { max-width: 780px; }

.eval-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.eval-modal-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255,255,255,.9);
    display: flex;
    align-items: center;
}
.eval-modal-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: rgba(255,255,255,.35);
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    border-radius: 6px;
    transition: all .15s;
}
.eval-modal-close:hover { background: rgba(255,255,255,.06); color: rgba(255,255,255,.8); }

.eval-modal-body { padding: 20px 24px; }

.eval-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 16px 24px 20px;
    border-top: 1px solid rgba(255,255,255,.06);
}

/* ─── Detail — Employee Info ─── */
.eval-detail-info {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.eval-info-item { display: flex; flex-direction: column; gap: 3px; }
.eval-info-label {
    font-size: .68rem;
    color: rgba(255,255,255,.4);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .3px;
}
.eval-info-value {
    font-size: .85rem;
    font-weight: 600;
    color: rgba(255,255,255,.9);
}

/* ─── Detail — Evaluation Items ─── */
.eval-detail-items { margin-top: 8px; }
.eval-cat-group { margin-bottom: 14px; }
.eval-cat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(129,140,248,.06);
    border-radius: 8px;
    margin-bottom: 2px;
    font-size: .82rem;
    font-weight: 700;
    color: #818cf8;
    border-left: 3px solid #818cf8;
}
.eval-cat-header .cat-avg {
    margin-left: auto;
    font-size: .75rem;
    font-weight: 700;
    color: #818cf8;
    background: rgba(129,140,248,.12);
    padding: 2px 10px;
    border-radius: 12px;
}
.eval-item-row {
    display: flex;
    align-items: center;
    padding: 8px 14px;
    border-bottom: 1px solid rgba(255,255,255,.03);
}
.eval-item-name {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.eval-item-name span:first-child {
    font-size: .82rem;
    font-weight: 600;
    color: rgba(255,255,255,.85);
}
.eval-item-name .item-desc {
    font-size: .72rem;
    color: rgba(255,255,255,.35);
}
.eval-item-score {
    font-size: .9rem;
    font-weight: 700;
    color: #818cf8;
    min-width: 32px;
    text-align: center;
}

/* ─── Detail — Comment & Summary ─── */
.eval-detail-comment { margin-top: 16px; }
.eval-form-label {
    display: block;
    font-size: .75rem;
    font-weight: 600;
    color: rgba(255,255,255,.5);
    margin-bottom: 6px;
}
.eval-comment-text {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: .82rem;
    color: rgba(255,255,255,.7);
    min-height: 50px;
    line-height: 1.6;
}
.eval-detail-summary {
    display: flex;
    gap: 24px;
    margin-top: 16px;
    padding: 14px 18px;
    background: rgba(129,140,248,.05);
    border: 1px solid rgba(129,140,248,.1);
    border-radius: 10px;
}
.eval-summary-item { display: flex; flex-direction: column; gap: 3px; }
.eval-summary-label {
    font-size: .7rem;
    font-weight: 600;
    color: rgba(255,255,255,.4);
    text-transform: uppercase;
}
.eval-summary-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: rgba(255,255,255,.9);
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .eval-detail-info { gap: 12px; }
    .eval-detail-summary { flex-direction: column; gap: 12px; }
}

/* ─── Modal Scrollbar ─── */
.eval-modal-container::-webkit-scrollbar { width: 5px; }
.eval-modal-container::-webkit-scrollbar-track { background: transparent; }
.eval-modal-container::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 10px; }
