/* assets/css/admin_styles.css */
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; background-color: #f4f7f9; color: #333; margin: 0; }
.admin-container { max-width: 1200px; margin: 2rem auto; padding: 2rem; background-color: #fff; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.admin-header { background-color: #2c3e50; color: white; padding: 1rem 2rem; }
.admin-header .header-content { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; }
.admin-header h1 { margin: 0; font-size: 1.5rem; }
.admin-header nav a { color: white; text-decoration: none; margin-left: 1.5rem; transition: color 0.2s; }
.admin-header nav a:hover { color: #1abc9c; }
.admin-header .logout-btn { background-color: #e74c3c; padding: 0.5rem 1rem; border-radius: 4px; }
.admin-header .logout-btn:hover { background-color: #c0392b; }
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; border-bottom: 2px solid #e0e0e0; padding-bottom: 1rem; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 1rem; text-align: left; border-bottom: 1px solid #ddd; }
.data-table th { background-color: #f2f2f2; font-weight: 600; }
.data-table .actions-cell button { margin-right: 0.5rem; }
.btn { padding: 0.6rem 1.2rem; border: none; border-radius: 4px; cursor: pointer; font-size: 0.9rem; font-weight: 500; text-decoration: none; display: inline-block; }
.btn-primary { background-color: #3498db; color: white; } .btn-primary:hover { background-color: #2980b9; }
.btn-secondary { background-color: #f1c40f; color: #333; } .btn-secondary:hover { background-color: #f39c12; }
.btn-danger { background-color: #e74c3c; color: white; } .btn-danger:hover { background-color: #c0392b; }
.btn-success { background-color: #2ecc71; color: white; } .btn-success:hover { background-color: #27ae60; }
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.5); }
.modal-content { background-color: #fefefe; margin: 10% auto; padding: 2rem; border: 1px solid #888; width: 80%; max-width: 500px; border-radius: 8px; position: relative; }
.close-btn { color: #aaa; float: right; font-size: 28px; font-weight: bold; position: absolute; top: 10px; right: 20px; }
.close-btn:hover, .close-btn:focus { color: black; text-decoration: none; cursor: pointer; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; }
.form-group input, .form-group textarea { width: 100%; padding: 0.8rem; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; }
.login-container { display: flex; align-items: center; justify-content: center; height: 100vh; }
.login-form { width: 350px; padding: 2rem; background: #fff; box-shadow: 0 4px 15px rgba(0,0,0,0.1); border-radius: 8px; }
.login-form h2 { text-align: center; margin-bottom: 2rem; color: #2c3e50; }
.login-form button { width: 100%; background-color: #2c3e50; color: white; }
.error-message { color: #e74c3c; background-color: #fdd; padding: 0.8rem; border: 1px solid #e74c3c; border-radius: 4px; text-align: center; margin-bottom: 1rem; }

/* File: assets/css/admin_styles.css (AÑADIR AL FINAL) */

.day-schedule-container {
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    margin-bottom: 15px;
}
.day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.day-header h4 {
    margin: 0;
}
.time-slot {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.time-slot input {
    width: 120px;
}
.slot-actions button {
    padding: 2px 8px;
    font-size: 1.2rem;
    line-height: 1;
}
/* --- ESTILOS PARA NOTIFICACIONES --- */
.notification-area {
    position: relative;
    margin-left: 20px;
}
.notification-bell {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    position: relative;
    color: white;
    padding: 0;
}
.notification-count {
    position: absolute;
    top: -5px;
    right: -10px;
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.8rem;
    font-weight: bold;
    border: 2px solid #2c3e50;
}
.notification-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 320px;
    background-color: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 5px;
    z-index: 1001;
    color: #333;
}
.notification-header {
    font-weight: bold;
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
}
#notification-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 400px;
    overflow-y: auto;
}
#notification-list li {
    padding: 10px 15px;
    border-bottom: 1px solid #f2f2f2;
}
#notification-list li a {
    text-decoration: none;
    color: #333;
    display: block;
}
#notification-list li:hover {
    background-color: #f8f9fa;
}
#notification-list .notification-time {
    font-size: 0.8rem;
    color: #888;
    display: block;
    margin-top: 4px;
}
#notification-list .no-notifications {
    padding: 20px;
    text-align: center;
    color: #888;
}
/* File: assets/css/admin_styles.css (AÑADIR AL FINAL) */

/* --- ESTILOS PARA TABLAS RESPONSIVE EN EL PANEL DE ADMIN --- */

@media (max-width: 992px) {
    .responsive-table {
        border: none;
    }

    .responsive-table thead {
        /* Ocultamos la cabecera original en móvil */
        display: none;
    }

    .responsive-table tr {
        display: block;
        margin-bottom: 1.5rem;
        border: 1px solid #ddd;
        border-radius: 5px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }
    
    .responsive-table td {
        display: block;
        text-align: right; /* Alineamos el contenido a la derecha */
        padding: 0.8rem;
        border-bottom: 1px solid #eee;
        position: relative;
    }

    .responsive-table td:last-child {
        border-bottom: none;
    }

    /* Creamos la etiqueta usando el atributo data-label */
    .responsive-table td::before {
        content: attr(data-label); /* Muestra el texto de data-label */
        position: absolute;
        left: 0.8rem;
        font-weight: bold;
        text-align: left;
        padding-right: 1rem; /* Espacio para que el texto largo no choque */
    }

    /* Estilos para los botones de acción en móvil */
    .responsive-table .action-buttons {
        display: flex;
        justify-content: flex-end; /* Alinea los botones a la derecha */
        gap: 0.5rem;
    }
}