:root {
    --brand: #2563eb;
}

body {
    background-color: #f4f6f9;
}

.navbar-brand {
    font-weight: 600;
}

.card {
    border: none;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

.table thead th {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #6c757d;
    border-bottom-width: 1px;
    white-space: nowrap;
}

.student-photo-thumb {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid #dee2e6;
}

/* Click-to-change photo in the student list. The button is invisible until
   hovered or focused, so the table still reads as a table. */
.photo-edit-btn {
    position: relative;
    display: block;
    padding: 0;
    border: 0;
    background: none;
    line-height: 0;
    border-radius: 50%;
    cursor: pointer;
}

.photo-edit-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    font-size: .8rem;
    opacity: 0;
    transition: opacity .12s ease-in-out;
}

.photo-edit-btn:hover .photo-edit-overlay,
.photo-edit-btn:focus-visible .photo-edit-overlay {
    opacity: 1;
}

.photo-edit-btn:focus-visible {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

/* The photo just changed — a brief ring, so the eye finds the row it edited. */
.photo-edit-btn.photo-just-saved .student-photo-thumb {
    animation: photo-saved-flash 1.1s ease-out;
}

@keyframes photo-saved-flash {
    0%   { box-shadow: 0 0 0 0 rgba(25, 135, 84, .8); }
    100% { box-shadow: 0 0 0 10px rgba(25, 135, 84, 0); }
}

.photo-dropzone {
    cursor: pointer;
    border: 2px dashed #ced4da;
    border-radius: .5rem;
    padding: 1rem;
    transition: border-color .12s ease-in-out, background-color .12s ease-in-out;
}

.photo-dropzone:hover,
.photo-dropzone.dragover {
    border-color: #0d6efd;
    background-color: rgba(13, 110, 253, .04);
}

.photo-modal-preview {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: .5rem;
    border: 1px solid #dee2e6;
    background: #f8f9fa;
}

.photo-preview {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    background: #fff;
}

.stat-card .display-6 {
    font-weight: 700;
}

.filter-bar {
    background: #fff;
    border-radius: .5rem;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

.badge-bucket-never { background-color: #6c757d; }
.badge-bucket-once { background-color: #0d6efd; }
.badge-bucket-twice { background-color: #6610f2; }
.badge-bucket-three { background-color: #fd7e14; }
.badge-bucket-four_plus { background-color: #dc3545; }

.required-missing {
    color: #dc3545;
    font-weight: 600;
}

.import-step-indicator .step {
    opacity: .45;
}
.import-step-indicator .step.active,
.import-step-indicator .step.done {
    opacity: 1;
    font-weight: 600;
}

.multi-add-row {
    position: relative;
}

.wizard-dropzone {
    border: 2px dashed #adb5bd;
    border-radius: .5rem;
    padding: 3rem 1rem;
    text-align: center;
    color: #6c757d;
    cursor: pointer;
    transition: background-color .15s ease-in-out;
}
.wizard-dropzone.dragover {
    background-color: #eef4ff;
    border-color: var(--brand);
}
