/* Reset básico */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f4f4f4, #e9ecef);
    color: #333;
    line-height: 1.6;
}

/* Contenedor principal */
.container {
    width: 90%;
    max-width: 900px;
    margin: 50px auto;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Encabezado */
h2, h3, h4 {
    text-align: center;
    margin-bottom: 20px;
    color: #007BFF;
}

/* Formularios */
form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

label {
    font-weight: bold;
}

input, select, textarea {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 15px;
    transition: border-color 0.3s;
}

input:focus, select:focus, textarea:focus {
    border-color: #007BFF;
    outline: none;
}

button {
    padding: 12px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #0056b3;
}

/* Mensajes */
.error {
    color: red;
    text-align: center;
    font-weight: bold;
}

.message {
    margin-top: 20px;
    padding: 12px;
    background-color: #d4edda;
    border: 1px solid #28a745;
    color: #155724;
    border-radius: 6px;
    text-align: center;
}

/* Tablas */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 14px;
    background-color: #fafafa;
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 10px;
    text-align: left;
}

th {
    background-color: #007BFF;
    color: white;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* Imagen */
img {
    max-width: 150px;
    display: block;
    margin: 0 auto 20px;
}

/* Enlaces */
a.logout, a.action-link {
    display: inline-block;
    background-color: #007BFF;
    color: white;
    padding: 8px 14px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 10px;
}

a.logout:hover, a.action-link:hover {
    background-color: #0056b3;
}

/* Botones múltiples (acciones en fila) */
.actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

#editar-minutos-form {
    border: 1px solid #eee;
    background: #f9f9f9;
    padding: 12px;
    margin-top: 10px;
    border-radius: 6px;
}

.alerta-minimos {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    padding: 10px;
    margin: 10px 0;
    border-radius: 6px;
    font-weight: bold;
    text-align: center;
}

.toast-message {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ff3860;
    color: #fff;
    padding: 18px 36px 18px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 4px 14px rgba(0,0,0,0.14);
    z-index: 9999;
    animation: fadein 0.4s, fadeout 0.4s 4.6s;
}

.toast-close {
    cursor: pointer;
    margin-left: 18px;
    font-size: 22px;
    color: #fff;
    float: right;
}

@keyframes fadein {
    from { top: 10px; opacity: 0; }
    to { top: 30px; opacity: 1; }
}
@keyframes fadeout {
    from { top: 30px; opacity: 1; }
    to { top: 10px; opacity: 0; }
}