/* Reset básico */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Fuente base y fondo */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f7f6;
    color: #333;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Contenedor central */
.container {
    max-width: 1000px;
    margin: 0 auto;
    flex: 1;
}

/* Header global y navegación */
header {
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    margin-bottom: 30px;
    border-radius: 8px;
    text-align: center;
}

header h1 {
    font-size: 2em;
    color: #2c3e50;
    margin-bottom: 15px;
}

header p {
    color: #666;
    font-size: 1.1em;
    margin: 5px 0;
}

/* Navegación principal */
nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    padding: 0 20px;
}

.nav-link {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    padding: 8px 20px;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.nav-link:hover {
    background-color: #e9ecef;
    color: #007BFF;
    transform: translateY(-1px);
}

.nav-link.active {
    background-color: #007BFF;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

/* Botones de navegación */
.nav-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
    padding: 0 20px;
}

.nav-buttons button {
    padding: 12px 24px;
    border: none;
    background-color: #007BFF;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1 1 auto;
    max-width: 200px;
    font-size: 1em;
    font-weight: 500;
}

.nav-buttons button:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.nav-buttons button.active {
    background-color: #0056b3;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Tarjetas de información */
.info {
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

/* Tabla de detalles con scroll horizontal */
.canales {
    width: 100%;
    overflow-x: auto;
}

.canales table {
    min-width: 600px;
    border-collapse: collapse;
    margin-top: 10px;
}

.canales th, .canales td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.canales th {
    background-color: #007BFF;
    color: white;
}

/* Ocultar informes por defecto */
.periodo-container {
    display: none;
}

/* Mostrar el informe activo */
.periodo-container.active {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    header {
        padding: 15px 0;
    }

    header h1 {
        font-size: 1.8em;
    }

    nav {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .nav-link {
        width: 100%;
        text-align: center;
    }

    .nav-buttons {
        padding: 0 10px;
    }

    .nav-buttons button {
        max-width: 100%;
    }
}

/* Ajustes extra para pantallas <= 480px */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    header {
        padding: 10px 0;
    }

    header h1 {
        font-size: 1.5em;
    }

    .nav-buttons button {
        padding: 8px 10px;
        font-size: 14px;
    }

    .info {
        padding: 15px;
    }
}

/* Room Distribution Page Styles */
.date-selector {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    text-align: center;
}

.date-selector label {
    font-size: 1.1em;
    margin-right: 10px;
    color: #2c3e50;
}

.date-selector input[type="date"] {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
}

.rooms-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.room-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.3s ease;
}

.room-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.room-card h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.room-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.room-info p {
    margin: 0;
    color: #666;
}

.status {
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: 500;
    display: inline-block;
}

.status.private {
    background-color: #ffebee;
    color: #c62828;
}

.status.beds {
    background-color: #e3f2fd;
    color: #1565c0;
}

.occupant {
    font-weight: 500;
    color: #2c3e50;
}

@media (max-width: 768px) {
    .rooms-container {
        grid-template-columns: 1fr;
    }
}

/* Bed styles */
.beds-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.bed {
    padding: 10px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.bed.available {
    background-color: #e8f5e9;
    border: 1px solid #81c784;
}

.bed.occupied {
    background-color: #ffebee;
    border: 1px solid #e57373;
}

.bed-label {
    font-weight: 500;
    color: #2c3e50;
}

.status-text {
    color: #666;
    font-size: 0.9em;
}

.occupant {
    color: #c62828;
    font-weight: 500;
}

@media (max-width: 768px) {
    .beds-container {
        grid-template-columns: 1fr;
    }
}

/* Private room styles */
.room-card.private-room {
    border: 2px solid #c62828;
    background-color: #fff3f3;
}

.room-card.private-room .bed {
    background-color: #ffebee;
    border: 1px solid #e57373;
}

.room-card.private-room .bed-label {
    color: #c62828;
}

.room-card.private-room .occupant {
    color: #c62828;
    font-weight: 600;
}
  