/**
 * Estilos CSS - Sistema de Reservas Estudio de Tatuajes
 * Diseño minimalista blanco y negro
 */

/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #000;
    background-color: #fff;
    font-size: 16px;
}

/* Contenedor principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    border-bottom: 2px solid #000;
    padding: 20px 0;
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #000;
    text-decoration: none;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-name {
    font-weight: 500;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #000;
    color: #fff;
    text-decoration: none;
    border: 2px solid #000;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 0;
    min-width: 120px;
    text-align: center;
}

.btn:hover {
    background-color: #fff;
    color: #000;
}

.btn-secondary {
    background-color: #fff;
    color: #000;
    border: 2px solid #000;
}

.btn-secondary:hover {
    background-color: #000;
    color: #fff;
}

.btn-success {
    background-color: #28a745;
    color: #fff;
    border: 2px solid #28a745;
}

.btn-success:hover {
    background-color: #218838;
    color: #fff;
    border-color: #1e7e34;
}

.btn-warning {
    background-color: #f12929;
    color: #ffffff;
    border: 2px solid #f12a29;
}

.btn-warning:hover {
    background-color: #c01717;
    color: #ffffff;
    border-color: #c01717;
}

.btn-large {
    padding: 20px 40px;
    font-size: 18px;
    min-width: 200px;
}

/* Formularios */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #000;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #000;
    background-color: #fff;
    font-size: 16px;
    color: #000;
}

.form-input:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px #000;
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

/* Login */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 40px;
    border: 2px solid #000;
    background-color: #fff;
}

.login-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: bold;
}

/* Calendario */
.calendar-container {
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    border: 2px solid #000;
    background-color: #fff;
    gap: 15px;
}

.calendar-nav {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.calendar-nav:hover {
    background-color: #333;
}

.calendar-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.calendar-title {
    font-size: 24px;
    font-weight: bold;
    color: #000;
    text-align: center;
    flex: 1;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    border: 2px solid #000;
    background-color: #000;
}

.calendar-day-header {
    background-color: #000;
    color: #fff;
    padding: 15px 5px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
}

.calendar-day {
    background-color: #fff;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-weight: 500;
    font-size: 16px;
    padding: 5px;
}

.calendar-day.other-month {
    background-color: #f8f8f8;
    color: #ccc;
}

.calendar-day.today {
    background-color: #000 !important;
    color: #fff !important;
    font-weight: bold;
}

.calendar-day.available {
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: #000;
}

.calendar-day.available.today {
    background-color: #000 !important;
    color: #fff !important;
}

.calendar-day.available:hover {
    background-color: #000;
    color: #fff;
}

.calendar-day.sunday {
    background-color: #f5f5f5;
    color: #999;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.calendar-day.sunday:hover {
    background-color: #e8e8e8;
}



.calendar-day.past {
    background-color: #f8f8f8;
    color: #ccc;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.calendar-day.past:hover {
    background-color: #f0f0f0;
}

.calendar-day.available.today:hover {
    background-color: #333;
    color: #fff;
}

/* Elementos del día en el calendario */
.day-number {
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

/* Círculo alrededor del número cuando hay turnos (no todos señados - negro) */
.day-number.has-reservations {
    border: 2px solid #000;
}

/* Círculo verde cuando todos los turnos están señados */
.day-number.has-reservations.all-senado {
    border: 2px solid #28a745;
}

/* Para días disponibles con hover, el círculo se vuelve blanco */
.calendar-day.available:hover .day-number.has-reservations {
    border-color: #fff;
}

.calendar-day.today .day-number.has-reservations {
    border-color: #fff;
}

/* Para días pasados y otros meses, el círculo se vuelve gris */
.calendar-day.other-month .day-number.has-reservations {
    border-color: #ccc;
}

.calendar-day.past .day-number.has-reservations {
    border-color: #ccc;
}

.calendar-day.sunday .day-number.has-reservations {
    border-color: #999;
}

/* Cuando todos están señados en días pasados u otros meses, mantener verde pero más claro */
.calendar-day.other-month .day-number.has-reservations.all-senado,
.calendar-day.past .day-number.has-reservations.all-senado {
    border-color: #28a745;
    opacity: 0.6;
}

.ocupation-percentage {
    position: absolute;
    bottom: 3px;
    right: 3px;
    font-size: 9px;
    font-weight: bold;
    color: #666;
    line-height: 1;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 1px 2px;
    border-radius: 2px;
}

.calendar-day.available:hover .ocupation-percentage {
    color: #fff !important;
    background-color: rgba(0, 0, 0, 0.8) !important;
}

/* Porcentaje de ocupación para el día de hoy - Solo texto blanco sin fondo */
.calendar-day.today .ocupation-percentage {
    color: #fff !important;
    background-color: transparent !important;
    opacity: 1 !important;
    font-weight: bold !important;
}

/* Porcentaje de ocupación para días pasados o no laborables */
.calendar-day.past .ocupation-percentage {
    color: #ccc !important;
    
    opacity: 0.6;
}

/* Punto indicador de reservas del usuario - Oculto, ahora usamos círculo alrededor del número */
.user-reservation-dot {
    display: none;
}

/* Punto indicador de retoques */
.retoque-indicator-dot {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 8px;
    height: 8px;
    background-color: #FFC107;
    border-radius: 50%;
    z-index: 2;
}

/* Cuando hay punto negro (hoy), el amarillo va arriba */
.calendar-day.today .retoque-indicator-dot {
    top: 3px;
    right: 3px;
    background-color: #FFC107;
}

/* Para días pasados y otros meses */
.calendar-day.other-month .retoque-indicator-dot {
    background-color: #FFB300;
}

.calendar-day.past .retoque-indicator-dot {
    background-color: #FF8F00;
}

/* Punto indicador de compromisos personales */
.personal-indicator-dot {
    position: absolute;
    top: 3px;
    right: 14px;
    width: 8px;
    height: 8px;
    background-color: #dc3545;
    border-radius: 50%;
    z-index: 2;
}

/* Cuando hay punto negro (hoy), el rojo va a la izquierda del amarillo */
.calendar-day.today .personal-indicator-dot {
    top: 3px;
    right: 14px;
    background-color: #dc3545;
}

/* Para días pasados y otros meses */
.calendar-day.other-month .personal-indicator-dot {
    background-color: #c82333;
}

.calendar-day.past .personal-indicator-dot {
    background-color: #bd2130;
}

/* Grid de fechas (mantener para compatibilidad) */
.date-selector {
    margin-bottom: 40px;
}

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

.date-item {
    padding: 20px;
    border: 2px solid #000;
    background-color: #fff;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    text-decoration: none;
    color: #000;
    font-weight: 500;
}

.date-item:hover,
.date-item.selected {
    background-color: #000;
    color: #fff;
}

.date-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f5f5f5;
}

/* Grid de camillas */
.camillas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.camilla-card {
    border: 2px solid #000;
    padding: 20px;
    background-color: #fff;
}

.camilla-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

/* Horarios */
.horarios-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.horario-slot {
    padding: 12px 15px;
    border: 1px solid #000;
    background-color: #fff;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    font-size: 15px;
    font-weight: 500;
    width: 100%;
    height: 49px; /* Altura fija para todos los slots individuales */
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.horario-slot:hover {
    background-color: #f0f0f0;
}

.horario-slot.available {
    background-color: #fff;
    color: #000;
}

/* Horarios disponibles que ya pasaron */
.horario-slot.available-past {
    background-color: #fff;
    color: #999;
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.horario-slot.available-past:hover {
    background-color: #fff;
    color: #999;
    opacity: 0.4;
}

/* Turnos propios pasados - Mantener estilos pero con opacidad */
.horario-slot.occupied-own.available-past {
    background-color: #000 !important;
    color: #fff !important;
    border-color: #000 !important;
    opacity: 0.6 !important;
    cursor: pointer !important;
    pointer-events: auto !important;
}

.horario-slot.occupied-own.available-past:hover {
    background-color: #333 !important;
    border-color: #000 !important;
    opacity: 0.8 !important;
}

/* Turnos señados pasados - Mantener estilos pero con opacidad */
.horario-slot.senado.available-past {
    background-color: #d4edda !important;
    border-color: #28a745 !important;
    color: #155724 !important;
    opacity: 0.6 !important;
    cursor: pointer !important;
    pointer-events: auto !important;
}

.horario-slot.senado.available-past:hover {
    background-color: #c3e6cb !important;
    opacity: 0.8 !important;
}

/* Retoques propios pasados - Mantener estilos pero con opacidad */
.horario-slot.retoque-own.available-past {
    background-color: #000 !important;
    color: #fff !important;
    opacity: 0.6 !important;
    cursor: pointer !important;
    pointer-events: auto !important;
}

.horario-slot.retoque-own.available-past:hover {
    background-color: #333 !important;
    opacity: 0.8 !important;
}

/* Compromisos personales pasados - Mantener estilos pero con opacidad */
.horario-slot.personal-own.available-past {
    background-color: #dc3545 !important;
    color: #fff !important;
    opacity: 0.6 !important;
    cursor: pointer !important;
    pointer-events: auto !important;
}

.horario-slot.personal-own.available-past:hover {
    background-color: #c82333 !important;
    opacity: 0.8 !important;
}

.horario-slot.occupied {
    background-color: #000;
    color: #fff;
    cursor: not-allowed;
}

.horario-slot.occupied-own {
    background-color: #000;
    color: #fff;
    border-color: #000;
    cursor: pointer;
}

.horario-slot.occupied-own:hover {
    background-color: #333;
    border-color: #000;
}

.horario-slot.occupied-other {
    background-color: #000;
    color: #fff;
    cursor: not-allowed;
    opacity: 0.3;
}

/* Estilos para retoques */
.horario-slot.retoque-own {
    background-color: #FFC107;
    color: #000;
    cursor: pointer;
    font-weight: bold;
}

.horario-slot.retoque-own:hover {
    background-color: #FFB300;
}

/* Estilos para compromisos personales */
.horario-slot.personal-own {
    background-color: #dc3545;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
}

.horario-slot.personal-own:hover {
    background-color: #c82333;
}

.horario-slot.retoque-own-pasado {
    background-color: #FF8F00;
    color: #000;
    cursor: pointer;
    font-weight: bold;
}

.horario-slot.retoque-own-pasado:hover {
    background-color: #F57C00;
}

.horario-slot.retoque-other {
    background-color: #000;
    color: #fff;
    cursor: not-allowed;
    opacity: 0.3;
}

.horario-slot.selected {
    background-color: #000;
    color: #fff;
    border: 2px solid #000;
}

.horario-slot.selecting {
    background-color: #666;
    color: #fff;
    border: 2px solid #000;
}

.horario-slot.invalid-selection {
    background-color: #f5f5f5;
    color: #999;
    border: 2px solid #ccc;
    cursor: not-allowed;
}

/* Turnos agrupados con altura dinámica */
.horario-slot.agrupado {
    display: flex;
    align-items: center;
    justify-content: center;
}

.horario-slot.duracion-1 {
    /* Altura base normal */
}

.horario-slot.duracion-2 {
    /* Altura exacta: 2 slots normales + 1 gap = 49px + 8px + 49px = 106px */
    height: 106px;
}

.horario-slot.duracion-3 {
    /* Altura exacta: 3 slots normales + 2 gaps = 49px + 8px + 49px + 8px + 49px = 163px */
    height: 163px;
}

.horario-slot.duracion-4 {
    /* Altura exacta: 4 slots + 3 gaps = (49px * 4) + (8px * 3) = 220px */
    height: 220px;
}

.horario-slot.duracion-5 {
    /* Altura exacta: 5 slots + 4 gaps = (49px * 5) + (8px * 4) = 277px */
    height: 277px;
}

.horario-slot.duracion-6 {
    /* Altura exacta: 6 slots + 5 gaps = (49px * 6) + (8px * 5) = 334px */
    height: 334px;
}

.horario-slot.duracion-7 {
    /* Altura exacta: 7 slots + 6 gaps = (49px * 7) + (8px * 6) = 391px */
    height: 391px;
}

.horario-slot.duracion-8 {
    /* Altura exacta: 8 slots + 7 gaps = (49px * 8) + (8px * 7) = 448px */
    height: 448px;
}

.horario-slot.duracion-9 {
    /* Altura exacta: 9 slots + 8 gaps = (49px * 9) + (8px * 8) = 505px */
    height: 505px;
}

.horario-slot.duracion-10 {
    /* Altura exacta: 10 slots + 9 gaps = (49px * 10) + (8px * 9) = 562px */
    height: 562px;
}

/* Botón de reservar horarios */
.selection-info {
    margin-top: 20px;
    text-align: center;
}

/* Modal */
.modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
}

/* Modal de señas - z-index mayor para aparecer sobre otros modales */
#senadoModal {
    z-index: 99999 !important;
}

#senadoModal .modal-content {
    z-index: 99999 !important;
    position: relative;
    background-color: #fff;
    border: 2px solid #000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-content {
    background-color: #fff;
    border: 2px solid #000;
    max-width: 500px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid #000;
    background-color: #000;
    color: #fff;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.modal-close {
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #fff;
    line-height: 1;
}

.modal-close:hover {
    opacity: 0.7;
}

.modal-body {
    padding: 20px;
}

.modal-body p {
    margin: 10px 0;
    font-size: 16px;
}

.modal-body span {
    font-weight: bold;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #ddd;
    text-align: right;
    background-color: #f9f9f9;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    align-items: center;
}

.modal-footer .btn {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Reserva info */
.reserva-info {
    background-color: #f9f9f9;
    border: 1px solid #000;
    padding: 20px;
    margin: 20px 0;
}

.reserva-info h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

.reserva-detail {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.reserva-detail strong {
    font-weight: 600;
}

/* Mensajes */
.message {
    padding: 15px;
    margin: 20px 0;
    border: 2px solid;
}

.message.success {
    background-color: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.message.error {
    background-color: #000;
    border-color: #000;
    color: #fff;
}

/* Navegación */
.nav-buttons {
    display: flex;
    gap: 15px;
    margin: 30px 0;
    justify-content: center;
}

/* Títulos */
h1, h2, h3 {
    margin-bottom: 20px;
    font-weight: bold;
}

h1 {
    font-size: 28px;
    text-align: center;
}

h2 {
    font-size: 22px;
}

h3 {
    font-size: 18px;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .user-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
        min-width: 100px;
    }
    
    .camillas-grid {
        grid-template-columns: 1fr;
    }
    
    .date-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .horarios-grid {
        gap: 6px;
    }
    
    .nav-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-large {
        padding: 15px 30px;
        font-size: 16px;
        min-width: 180px;
    }
    
    /* Calendario responsive */
    .calendar-container {
        max-width: 100%;
    }
    
    .calendar-header {
        padding: 15px;
        flex-wrap: nowrap;
        gap: 10px;
    }
    
    .calendar-title {
        font-size: 18px;
        order: 0;
        flex: 1;
        text-align: center;
    }
    
    .calendar-nav {
        padding: 8px 12px;
        font-size: 16px;
        min-width: 40px;
    }
    
    .calendar-day {
        min-height: 50px;
        font-size: 14px;
    }
    
    .day-number {
        font-size: 14px;
        width: 24px;
        height: 24px;
    }
    
    .ocupation-percentage {
        font-size: 8px;
        bottom: 2px;
        right: 2px;
    }
    
    .day-number.has-reservations {
        width: 24px;
        height: 24px;
        font-size: 14px;
    }
    
    .retoque-indicator-dot {
        width: 6px;
        height: 6px;
        top: 2px;
        right: 2px;
    }
    
    .personal-indicator-dot {
        width: 6px;
        height: 6px;
        top: 2px;
        right: 10px;
    }
    
    .calendar-day-header {
        padding: 10px 5px;
        font-size: 12px;
    }
    
    /* Modal responsive */
    .modal-content {
        width: 95%;
        max-width: 350px;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-header h3 {
        font-size: 16px;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .modal-body p {
        font-size: 14px;
    }
    
    /* Estilos específicos para el modal de turno en móvil */
    #turnoModal .modal-content {
        width: 95%;
        max-width: 350px;
        margin: 0;
        max-height: 95vh;
    }
    
    #turnoModal .modal-body {
        padding: 15px;
        max-height: calc(95vh - 120px);
        overflow-y: auto;
    }
    
    /* Ajustar botones del modal en móvil */
    .modal-footer {
        flex-direction: row;
        gap: 8px;
        padding: 15px;
        border-top: 1px solid #ddd;
    }
    
    .modal-footer .btn {
        flex: 1;
        margin: 0;
        padding: 12px;
        font-size: 14px;
        text-align: center;
        min-height: 44px;
    }
    
    /* Asegurar que el modal cubra toda la pantalla en móvil */
    .modal {
        padding: 10px;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    .login-container {
        margin: 50px auto;
        padding: 30px 20px;
    }
    
    .header {
        gap: 15px;
    }
    
    .user-info {
        gap: 10px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 13px;
        min-width: 80px;
    }
    
    /* Modal en pantallas muy pequeñas */
    #turnoModal .modal-content {
        width: 98%;
        max-width: none;
        margin: 5px;
        max-height: 98vh;
    }
    
    #turnoModal .modal-body {
        padding: 12px;
        max-height: calc(98vh - 100px);
    }
    
    .modal-footer {
        padding: 12px;
        gap: 6px;
        flex-direction: row;
    }
    
    .modal-footer .btn {
        padding: 10px 8px;
        font-size: 13px;
        flex: 1;
        min-height: 40px;
        text-align: center;
    }
    
    .date-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .horarios-grid {
        gap: 5px;
    }
    
    .horario-slot {
        padding: 10px 12px;
        font-size: 14px;
        height: 38px; /* Altura fija para slots individuales en móvil */
        text-align: center;
        justify-content: center;
    }
    
    /* Ajustar alturas para gap menor en móvil - slot móvil = 38px */
    .horario-slot.duracion-2 {
        height: 81px; /* (38px * 2) + (5px * 1) = 81px */
    }
    
    .horario-slot.duracion-3 {
        height: 124px; /* (38px * 3) + (5px * 2) = 124px */
    }
    
    .horario-slot.duracion-4 {
        height: 167px; /* (38px * 4) + (5px * 3) = 167px */
    }
    
    .horario-slot.duracion-5 {
        height: 210px; /* (38px * 5) + (5px * 4) = 210px */
    }
    
    .calendar-header {
        padding: 12px;
        gap: 8px;
    }
    
    .calendar-title {
        font-size: 16px;
    }
    
    .calendar-nav {
        padding: 6px 10px;
        font-size: 14px;
        min-width: 35px;
    }
}

/* ESTILOS PARA PANEL ADMIN */

/* Estadísticas básicas */
.stats-basic {
    margin-bottom: 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.stat-card {
    border: 2px solid #000;
    padding: 30px 20px;
    text-align: center;
    background-color: #fff;
    transition: all 0.2s ease;
}

.stat-card:hover {
    background-color: #f9f9f9;
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    color: #000;
    margin-bottom: 10px;
    line-height: 1;
}

.stat-label {
    font-size: 16px;
    font-weight: 500;
    color: #000;
    margin-bottom: 5px;
}

.stat-detail {
    font-size: 14px;
    color: #666;
    font-weight: normal;
}

/* Selector de período */
.period-selector {
    margin-bottom: 40px;
}

.period-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.period-buttons .btn {
    min-width: 120px;
    padding: 12px 20px;
}

/* Formulario de fechas personalizado */
.date-range-form {
    background-color: #f9f9f9;
    border: 2px solid #000;
    padding: 20px;
    margin-top: 10px;
}

.date-inputs {
    display: flex;
    gap: 20px;
    align-items: end;
    justify-content: center;
    flex-wrap: wrap;
}

.date-input-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.date-input-group label {
    font-weight: 500;
    font-size: 14px;
    color: #000;
}

.date-input-group input[type="date"] {
    padding: 8px 12px;
    border: 2px solid #000;
    font-size: 14px;
    background-color: #fff;
    color: #000;
    min-width: 150px;
}

.date-input-group input[type="date"]:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px #000;
}

/* Estadísticas dinámicas */
.stats-dynamic {
    margin-bottom: 40px;
}

/* Secciones de estadísticas */
.stats-section {
    margin-bottom: 30px;
    border: 2px solid #000;
    padding: 20px;
    background-color: #fff;
}

.stats-section h4 {
    margin-bottom: 20px;
    font-size: 18px;
    color: #000;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

/* Grids específicos para diferentes layouts */
.stats-grid-1 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
}

.stats-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.stats-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.stats-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

/* Tarjetas específicas para turnos y retoques */
.stat-card-turnos {
    border-left: 4px solid #6b7f70;
}

.stat-card-turnos:hover {
    background-color: #f0f8f0;
}

.stat-card-retoques {
    border-left: 4px solid #FFC107;
}

.stat-card-retoques:hover {
    background-color: #fffbf0;
}

/* Acciones del admin */
.admin-actions {
    margin-top: 50px;
    text-align: center;
}

/* Configuración del sistema */
.config-section {
    margin-bottom: 40px;
}

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

.config-card {
    border: 2px solid #000;
    padding: 20px;
    background-color: #fff;
}

.config-card h3 {
    margin-bottom: 20px;
    font-size: 18px;
    border-bottom: 1px solid #000;
    padding-bottom: 10px;
}

.day-config {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
}

.day-label {
    font-weight: 500;
    font-size: 14px;
}

.time-input {
    padding: 8px;
    border: 1px solid #000;
    font-size: 14px;
    text-align: center;
}

.config-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #000;
    font-size: 16px;
    margin-bottom: 10px;
}

.config-input:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px #000;
}

.config-help {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

/* Responsive para admin */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .stats-grid-2 {
        grid-template-columns: 1fr;
    }
    
    .stats-section {
        padding: 15px;
    }
    
    .stats-section h4 {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .stat-label {
        font-size: 14px;
    }
    
    .period-buttons {
        justify-content: center;
    }
    
    .period-buttons .btn {
        min-width: 100px;
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .config-grid {
        grid-template-columns: 1fr;
    }
    
    .day-config {
        grid-template-columns: 1fr;
        gap: 5px;
        text-align: center;
    }
    
    .day-label {
        font-weight: bold;
        margin-bottom: 5px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .period-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .period-buttons .btn {
        width: 100%;
        max-width: 200px;
    }
    
    .date-inputs {
        flex-direction: column;
        align-items: center;
    }
    
    .date-input-group {
        width: 100%;
        max-width: 200px;
        text-align: center;
    }
    
    .date-input-group input[type="date"] {
        width: 100%;
    }
}

/* Estilos para badges de estado de turnos - Solo texto coloreado */
.estado-badge {
    display: inline-block;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: none;
    border: none;
    color: #000;
}

.estado-en-espera {
    color: #505191;
}

.estado-pagado {
    color: #6b7f70;
}

/* Estilos para badges de retoques */
.estado-retoque {
    color: #FFC107;
    font-weight: bold;
}

.estado-retoque-pasado {
    color: #FF8F00;
    font-weight: bold;
}

/* Estilos para badges de estado de señado */
.estado-senado-si {
    color: #28a745;
}

.estado-senado-no {
    color: #dc3545;
}

.estado-no-aplica {
    color: #6c757d;
}

/* Estilo para slots señados */
.horario-slot.senado {
    background-color: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.horario-slot.senado:hover {
    background-color: #c3e6cb;
}

/* Estilos para botón de cambio de estado en el modal */
.btn#btnCambiarEstado {
    transition: all 0.3s ease;
}

.btn#btnCambiarEstado:hover:not(:disabled) {
    background-color: #fff !important;
    color: #000 !important;
}

.btn#btnCambiarEstado:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Nueva clase para turnos pagados (color verde personalizado) */
.occupied-own-paid {
    background-color: #6b7f70;
    color: #fff;
    border: 1px solid #6b7f70;
    cursor: pointer;
}

.occupied-own-paid:hover {
    background-color: #5a6b5e;
    border-color: #4a5a4e;
}

/* Estilos para checkboxes personalizados */
.checkbox-container {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 16px;
    user-select: none;
    line-height: 1.5;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 2px;
    left: 0;
    height: 22px;
    width: 22px;
    background-color: #fff;
    border: 2px solid #000;
    transition: all 0.2s ease;
}

.checkbox-container:hover input ~ .checkmark {
    background-color: #f5f5f5;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: #000;
    border-color: #000;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 6px;
    top: 2px;
    width: 6px;
    height: 12px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Estilos para bloqueos de dueños */
.bloqueo-duenos {
    background-color: #9c27b0;
    color: #fff;
    border: 1px solid #9c27b0;
    cursor: not-allowed;
    font-weight: bold;
    position: relative;
}

.bloqueo-duenos:before {
    content: "👑";
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 12px;
}

.bloqueo-duenos:hover {
    background-color: #8e24aa;
    border-color: #8e24aa;
}



/* ESTILOS PARA GESTIÓN DE USUARIOS */

/* Header con acciones */
.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

/* Estados vacíos */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    border: 2px solid #000;
    background-color: #f9f9f9;
}

.empty-state p {
    margin-bottom: 20px;
    font-size: 18px;
    color: #666;
}

/* Contenedores de formularios */
.form-container {
    background-color: #fff;
    border: 2px solid #000;
    padding: 30px;
    margin-bottom: 30px;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.form-help {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

.btn-primary {
    background-color: #007bff;
    color: #fff;
    border: 2px solid #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

/* Responsive para formularios */
@media (max-width: 768px) {
    .header-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .form-container {
        padding: 20px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}

/* ESTILOS PARA PÁGINA DE TURNO */

.turno-detalles {
    background-color: #fff;
    border: 2px solid #000;
    padding: 20px;
    margin-bottom: 30px;
}

.detalle-item {
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detalle-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.edit-icon {
    margin-left: 8px;
    cursor: pointer;
    color: #666;
    font-size: 14px;
    transition: color 0.2s ease;
    padding: 4px 8px;
    display: inline-block;
    border-radius: 4px;
}

.edit-icon:hover {
    color: #000;
    background-color: #f5f5f5;
}

.edit-icon:active {
    background-color: #e0e0e0;
}

.anotaciones-section {
    background-color: #fff;
    border: 2px solid #000;
    padding: 20px;
    margin-bottom: 30px;
}

.anotaciones-section .form-textarea {
    width: 100%;
    min-height: 150px;
    box-sizing: border-box;
    font-size: 16px;
}

.acciones-turno {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.acciones-turno .btn {
    min-width: 150px;
}

/* Responsive para página de turno */
@media (max-width: 768px) {
    .turno-detalles,
    .anotaciones-section {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .detalle-item {
        margin-bottom: 10px;
        padding: 6px 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .detalle-item .detalle-contenido {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .detalle-item .edit-icon {
        margin-left: 0;
    }
    
    .detalle-item .estado-badge {
        margin-left: 0;
    }
    
    .anotaciones-section .form-textarea {
        min-height: 120px;
    }
    
    .acciones-turno {
        flex-direction: column;
        align-items: stretch;
    }
    
    .acciones-turno .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
}

@media (max-width: 480px) {
    .turno-detalles,
    .anotaciones-section {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .detalle-item {
        font-size: 14px;
    }
    
    .edit-icon {
        font-size: 16px;
        padding: 6px 10px;
        margin-left: 4px;
    }
    
    .anotaciones-section .form-textarea {
        min-height: 100px;
        font-size: 18px;
    }
}

/* ESTILOS PARA TATUADORES POR TURNO */

/* Sección de turnos */
.turno-section {
    margin-bottom: 30px;
    padding: 20px;
    border: 2px solid #000;
    background-color: #fff;
}

.turno-section h5 {
    margin-bottom: 20px;
    font-size: 18px;
    color: #000;
    border-bottom: 1px solid #000;
    padding-bottom: 10px;
}

/* Lista de tatuadores en línea */
.tatuadores-lista {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Línea individual de tatuador */
.tatuador-linea {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border: 1px solid #000;
    background-color: #fff;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.tatuador-linea span {
    text-decoration: none;
}

.tatuador-linea:hover {
    background-color: #f9f9f9;
    transform: translateX(5px);
    color: inherit;
}

.tatuador-linea:focus {
    outline: 3px solid #000;
    outline-offset: 2px;
}

/* Elementos de la línea */
.tatuador-nombre {
    font-weight: bold;
    color: #000;
    font-size: 16px;
    min-width: 150px;
}

.tatuador-comision {
    font-weight: bold;
    color: #000;
    font-size: 16px;
    min-width: 100px;
    text-align: center;
}

.tatuador-horario {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-weight: bold;
    color: #000;
    font-size: 16px;
    min-width: 120px;
    text-align: center;
}

.tatuador-horario .hora-inicio,
.tatuador-horario .hora-fin {
    font-weight: bold;
    color: #000;
}

.tatuador-horario .separador {
    color: #666;
    font-weight: normal;
}

.tatuador-fecha {
    background-color: #000;
    color: #fff;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: bold;
    min-width: 50px;
    text-align: center;
}

/* Estado de la reserva */
.tatuador-estado {
    padding: 6px 12px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    min-width: 80px;
    text-align: center;
}

/* Estado específico para dueños - mismo ancho pero sin fondo */
.tatuador-estado-dueno {
    padding: 6px 12px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    min-width: 80px;
    text-align: center;
    background: transparent;
    border: none;
}

.estado-en_espera {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.estado-pagado {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.estado-cancelada {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Estado cuando no hay tatuadores */
.no-tatuadores {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-style: italic;
    border: 2px dashed #ccc;
    background-color: #f9f9f9;
}

.no-tatuadores p {
    margin: 0;
    font-size: 16px;
}

/* Responsive para tatuadores por turno */
@media (max-width: 768px) {
    .tatuador-linea {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 15px;
    }
    
    .tatuador-nombre,
    .tatuador-comision,
    .tatuador-horario,
    .tatuador-estado {
        min-width: auto;
        width: 100%;
    }
    
    .turno-section {
        padding: 15px;
    }
}
