:root {
    /* ============================================
       PALETA SUAVE - Sala 1 Verdes derivados
       ============================================ */
    --sala1-primary: #66bb6a;      /* Verde suave principal */
    --sala1-light: #f1f8e9;        /* Verde muy suave fondo */
    --sala1-lighter: #dcedc8;      /* Verde claro hover */
    --sala1-medium: #aed581;       /* Verde medio */
    --sala1-dark: #558b2f;         /* Verde oscuro texto */
    --sala1-border: #c5e1a5;       /* Borde verde suave */

    /* ============================================
       PALETA SUAVE - Sala 2 Azules derivados
       ============================================ */
    --sala2-primary: #42a5f5;       /* Azul suave principal */
    --sala2-light: #e3f2fd;        /* Azul muy suave fondo */
    --sala2-lighter: #bbdefb;      /* Azul claro hover */
    --sala2-medium: #90caf9;       /* Azul medio */
    --sala2-dark: #1565c0;         /* Azul oscuro texto */
    --sala2-border: #b3e5fc;       /* Borde azul suave */

    /* Colores neutros suaves */
    --bg: #fafafa;
    --card: #ffffff;
    --surface: #f5f5f5;
    --text: #424242;
    --text-secondary: #616161;
    --text-muted: #9e9e9e;
    --border: #e0e0e0;
    --border-light: #eeeeee;

    /* Estados */
    --success: #81c784;
    --danger: #e57373;
    --warning: #ffb74d;
    --info: #64b5f6;

    /* Sombras muy suaves */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
    --shadow: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 3px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 6px 16px rgba(0,0,0,0.12);

    /* Bordes redondeados */
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    --radius-full: 9999px;

    /* Transiciones */
    --transition-fast: 150ms ease;
    --transition: 250ms ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.4; /* Reducido de 1.5 */
    font-size: 0.8125rem; /* Ligeramente más pequeño */
    -webkit-font-smoothing: antialiased;
}

/* ============================================
   NAVBAR - Compacto
   ============================================ */
.navbar {
    background: var(--card);
    border-bottom: 1px solid var(--border-light);
    padding: 0.5rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    height: 56px;
    box-shadow: var(--shadow-sm);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}

.nav-brand i {
    font-size: 1.25rem;
    color: var(--sala1-primary);
}

/* ============================================
   SALAS EN NAVBAR - Píldoras suaves
   ============================================ */
.nav-rooms {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.nav-room-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition);
    border: 1.5px solid transparent;
    background: var(--surface);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 1.2;
}

.nav-room-item:hover {
    background: var(--card);
    border-color: var(--border);
}

/* Sala 1 activa - Verde suave */
.nav-room-item[data-room-id="1"].active,
.nav-room-item.active:nth-child(1) {
    background: var(--sala1-primary);
    border-color: var(--sala1-primary);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 187, 106, 0.3);
}

.nav-room-item[data-room-id="1"].active .nav-room-color,
.nav-room-item.active:nth-child(1) .nav-room-color {
    background: white !important;
}

/* Sala 2 activa - Azul suave */
.nav-room-item[data-room-id="2"].active,
.nav-room-item.active:nth-child(2) {
    background: var(--sala2-primary);
    border-color: var(--sala2-primary);
    color: white;
    box-shadow: 0 2px 8px rgba(66, 165, 245, 0.3);
}

.nav-room-item[data-room-id="2"].active .nav-room-color,
.nav-room-item.active:nth-child(2) .nav-room-color {
    background: white !important;
}

.nav-room-color {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    transition: all var(--transition);
}

/* Colores específicos por sala en estado inactivo */
.nav-room-item[data-room-id="1"] .nav-room-color,
.nav-room-item:nth-child(1) .nav-room-color {
    background: var(--sala1-primary);
}

.nav-room-item[data-room-id="2"] .nav-room-color,
.nav-room-item:nth-child(2) .nav-room-color {
    background: var(--sala2-primary);
}

.nav-room-name {
    font-weight: 600;
    line-height: 1.2;
}

/* ============================================
   LINKS Y BOTONES DEL NAVBAR
   ============================================ */
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.375rem 0.875rem;
    background: var(--surface);
    border-radius: var(--radius-full);
    border: 1px solid var(--border-light);
    cursor: pointer;
    transition: all var(--transition);
    line-height: 1.2;
}

.user-info:hover {
    background: var(--card);
    border-color: var(--sala1-primary);
    color: var(--sala1-primary);
}

.user-info i {
    color: var(--sala1-primary);
    font-size: 0.75rem;
}

/* Botones compactos */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.4375rem 0.875rem;
    border: none;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    letter-spacing: 0.01em;
    line-height: 1.2;
}

.btn-primary {
    background: var(--sala1-primary);
    color: white;
    box-shadow: 0 1px 4px rgba(102, 187, 106, 0.25);
}

.btn-primary:hover {
    background: var(--sala1-dark);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 187, 106, 0.35);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--card);
    border-color: var(--sala1-primary);
    color: var(--sala1-primary);
}

.btn-danger {
    background: #ffebee;
    color: var(--danger);
    border: 1px solid #ffcdd2;
}

.btn-danger:hover {
    background: var(--danger);
    color: white;
}

.btn-icon {
    background: transparent;
    border: none;
    padding: 0.4375rem;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.8125rem;
    border-radius: var(--radius);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    line-height: 1;
}

.btn-icon:hover {
    background: var(--surface);
    color: var(--sala1-primary);
}

/* ============================================
   CONTENEDOR PRINCIPAL - Compacto
   ============================================ */
.container-full {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
    min-height: calc(100vh - 56px);
}

.main-content-full {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    min-height: calc(100vh - 88px);
}

/* ============================================
   HEADER DEL CALENDARIO - Título centrado
   ============================================ */
.calendar-section {
    position: relative;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-light);
    position: relative;
}

/* TÍTULO CENTRADO SOBRE LOS DÍAS */
.room-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.875rem;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center; /* CENTRADO */
    gap: 0.5rem;
    letter-spacing: -0.01em;
    line-height: 1.2;
    text-align: center;
    width: 100%;
}

.room-title .room-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.btn-icon[onclick="toggleCalendar()"] {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.5rem 0.875rem;
    width: auto;
    height: auto;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--text);
    line-height: 1.2;
}

.btn-icon[onclick="toggleCalendar()"]:hover {
    background: var(--card);
    border-color: var(--sala1-primary);
    color: var(--sala1-primary);
}

#currentMonthYear {
    font-size: 0.875rem;
    font-weight: 600;
}

.week-navigation {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--surface);
    padding: 0.25rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-light);
}

.week-range {
    font-weight: 700;
    font-size: 0.8125rem;
    color: var(--text);
    min-width: 180px;
    text-align: center;
    letter-spacing: 0.01em;
    line-height: 1.2;
}

/* ============================================
   POPUP CALENDARIO
   ============================================ */
.calendar-popup {
    position: absolute;
    top: 50px;
    left: 0;
    background: var(--card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 1rem;
    z-index: 50;
    border: 1px solid var(--border-light);
    min-width: 280px;
}

.calendar-popup.hidden {
    display: none;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
}

.calendar-header-row {
    display: contents;
    font-weight: 700;
    color: var(--text-muted);
    font-size: 0.625rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.2;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.8125rem;
    font-weight: 500;
    transition: all var(--transition);
    color: var(--text);
    line-height: 1;
}

.calendar-day:hover {
    background: var(--sala1-light);
    color: var(--sala1-primary);
}

.calendar-day.selected {
    background: var(--sala1-primary);
    color: white;
    box-shadow: 0 2px 6px rgba(102, 187, 106, 0.3);
}

.calendar-day.other-month {
    color: var(--text-muted);
    opacity: 0.5;
}

.calendar-day.today {
    border: 1.5px solid var(--sala1-primary);
    color: var(--sala1-primary);
    font-weight: 700;
}

/* ============================================
   GRID DE HORARIO - Compacto con celdas suaves
   ============================================ */
.select-room-msg {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--text-muted);
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--border);
    line-height: 1.4;
}

.select-room-msg i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.5;
    color: var(--sala1-primary);
}

.select-room-msg p {
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.3;
}

.schedule-grid {
    display: grid;
    grid-template-columns: 50px repeat(5, 1fr);
    gap: 0.375rem;
    background: transparent;
}

/* Headers compactos */
.schedule-header {
    background: var(--surface);
    padding: 0.625rem 0.375rem;
    text-align: center;
    font-weight: 700;
    font-size: 0.6875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    line-height: 1.2;
}

.schedule-header.day {
    background: var(--sala1-primary);
    color: white;
    font-weight: 700;
    border: none;
    box-shadow: 0 1px 4px rgba(102, 187, 106, 0.2);
    line-height: 1.3;
}

/* Cuando sala 2 está activa, cambiar a azul suave */
body.sala2-active .schedule-header.day {
    background: var(--sala2-primary);
    box-shadow: 0 1px 4px rgba(66, 165, 245, 0.2);
}

.schedule-header.day small {
    display: block;
    font-size: 0.625rem;
    opacity: 0.95;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    margin-top: 0.125rem;
    line-height: 1.2;
}

/* Columna de horas compacta */
.schedule-time {
    background: var(--surface);
    padding: 0.625rem 0.375rem;
    text-align: center;
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    line-height: 1.2;
}

/* ============================================
   CELDAS DEL HORARIO - Verdes/Azules suaves
   ============================================ */
.schedule-cell {
    background: var(--sala1-light);
    padding: 0.5rem;
    min-height: 56px;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: var(--radius-sm);
    border: 1px solid var(--sala1-border);
    line-height: 1.2;
}

/* Estilo para sala 2 - Azul suave */
body.sala2-active .schedule-cell {
    background: var(--sala2-light);
    border-color: var(--sala2-border);
}

.schedule-cell:hover:not(.occupied) {
    background: var(--sala1-lighter);
    border-color: var(--sala1-medium);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(102, 187, 106, 0.15);
}

body.sala2-active .schedule-cell:hover:not(.occupied) {
    background: var(--sala2-lighter);
    border-color: var(--sala2-medium);
    box-shadow: 0 2px 6px rgba(66, 165, 245, 0.15);
}

/* Celda ocupada/reservada - Naranja suave */
.schedule-cell.occupied {
    background: #fff3e0;
    cursor: default;
    border: 1px solid #ffe0b2;
}

.schedule-cell.own-reservation {
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    cursor: pointer;
}

/* ============================================
   INFO DE RESERVA EN CELDA - Compacta
   ============================================ */
.reservation-info {
    font-size: 0.6875rem;
    line-height: 1.25; /* Reducido */
    text-align: center;
    width: 100%;
}

.reservation-info .name {
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.125rem;
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.reservation-info .course {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.9);
    color: var(--sala1-dark);
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.625rem;
    letter-spacing: 0.01em;
    line-height: 1.2;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.schedule-cell.occupied .reservation-info .course {
    background: rgba(255,255,255,0.95);
    color: #e65100;
}

.reservation-info .description,
.reservation-info .observation {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    background: rgba(255,255,255,0.9);
    color: var(--sala1-primary);
    border-radius: 50%;
    font-size: 0.5rem;
    cursor: help;
    line-height: 1;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.schedule-cell.occupied .reservation-info .description,
.schedule-cell.occupied .reservation-info .observation {
    color: #f57c00;
}

/* Botón liberar */
.reservation-actions {
    position: absolute;
    top: 2px;
    right: 2px;
}

.btn-release {
    background: white;
    color: var(--danger);
    border: 1px solid var(--danger);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    opacity: 0;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
    line-height: 1;
    padding: 0;
}

.btn-release:hover {
    background: var(--danger);
    color: white;
    transform: scale(1.1);
}

.schedule-cell.own-reservation:hover .btn-release {
    opacity: 1;
}

/* ============================================
   MODALES - Compactos y suaves
   ============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(3px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--card);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    animation: slideUp 0.25s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-large {
    max-width: 460px;
}

.modal-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

.modal-header h3 i {
    color: var(--sala1-primary);
}

.close-btn {
    background: var(--surface);
    border: none;
    font-size: 0.875rem;
    cursor: pointer;
    color: var(--text-muted);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    transition: all var(--transition);
    line-height: 1;
}

.close-btn:hover {
    background: #ffebee;
    color: var(--danger);
    transform: rotate(90deg);
}

/* Formularios compactos */
.modal form {
    padding: 1rem 1.25rem;
}

.form-group {
    margin-bottom: 0.75rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.375rem;
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--text);
    line-height: 1.2;
}

.form-group input,
.form-group select,
textarea {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.8125rem;
    font-weight: 500;
    transition: all var(--transition);
    background: var(--surface);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    line-height: 1.3;
}

.form-group input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.form-group input:hover,
.form-group select:hover,
textarea:hover {
    border-color: var(--sala1-light);
    background: var(--card);
}

.form-group input:focus,
.form-group select:focus,
textarea:focus {
    outline: none;
    border-color: var(--sala1-primary);
    background: var(--card);
    box-shadow: 0 0 0 3px rgba(102, 187, 106, 0.1);
}

textarea {
    resize: vertical;
    min-height: 60px;
    line-height: 1.4;
}

/* Info display en modal */
.reservation-info-display {
    background: var(--surface);
    padding: 0.75rem;
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    border: 1px solid var(--border-light);
}

.reservation-info-display p {
    margin-bottom: 0.375rem;
    font-size: 0.8125rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    line-height: 1.3;
}

.reservation-info-display p:last-child {
    margin-bottom: 0;
}

.reservation-info-display strong {
    color: var(--text-secondary);
    font-weight: 600;
    min-width: 80px;
    font-size: 0.75rem;
    line-height: 1.2;
}

.reservation-info-display span {
    font-weight: 600;
    color: var(--text);
}

#resUser, #editResUser {
    color: var(--sala1-primary);
}

.form-hint {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-muted);
    font-size: 0.6875rem;
    font-weight: 500;
    line-height: 1.2;
}

#cursoInput, #editCursoInput {
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* Acciones del modal */
.modal-actions {
    display: flex;
    gap: 0.625rem;
    justify-content: flex-end;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-light);
}

/* ============================================
   TOAST NOTIFICATIONS - Compactos
   ============================================ */
.toast-container {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background: var(--card);
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.625rem;
    animation: slideInRight 0.25s ease;
    border-left: 3px solid var(--sala1-primary);
    border: 1px solid var(--border-light);
    min-width: 260px;
    font-size: 0.8125rem;
    line-height: 1.3;
}

.toast.success {
    border-left-color: var(--success);
}

.toast.error {
    border-left-color: var(--danger);
}

.toast i {
    font-size: 1rem;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================
   DASHBOARD - Estilos consistentes
   ============================================ */
.dashboard-body {
    background: var(--bg);
}

.dashboard-container {
    max-width: 1200px;
    margin: 1.5rem auto;
    padding: 0 1rem;
}

.dashboard-header {
    background: var(--card);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-light);
}

.dashboard-header h1 {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

.dashboard-header h1 i {
    color: var(--sala1-primary);
    font-size: 1.375rem;
}

.dashboard-actions {
    display: flex;
    gap: 0.5rem;
}

.table-container {
    background: var(--card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.8125rem;
    line-height: 1.3;
}

.data-table th,
.data-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.data-table th {
    background: var(--surface);
    font-weight: 700;
    color: var(--text-secondary);
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1.5px solid var(--border-light);
    line-height: 1.2;
}

.data-table tr:hover td {
    background: var(--surface);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.625rem;
    border-radius: var(--radius-full);
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.badge-admin {
    background: #ffebee;
    color: var(--danger);
    border: 1px solid #ffcdd2;
}

.badge-user {
    background: #e3f2fd;
    color: var(--info);
    border: 1px solid #bbdefb;
}

.action-btns {
    display: flex;
    gap: 0.375rem;
}

.btn-small {
    padding: 0.375rem;
    width: 28px;
    height: 28px;
    border-radius: var(--radius);
}

/* ============================================
   RESPONSIVE - Compacto
   ============================================ */
@media (max-width: 1024px) {
    .navbar {
        padding: 0.5rem 1rem;
        height: auto;
        min-height: 56px;
    }

    .nav-left {
        gap: 1rem;
    }

    .nav-rooms {
        gap: 0.25rem;
    }

    .nav-room-item {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }

    .container-full {
        padding: 0.875rem;
    }

    .main-content-full {
        padding: 1rem;
    }

    .schedule-grid {
        grid-template-columns: 45px repeat(5, 1fr);
        gap: 0.25rem;
    }

    .schedule-cell {
        min-height: 50px;
        padding: 0.375rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .nav-left {
        width: 100%;
        justify-content: space-between;
    }

    .nav-rooms {
        width: auto;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .container-full {
        padding: 0.625rem;
    }

    .main-content-full {
        padding: 0.75rem;
        border-radius: var(--radius);
    }

    .calendar-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }

    .week-navigation {
        width: 100%;
        justify-content: center;
    }

    .schedule-grid {
        grid-template-columns: 36px repeat(5, 1fr);
        gap: 0.25rem;
    }

    .schedule-cell {
        min-height: 45px;
        padding: 0.25rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .dashboard-header {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
        padding: 0.875rem;
    }

    .dashboard-actions {
        width: 100%;
        justify-content: center;
    }

    .modal-content {
        margin: 0.5rem;
        max-height: calc(100vh - 1rem);
    }
}

/* ============================================
   UTILIDADES
   ============================================ */
.readonly-field {
    background-color: var(--surface) !important;
    cursor: not-allowed !important;
    opacity: 0.7;
}

.readonly-field:focus {
    outline: none !important;
    border-color: var(--border) !important;
    box-shadow: none !important;
}