/*
 * ITStaffingForm.css
 * Place in: wwwroot/css/ITStaffingForm.css
 * <link rel="stylesheet" href="css/ITStaffingForm.css" />
 *
 * All @keyframes live here — never in .razor — so Blazor re-renders
 * never reset animations.
 */

/* ── Base ───────────────────────────────────────────────────────────────── */
.itsf-page {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #0a0a0a;
    background: #ffffff;
}
.itsf-heading { font-family: 'Poppins', sans-serif; }

/* ── Inputs / selects ───────────────────────────────────────────────────── */
.itsf-input, .itsf-select {
    width: 100%;
    padding: .75rem 1rem;
    border-radius: .5rem;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    font-size: .875rem;
    color: #0a0a0a;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.itsf-input:focus, .itsf-select:focus {
    border-color: #9b1c1c;
    box-shadow: 0 0 0 3px rgba(155,28,28,.12);
}
.itsf-input-sm {
    width: 100%;
    padding: .5rem .625rem;
    border-radius: .375rem;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    font-size: .75rem;
    color: #0a0a0a;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    text-align: center;
}
.itsf-input-sm:focus { border-color: #9b1c1c; box-shadow: 0 0 0 2px rgba(155,28,28,.12); }
.itsf-select-sm {
    padding: .5rem .625rem;
    border-radius: .375rem;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    font-size: .75rem;
    color: #0a0a0a;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.itsf-select-sm:focus { border-color: #9b1c1c; }

/* ── Table row hover ────────────────────────────────────────────────────── */
.itsf-tr:hover { background: rgba(248,250,252,.8); }

/* ── JD upload button ───────────────────────────────────────────────────── */
.itsf-jd-btn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .375rem .75rem;
    border-radius: .375rem;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: .625rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
    color: #64748b;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
}
.itsf-jd-btn:hover     { background: rgba(155,28,28,.06); color: #9b1c1c; border-color: rgba(155,28,28,.3); }
.itsf-jd-btn.uploaded  { background: rgba(155,28,28,.08); color: #9b1c1c; border-color: rgba(155,28,28,.3); }

/* ── Delete row button ──────────────────────────────────────────────────── */
.itsf-del-btn {
    padding: .5rem; border-radius: .375rem;
    background: transparent; border: none; cursor: pointer;
    color: #94a3b8;
    transition: color .2s;
}
.itsf-del-btn:hover { color: #ef4444; }

/* ── Eval type radio card ───────────────────────────────────────────────── */
.itsf-eval-card {
    flex: 1;
    display: flex; align-items: flex-start; gap: .75rem;
    padding: 1rem; border-radius: .75rem;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: background .2s, border-color .2s;
}
.itsf-eval-card:hover { background: rgba(248,250,252,.8); }
.itsf-eval-card.selected { border: 2px solid rgba(155,28,28,.3); background: rgba(155,28,28,.04); }

/* ── Rate chart details/summary ─────────────────────────────────────────── */
.itsf-details summary { list-style: none; }
.itsf-details summary::-webkit-details-marker { display: none; }
.itsf-details[open] .itsf-chevron { transform: rotate(180deg); }
.itsf-chevron { transition: transform .3s; }

/* ── Summary sticky card ────────────────────────────────────────────────── */
.itsf-summary-card {
    border-radius: .75rem;
    border: 2px solid #9b1c1c;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(155,28,28,.12);
}

/* ── Submit button ──────────────────────────────────────────────────────── */
.itsf-submit-btn {
    width: 100%; padding: 1rem;
    background: #9b1c1c; color: #fff;
    border: none; border-radius: .5rem;
    font-weight: 700; text-transform: uppercase; letter-spacing: .2em;
    font-size: .875rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: .75rem;
    transition: opacity .2s, box-shadow .2s;
    box-shadow: 0 8px 24px rgba(155,28,28,.25);
}
.itsf-submit-btn:hover:not(:disabled) { box-shadow: 0 12px 32px rgba(155,28,28,.35); }
.itsf-submit-btn:disabled { opacity: .65; cursor: not-allowed; }

/* ── Pulse dot ──────────────────────────────────────────────────────────── */
@keyframes itsf-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .5; transform: scale(1.4); }
}
.itsf-pulse { animation: itsf-pulse 1.5s ease-in-out infinite; }

/* ── Success pop ────────────────────────────────────────────────────────── */
@keyframes itsf-pop {
    0%   { transform: scale(.7); opacity: 0; }
    70%  { transform: scale(1.08); }
    100% { transform: scale(1); opacity: 1; }
}
.itsf-success-icon { animation: itsf-pop .5s ease both; }

/* ── Slide-in ───────────────────────────────────────────────────────────── */
@keyframes itsf-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.itsf-fade-in { animation: itsf-fade-in .35s ease both; }

/* ── Row fade in for new resource rows ──────────────────────────────────── */
@keyframes itsf-row-in {
    from { opacity: 0; transform: translateX(-8px); }
    to   { opacity: 1; transform: translateX(0); }
}
.itsf-row-in { animation: itsf-row-in .25s ease both; }

/* ── Two-column main grid (left 2fr / right 1fr) ──────────────────────────── */
.itsf-main-grid {
    grid-template-columns: 1fr;   /* mobile: single column */
}
@media (min-width: 1024px) {
    .itsf-main-grid {
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) !important;
        align-items: start;
    }
}

/* ── Eval cards — stacked on mobile, side-by-side on md+ ──────────────────── */
.itsf-eval-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
@media (min-width: 768px) {
    .itsf-eval-row {
        flex-direction: row;
    }
}
