/* Zoom attendance page styling */
.tool-shell {
    width: min(1200px, 92vw);
    margin: 0 auto 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: #f5f7fb;
}

.panel {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(6px);
}

.intro-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.68);
    margin: 0 0 0.2rem 0;
}

.lede {
    margin: 0;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.86);
}

.form-grid {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.file-drop {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    border: 1px dashed rgba(255, 255, 255, 0.35);
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.file-drop:hover {
    border-color: rgba(0, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.06);
}

.file-drop strong {
    display: block;
    font-size: 1.05rem;
}

.file-drop span {
    display: block;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
}

.file-drop input {
    display: none;
}

.actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.file-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.day-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
    margin-top: 4px;
}

.file-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

.file-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.file-name {
    font-weight: 700;
    color: #f5f7fb;
}

.file-note {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.file-status {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.file-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: flex-end;
}

.file-actions input {
    width: 140px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f5f7fb;
    border-radius: 8px;
    padding: 6px 8px;
}

.file-actions button {
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #f5f7fb;
    cursor: pointer;
}

.day-sublist {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.day-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.day-line {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.day-line input[type="text"] {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f5f7fb;
    border-radius: 8px;
    padding: 6px 8px;
    flex: 1;
    min-width: 180px;
}

.threshold-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.threshold-inline span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
}

.threshold-inline input {
    width: 120px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f5f7fb;
    border-radius: 8px;
    padding: 6px 8px;
}

.progress-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.progress-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar span {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #3acdd2, #5ef3c9);
    transition: width 0.12s ease;
}

.primary-btn,
.ghost-btn {
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.08s ease, box-shadow 0.08s ease, opacity 0.2s ease;
}

.primary-btn {
    background: linear-gradient(135deg, #3acdd2, #5ef3c9);
    color: #041116;
    border: none;
    box-shadow: 0 8px 24px rgba(62, 221, 210, 0.35);
}

.ghost-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #f5f7fb;
}

.ghost-btn.small {
    padding: 8px 10px;
    font-weight: 600;
}

.primary-btn:hover,
.ghost-btn:hover {
    transform: translateY(-1px);
}

.primary-btn:disabled,
.ghost-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.status-line {
    margin: 0.4rem 0 0;
    color: rgba(255, 255, 255, 0.75);
}

.status-ok { color: #a3ffd9; }
.status-error { color: #ffb1b1; }
.status-info { color: #9ed0ff; }

.panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.fine-print {
    margin: 0.2rem 0 0;
    color: rgba(255, 255, 255, 0.7);
}

.threshold-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 12px;
    margin-top: 0.75rem;
}

.threshold-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.threshold-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.day-name {
    font-weight: 700;
    color: #ffffff;
}

.session-note {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.threshold-input {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.95rem;
}

.threshold-input input {
    width: 100%;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f5f7fb;
    border-radius: 8px;
    padding: 8px 10px;
}

.threshold-input input:focus {
    outline: 1px solid rgba(0, 255, 200, 0.6);
}

.table-scroll {
    overflow: auto;
    margin-top: 10px;
    max-height: 480px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.98rem;
}

th, td {
    padding: 10px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

th {
    position: sticky;
    top: 0;
    background: rgba(5, 5, 5, 0.6);
    z-index: 1;
    text-align: left;
}

.th-label {
    font-weight: 700;
}

.th-sub {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
}

.numeric { text-align: right; }
.center { text-align: center; }
.email-cell { max-width: 260px; word-break: break-all; }

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.85rem;
    border: 1px solid transparent;
}

.pill-ok {
    background: rgba(114, 219, 175, 0.25);
    color: #bdfde2;
    border-color: rgba(114, 219, 175, 0.5);
}

.pill-warn {
    background: rgba(255, 189, 124, 0.18);
    color: #ffd6b3;
    border-color: rgba(255, 189, 124, 0.5);
}

.pill-outline {
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.06);
    color: #f5f7fb;
}

.pill.muted {
    color: rgba(255, 255, 255, 0.8);
}

.preview-metrics {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.day-label-edit {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.day-label-edit input {
    width: 100%;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f5f7fb;
    border-radius: 8px;
    padding: 8px 10px;
}

@media (max-width: 720px) {
    .tool-shell {
        width: 94vw;
    }
    th, td {
        font-size: 0.9rem;
    }
    .intro-row {
        flex-direction: column;
    }
    .email-cell {
        max-width: none;
    }
}
