/* Estilos generales y del body */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Evita el scroll horizontal */
}

/* Contenedor principal para centrar el contenido y limitar el ancho */
.container {
    background: #fff;
    padding: 20px; /* Padding más flexible */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 95%; /* Usa un porcentaje para que sea flexible */
    max-width: 1200px; /* Aumenta el ancho máximo para pantallas grandes */
    margin: 20px auto; /* Centra el contenedor y agrega margen */
    box-sizing: border-box; /* Asegura que el padding no afecte el ancho */
}

h2 {
    color: #004d40;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

label {
    align-self: flex-start;
    font-weight: bold;
}

input, select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Crucial para que el ancho sea correcto */
}

button {
    background-color: #004d40;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    box-sizing: border-box;
}

button:hover {
    background-color: #00332e;
}

/* Estilos para el encabezado */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #004d40;
    color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-sizing: border-box;
    width: 100%; /* Asegura que ocupe todo el ancho */
}

.logo {
    height: 50px;
    vertical-align: middle;
}

.nav-link {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-weight: bold;
}

.nav-link:hover {
    text-decoration: underline;
}

.notification-badge {
    background-color: #ff4d4f;
    color: white;
    font-size: 12px;
    font-weight: bold;
    border-radius: 50%;
    padding: 2px 6px;
    position: relative;
    top: -10px;
    left: 5px;
}

.button-link-as-text {
    background: none;
    border: none;
    padding: 0;
    color: #007bff;
    text-decoration: underline;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
}

.video-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centra las tarjetas horizontalmente */
    gap: 20px;
    margin-top: 10px;
}

.video-item {
    flex: 1 1 300px;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 100%; /* Asegura que no se desborde */
}

.video-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin-top: 10px;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.stats-table table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.stats-table th {
    background-color: #f2f2f2;
    color: #333;
}

.stats-table tbody tr:hover {
    background-color: #f9f9f9;
}

/* Media Queries para optimizar la visualización en diferentes dispositivos */
@media (max-width: 768px) {
    .header {
        flex-direction: column; /* Apila los elementos en pantallas pequeñas */
        align-items: flex-start;
        padding: 10px;
    }
    .nav-link {
        margin: 5px 0;
    }
    .container {
        padding: 15px;
        margin: 10px auto;
    }
}
