/* Student Excel Import / Export */
.excel-actions-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
    align-items: center;
}

.excel-actions-bar .btn-secondary,
.excel-actions-bar .btn-primary-outline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    font-size: 0.9rem;
}

.excel-import-note {
    background: rgba(37, 99, 235, 0.06);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.88rem;
    line-height: 1.6;
    color: #1e293b;
    margin-bottom: 16px;
}

.excel-import-note strong {
    color: #0f172a;
}

.excel-drop-zone {
    border: 2px dashed rgba(37, 99, 235, 0.35);
    border-radius: 12px;
    padding: 32px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    background: rgba(255, 255, 255, 0.5);
}

.excel-drop-zone:hover,
.excel-drop-active {
    border-color: var(--primary, #2563eb);
    background: rgba(37, 99, 235, 0.04);
}

.excel-drop-zone i {
    width: 40px;
    height: 40px;
    color: var(--primary, #2563eb);
    margin-bottom: 8px;
}

.excel-drop-zone p {
    margin: 4px 0;
    color: #475569;
}

.excel-drop-zone .excel-drop-hint {
    font-size: 0.82rem;
    color: #94a3b8;
}

.excel-import-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 16px 0 10px;
}

.excel-stat {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.excel-stat-new { background: rgba(16, 185, 129, 0.12); color: #059669; }
.excel-stat-skip { background: rgba(245, 158, 11, 0.12); color: #d97706; }
.excel-stat-err { background: rgba(239, 68, 68, 0.12); color: #dc2626; }

.excel-preview-wrap {
    max-height: 320px;
    overflow: auto;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    margin-top: 8px;
}

.excel-preview-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.excel-preview-table th,
.excel-preview-table td {
    padding: 8px 10px;
    text-align: right;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.excel-preview-table th {
    background: rgba(0, 0, 0, 0.03);
    position: sticky;
    top: 0;
    z-index: 1;
}

.excel-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

.excel-badge-new { background: rgba(16, 185, 129, 0.15); color: #059669; }
.excel-badge-skipped { background: rgba(245, 158, 11, 0.15); color: #d97706; }
.excel-badge-error { background: rgba(239, 68, 68, 0.15); color: #dc2626; }

.excel-row-errors {
    color: #dc2626;
    font-size: 0.78rem;
}

.excel-row-warn {
    color: #d97706;
    font-size: 0.78rem;
}

.excel-import-progress {
    margin-top: 12px;
}

.excel-import-progress-bar {
    height: 6px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    overflow: hidden;
}

.excel-import-progress-fill {
    height: 100%;
    background: var(--primary, #2563eb);
    width: 0%;
    transition: width 0.15s ease-out;
}

.excel-import-progress-text {
    margin-top: 8px;
    font-size: 0.88rem;
    color: #475569;
    text-align: center;
}

.excel-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: excel-spin 0.75s linear infinite;
    vertical-align: middle;
    margin-left: 6px;
}

@keyframes excel-spin {
    to { transform: rotate(360deg); }
}

.students-table-photo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(0, 0, 0, 0.08);
}

.students-table-photo-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.students-table-photo-placeholder i {
    width: 18px;
    height: 18px;
}
