.teacher-resources-page {
    background: #f8fafc;
}

.resources-page-header {
    margin-bottom: 1.5rem;
}

.resources-tool-shell {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.resources-tool-heading {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.resources-tool-heading h2 {
    margin: 0 0 0.35rem;
    color: #0f172a;
    font-size: 1.45rem;
    line-height: 1.2;
}

.resources-tool-heading p {
    margin: 0;
    color: #475569;
    line-height: 1.5;
}

.resources-tool-icon {
    display: inline-flex;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #eff6ff;
    color: #3b82f6;
    font-size: 1.35rem;
}

.batch-recovery-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.batch-recovery-stat {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.85rem 1rem;
    background: #ffffff;
}

.batch-recovery-stat span {
    display: block;
    margin-bottom: 0.35rem;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
}

.batch-recovery-stat strong {
    color: #0f172a;
    font-size: 1.6rem;
    line-height: 1;
}

.batch-recovery-stat.is-ready {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.batch-recovery-stat.is-warning {
    border-color: #fecaca;
    background: #fef2f2;
}

.batch-recovery-stat.is-blocked {
    border-color: #fed7aa;
    background: #fff7ed;
}

.batch-recovery-upload {
    display: flex;
    min-height: 180px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    border: 2px dashed #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
    color: #1e3a8a;
    padding: 1.25rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.batch-recovery-upload:hover,
.batch-recovery-upload:focus,
.batch-recovery-upload.is-dragging {
    border-color: #3b82f6;
    background: #dbeafe;
    outline: none;
    transform: translateY(-1px);
}

.batch-recovery-upload i {
    color: #3b82f6;
    font-size: 2rem;
}

.batch-recovery-upload p {
    margin: 0;
    max-width: 680px;
    font-weight: 700;
}

.batch-recovery-upload small {
    display: block;
    max-width: 720px;
    color: #475569;
    line-height: 1.45;
}

.batch-recovery-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1rem 0;
}

.batch-recovery-toolbar .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 42px;
}

.batch-recovery-status {
    margin: 0.5rem 0 1rem;
    color: #475569;
    font-weight: 600;
}

.batch-recovery-table-shell {
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
}

.batch-recovery-table {
    width: 100%;
    min-width: 880px;
    border-collapse: collapse;
}

.batch-recovery-table th,
.batch-recovery-table td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    vertical-align: top;
}

.batch-recovery-table th {
    color: #475569;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    background: #f8fafc;
    letter-spacing: 0;
}

.batch-recovery-table tr:last-child td {
    border-bottom: 0;
}

.batch-recovery-table tr.is-signature-warning {
    background: #fef2f2;
}

.batch-recovery-table tr.is-blocked {
    background: #fff7ed;
}

.batch-recovery-table tr.is-imported {
    background: #f0fdf4;
}

.batch-recovery-select-col {
    width: 52px;
}

.batch-recovery-select {
    width: 18px;
    height: 18px;
    accent-color: #3b82f6;
}

.batch-file-name,
.batch-target-title {
    color: #0f172a;
    font-weight: 800;
    line-height: 1.35;
    word-break: break-word;
}

.batch-file-meta,
.batch-target-meta {
    margin-top: 0.25rem;
    color: #64748b;
    font-size: 0.86rem;
    line-height: 1.35;
    word-break: break-word;
}

.batch-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 999px;
    padding: 0.35rem 0.6rem;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
}

.batch-status-pill.is-ready,
.batch-status-pill.is-imported {
    background: #dcfce7;
    color: #166534;
}

.batch-status-pill.is-warning,
.batch-status-pill.is-imported-warning {
    background: #fee2e2;
    color: #b91c1c;
}

.batch-status-pill.is-blocked {
    background: #ffedd5;
    color: #9a3412;
}

.batch-status-pill.is-pending,
.batch-status-pill.is-importing {
    background: #dbeafe;
    color: #1d4ed8;
}

.batch-status-detail {
    margin: 0.45rem 0 0;
    color: #64748b;
    font-size: 0.86rem;
    line-height: 1.35;
}

.is-signature-warning .batch-status-detail {
    color: #991b1b;
}

@media (max-width: 900px) {
    .resources-tool-shell {
        padding: 1rem;
    }

    .batch-recovery-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .resources-tool-heading {
        flex-direction: column;
    }

    .batch-recovery-summary {
        grid-template-columns: 1fr;
    }

    .batch-recovery-toolbar .btn {
        width: 100%;
    }
}
