/* ============================================
   ?? DORADOS CONTROL ESCOLAR - ALUMNOS
   Diseño Moderno y Limpio
   ============================================ */

/* === Variables de Tema === */
:root {
    --gold-primary: #d4a853;
    --gold-dark: #b8860b;
    --gold-light: #f0d78c;
    --bg-main: #f5f7fa;
    --bg-card: #ffffff;
    --text-primary: #1a1a2e;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --border-color: #e5e7eb;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.2s ease;
}

/* === Contenedor Principal === */
.alumnos-page {
    background: var(--bg-main);
    min-height: 100vh;
    padding: 1.5rem;
    overflow-x: hidden;
    max-width: 100vw;
    box-sizing: border-box;
}

/* === Header === */
.page-header {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-md);
    box-sizing: border-box;
    max-width: 100%;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-icon {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-icon i {
    font-size: 2rem;
    color: white;
}

.header-text h1 {
    margin: 0;
    color: white;
    font-size: 1.75rem;
    font-weight: 700;
}

.header-text p {
    margin: 0.25rem 0 0;
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
}

.header-stats {
    display: flex;
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.stat-label {
    color: rgba(255,255,255,0.8);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* === Layout Principal === */
.main-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 1.5rem;
    min-height: calc(100vh - 180px);
    overflow: hidden;
}

/* === Panel Izquierdo === */
.left-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* === Caja de Búsqueda === */
.search-box {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    box-sizing: border-box;
}

.search-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.search-header i {
    color: var(--gold-primary);
    font-size: 1.1rem;
}

.search-header span {
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.search-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #d1d5db;
    border-radius: 24px;
    transition: var(--transition);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--gold-primary);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(20px);
}

.toggle-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.search-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.search-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.search-field label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.search-field label i {
    color: var(--gold-primary);
    font-size: 0.75rem;
}

.search-field input {
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    transition: var(--transition);
    background: #fafbfc;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.search-field input:focus {
    outline: none;
    border-color: var(--gold-primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.15);
}

.search-field input::placeholder {
    color: var(--text-muted);
}

.search-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.search-actions button {
    flex: 1;
    padding: 0.6rem;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.btn-search {
    background: var(--gold-primary);
    color: white;
}

.btn-search:hover {
    background: var(--gold-dark);
    transform: translateY(-1px);
}

.btn-clear {
    background: #f3f4f6;
    color: var(--text-secondary);
}

.btn-clear:hover {
    background: #e5e7eb;
}

.btn-all {
    background: #e0e7ff;
    color: #4f46e5;
}

.btn-all:hover {
    background: #c7d2fe;
}

/* === Lista de Estudiantes === */
.student-list {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 150px;
}

.list-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.list-header span:first-child {
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.list-header i {
    color: var(--gold-primary);
}

.list-count {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: #f3f4f6;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.list-container {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
}

.loading-state,
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: var(--text-muted);
    gap: 0.75rem;
}

.empty-state i,
.loading-state i {
    font-size: 2.5rem;
    opacity: 0.5;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--gold-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* === Tarjeta de Estudiante === */
.student-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    margin-bottom: 0.5rem;
    position: relative;
}

.student-card:hover {
    background: #f9fafb;
}

.student-card.selected {
    background: linear-gradient(135deg, rgba(212, 168, 83, 0.08), rgba(212, 168, 83, 0.15));
    border-color: var(--gold-primary);
}

.student-card.baja {
    opacity: 0.6;
}

.student-card.baja .student-name {
    text-decoration: line-through;
}

.student-avatar {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.student-avatar i {
    color: white;
    font-size: 1.25rem;
}

.student-info {
    flex: 1;
    min-width: 0;
}

.student-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.student-details {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.student-details span {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.student-details i {
    font-size: 0.7rem;
}

.badge-baja {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--danger);
    color: white;
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
}

/* === Panel Derecho === */
.right-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.empty-detail {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 4rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.empty-detail i {
    font-size: 4rem;
    color: var(--gold-light);
    margin-bottom: 1rem;
}

.empty-detail h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.25rem;
}

.empty-detail p {
    color: var(--text-secondary);
    margin: 0.5rem 0 1.5rem;
    max-width: 300px;
}

.btn-new-student {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-new-student:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* === Acciones Rápidas === */
.quick-actions {
    display: flex;
    gap: 0.75rem;
    background: var(--bg-card);
    padding: 1rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
    box-sizing: border-box;
    max-width: 100%;
}

.action-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.action-btn.primary {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: white;
}

.action-btn.primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 168, 83, 0.4);
}

.action-btn.warning {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
}

.action-btn.warning:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.action-btn.danger {
    background: linear-gradient(135deg, #f87171, #ef4444);
    color: white;
}

.action-btn.danger:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.action-btn.success {
    background: linear-gradient(135deg, #34d399, #10b981);
    color: white;
}

.action-btn.success:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* === Secciones Colapsables === */
.detail-sections {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.section-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.section-header {
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.section-header:hover {
    background: #f9fafb;
}

.section-card.expanded .section-header {
    border-bottom-color: var(--border-color);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
}

.section-title i {
    color: var(--gold-primary);
    font-size: 1.1rem;
}

.section-arrow {
    color: var(--text-muted);
    transition: var(--transition);
}

.section-card.expanded .section-arrow {
    transform: rotate(180deg);
}

.section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.section-card.expanded .section-content {
    max-height: 1500px;
    padding: 1.25rem;
}

.loading-badge {
    font-size: 0.7rem;
    background: #fef3c7;
    color: #92400e;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
    margin-left: 0.5rem;
}

/* === Formularios === */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-group.half {
    grid-column: span 1;
}

.form-group.third {
    grid-column: span 1;
}

.form-group:not(.half):not(.third) {
    grid-column: span 2;
}

@media (min-width: 1200px) {
    .form-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .form-group.half {
        grid-column: span 1;
    }
    
    .form-group.third {
        grid-column: span 1;
    }
    
    .form-group:not(.half):not(.third) {
        grid-column: span 3;
    }
}

.form-group label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.form-group input,
.form-group select {
    padding: 0.65rem 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    transition: var(--transition);
    background: white;
    color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.15);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group input.readonly,
.form-group input:disabled {
    background: #f3f4f6;
    color: var(--text-muted);
    cursor: not-allowed;
}

.form-group select {
    cursor: pointer;
}

.error-message {
    background: #fef2f2;
    color: #dc2626;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.section-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.btn-section-action {
    background: var(--gold-primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-section-action:hover:not(:disabled) {
    background: var(--gold-dark);
    transform: translateY(-1px);
}

.btn-section-action:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* === Toast Notificaciones === */
.toast-notification {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
    z-index: 9999;
}

.toast-notification.success {
    background: linear-gradient(135deg, #34d399, #10b981);
}

.toast-notification.error {
    background: linear-gradient(135deg, #f87171, #ef4444);
}

.toast-notification i {
    font-size: 1.25rem;
}

.toast-close {
    background: rgba(255,255,255,0.2);
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.5rem;
    transition: var(--transition);
}

.toast-close:hover {
    background: rgba(255,255,255,0.3);
}

.toast-close i {
    font-size: 0.875rem;
    color: white;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* === Scrollbar === */
.list-container::-webkit-scrollbar {
    width: 6px;
}

.list-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.list-container::-webkit-scrollbar-thumb {
    background: var(--gold-primary);
    border-radius: 3px;
}

.list-container::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dark);
}

/* === Responsive === */

/* ?? Tablet / small desktop ?? */
@media (max-width: 1024px) {
    .main-layout {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .left-panel {
        max-height: none;
        min-width: 0;
    }

    .right-panel {
        min-width: 0;
    }

    .student-list {
        max-height: 350px;
        min-height: 150px;
    }

    .header-stats {
        display: none;
    }

    .quick-actions {
        flex-wrap: wrap;
    }

    .action-btn {
        flex: 1 1 45%;
    }
}

/* ?? Mobile landscape / large phones ?? */
@media (max-width: 768px) {
    .alumnos-page {
        padding: 0.75rem;
        overflow-x: hidden;
    }

    .page-header {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
        padding: 1.25rem 1rem;
        border-radius: var(--radius-md);
        margin-bottom: 1rem;
    }

    .header-content {
        flex-direction: column;
        gap: 0.5rem;
    }

    .header-icon {
        width: 48px;
        height: 48px;
    }

    .header-icon i {
        font-size: 1.5rem;
    }

    .header-text h1 {
        font-size: 1.35rem;
    }

    .header-text p {
        font-size: 0.8rem;
    }

    .main-layout {
        gap: 1rem;
        overflow: hidden;
    }

    .left-panel {
        max-height: none;
        min-width: 0;
        overflow: hidden;
    }

    .right-panel {
        min-width: 0;
        overflow: hidden;
    }

    .student-list {
        max-height: 300px;
        min-height: 120px;
    }

    .search-box {
        padding: 1rem;
    }

    .search-header {
        flex-wrap: wrap;
    }

    .search-toggle {
        flex-shrink: 0;
    }

    .toggle-label {
        white-space: nowrap;
    }

    .search-fields {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .search-actions {
        flex-wrap: wrap;
    }

    .search-actions button {
        flex: 1 1 45%;
    }

    .list-header {
        padding: 0.75rem 1rem;
    }

    .student-card {
        padding: 0.75rem;
        gap: 0.6rem;
    }

    .student-avatar {
        width: 38px;
        height: 38px;
    }

    .student-avatar i {
        font-size: 1.1rem;
    }

    .student-name {
        font-size: 0.85rem;
    }

    .student-details {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .quick-actions {
        padding: 0.75rem;
        gap: 0.5rem;
    }

    .action-btn {
        flex: 1 1 45%;
        padding: 0.55rem 0.4rem;
        font-size: 0.75rem;
        gap: 0.3rem;
    }

    .section-header {
        padding: 0.875rem 1rem;
    }

    .section-card.expanded .section-content {
        padding: 1rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .form-group.half,
    .form-group.third,
    .form-group:not(.half):not(.third) {
        grid-column: span 1;
    }

    .empty-detail {
        padding: 2.5rem 1.5rem;
    }

    .empty-detail i {
        font-size: 3rem;
    }

    .empty-detail h3 {
        font-size: 1.1rem;
    }

    .toast-notification {
        left: 0.75rem;
        right: 0.75rem;
        bottom: 1rem;
    }
}

/* ?? Mobile portrait / small phones ?? */
@media (max-width: 480px) {
    .alumnos-page {
        padding: 0.5rem;
    }

    .page-header {
        padding: 1rem 0.75rem;
        border-radius: var(--radius-sm);
        margin-bottom: 0.75rem;
    }

    .header-icon {
        width: 40px;
        height: 40px;
        border-radius: var(--radius-sm);
    }

    .header-icon i {
        font-size: 1.25rem;
    }

    .header-text h1 {
        font-size: 1.15rem;
    }

    .header-text p {
        font-size: 0.75rem;
    }

    .main-layout {
        gap: 0.75rem;
    }

    .left-panel {
        max-height: none;
        gap: 0.75rem;
        min-width: 0;
        overflow: hidden;
    }

    .right-panel {
        min-width: 0;
        overflow: hidden;
    }

    .student-list {
        max-height: 260px;
        min-height: 100px;
    }

    .search-box {
        padding: 0.85rem;
        border-radius: var(--radius-sm);
    }

    .search-header {
        margin-bottom: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .search-header span {
        font-size: 0.8rem;
    }

    .toggle-label {
        font-size: 0.68rem;
        white-space: nowrap;
    }

    .search-fields {
        grid-template-columns: 1fr 1fr;
        gap: 0.4rem;
    }

    .search-field label {
        font-size: 0.6rem;
    }

    .search-field input {
        padding: 0.4rem 0.55rem;
        font-size: 0.78rem;
    }

    .search-actions {
        margin-top: 0.5rem;
        gap: 0.35rem;
    }

    .search-actions button {
        flex: 1 1 45%;
        padding: 0.45rem;
        font-size: 0.72rem;
    }

    .student-list {
        border-radius: var(--radius-sm);
    }

    .list-header {
        padding: 0.6rem 0.85rem;
    }

    .list-header span:first-child {
        font-size: 0.85rem;
    }

    .list-count {
        font-size: 0.7rem;
        padding: 0.15rem 0.5rem;
    }

    .list-container {
        padding: 0.35rem;
    }

    .student-card {
        padding: 0.6rem;
        gap: 0.5rem;
        margin-bottom: 0.35rem;
    }

    .student-avatar {
        width: 34px;
        height: 34px;
    }

    .student-avatar i {
        font-size: 1rem;
    }

    .student-name {
        font-size: 0.82rem;
    }

    .student-details span {
        font-size: 0.68rem;
    }

    .badge-baja {
        font-size: 0.6rem;
        padding: 0.15rem 0.35rem;
    }

    .quick-actions {
        padding: 0.6rem;
        gap: 0.4rem;
        border-radius: var(--radius-sm);
    }

    .action-btn {
        flex: 1 1 45%;
        padding: 0.5rem 0.4rem;
        font-size: 0.72rem;
    }

    .detail-sections {
        gap: 0.5rem;
    }

    .section-card {
        border-radius: var(--radius-sm);
    }

    .section-header {
        padding: 0.75rem 0.85rem;
    }

    .section-title {
        font-size: 0.88rem;
        gap: 0.5rem;
    }

    .section-title i {
        font-size: 1rem;
    }

    .section-card.expanded .section-content {
        padding: 0.85rem;
    }

    .form-group label {
        font-size: 0.68rem;
    }

    .form-group input,
    .form-group select {
        padding: 0.55rem 0.7rem;
        font-size: 0.82rem;
    }

    .btn-section-action {
        width: 100%;
        justify-content: center;
        padding: 0.65rem 1rem;
        font-size: 0.82rem;
    }

    .empty-detail {
        padding: 2rem 1rem;
        border-radius: var(--radius-sm);
    }

    .empty-detail i {
        font-size: 2.5rem;
    }

    .empty-detail h3 {
        font-size: 1rem;
    }

    .empty-detail p {
        font-size: 0.85rem;
    }

    .btn-new-student {
        padding: 0.75rem 1.5rem;
        font-size: 0.85rem;
        border-radius: var(--radius-sm);
    }

    .toast-notification {
        left: 0.5rem;
        right: 0.5rem;
        bottom: 0.75rem;
        padding: 0.85rem 1rem;
        border-radius: var(--radius-sm);
        font-size: 0.85rem;
    }

    .loading-state,
    .empty-state {
        padding: 2rem;
    }

    .empty-state i,
    .loading-state i {
        font-size: 2rem;
    }
}

/* === Print === */
@media print {
    .search-box,
    .quick-actions,
    .toast-notification {
        display: none !important;
    }
}
