@font-face {
    font-family: 'Inter';
    src: url('../../resource/fonts/Inter.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}


/* Estilos de dashbord usuarios */

.btn-dash {
    width: 90%;
    height: 40px;
    border: 1px solid #9B8776;
    background: transparent;
    border-radius: 7px;
    outline: none;
    color: #9B8776;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-dash:hover {
    background: rgba(155, 135, 118, 0.1);
    color: #7a6a5d;
}

.styleTitle {
    color:#515151;
    font-family: 'Inter';
    text-align: center;
    margin-bottom: 4vh;
    margin-top: 2vh;
}

.titleRes{
    font-family: 'Inter';
    text-align: center;
    font-size: 1.2rem;
}

.pTok{
    font-family: 'Inter';
    font-size: 1rem;
    padding: 2%;
}
/* Estilos base */
.calendar-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.calendar-table th,
.calendar-table td {
    border: 1px solid #9B8776;
    padding: 12px;
    height: 120px;
    vertical-align: top;
    transition: all 0.3s ease;
    position: relative;
}

.calendar-table th {
    background-color: #F9EFEA;
    color: #9B8776;
    text-align: center;
    font-family: 'PlayfairDisplay';
    text-emphasis-style: circle;
    font-weight: 500;
    letter-spacing: 0.5px;
    border-color: #9B8776;
    font-size: 1.3rem;
    line-height: 2;
    height: 50px;
}

/* Estilo para el día actual */
.calendar-table td.current-day {
    background-color: #e8f4ff;
    border: 2px solid #70b062;
}

.calendar-table td.current-day .day-number {
    background-color: #9B8776;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.day-number {
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
    font-size: 1.1em;
    margin-left: 1vh;
}

.time-slot {
    background-color: #F9EFEA;
    border: 1px solid #968f8b;
    border-radius: 6px;
    padding: 8px;
    margin-bottom: 8px;
    font-size: 0.9em;
    transition: transform 0.2s;
}

.time-slot:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.time-slot p {
    margin: 0;
    color:  #b0a7a2;
}


/* Estilos mejorados para el título del calendario */
.calendar-title {
    text-align: center;
    font-size: 1.8em;
    margin: 20px 0;
    color: #9B8776;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 10px;
    border-bottom: 2px solid #9B8776;
}

/* Estilos mejorados para la navegación */
.calendar-navigation {
    display: flex;
    justify-content: center;
    margin: 25px 0;
    gap: 33vh;
    align-items: center;
    margin-bottom: 7vh;
}

.calendar-navigation a {
    padding: 10px 20px;
    border-radius: 20px;
    /* Bordes más redondeados */
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    flex: 1;
    max-width: 200px;
}

.calendar-navigation a.btn-primary {
    background-color: #9B8776;
    /* Nuevo color */
    color: white;
    border: 1px solid #9B8776;
}

.calendar-navigation a.btn-primary:hover {
    background-color: #8a7665;
    border-color: #8a7665;
}

.calendar-navigation a.btn {
    background-color: #9B8776;
    color: #ffffff;
    border: 1px solid #1b1713;
}

.calendar-navigation a.btn:hover {
    background-color: #ffffff;
    color: #7b6b5d;
}

/* Media queries para diseño responsivo */
@media screen and (max-width: 992px) {

    .calendar-table th,
    .calendar-table td {
        padding: 8px;
        height: 100px;
    }

    .time-slot {
        padding: 6px;
        font-size: 0.85em;
    }

    .day-number {
        font-size: 1em;
    }

    .calendar-title {
        font-size: 1.6em;
    }

    /* Ajuste para tablets: gap reducido */
    .calendar-navigation {
        gap: 20px;
        margin-bottom: 4vh;
    }
}

@media screen and (max-width: 768px) {

    /* Transformación a lista vertical en móviles */
    .calendar-table {
        border: none;
        box-shadow: none;
    }

    .calendar-table thead {
        display: none;
    }

    .calendar-table tr {
        display: flex;
        flex-direction: column;
        margin-bottom: 25px;
        border: 1px solid #e0e0e0;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    }

    .calendar-table td {
        display: block;
        width: 100% !important;
        height: auto !important;
        padding: 15px 15px 15px 45%;
        position: relative;
        min-height: 70px;
        border: none;
        border-bottom: 1px solid #e0e0e0;
    }

    /* Estilo para día actual en móvil */
    .calendar-table td.current-day {
        background-color: #e8f4ff;
        border-left: 4px solid #9B8776;
    }

    .calendar-table td.current-day:before {
        font-weight: bold;
        color: #9B8776;
    }

    .calendar-table td:last-child {
        border-bottom: none;
    }

    .calendar-table td:before {
        content: attr(data-day);
        font-weight: normal;
        color: #555;
        font-size: 1.1em;
    }

    .calendar-table td.empty {
        display: none;
    }

    .day-number {
        display: none;
    }

    .time-slot {
        margin: 10px 0 0 0;
        background-color: #F9EFEA;
        border: 1px solid #908c8a;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    }

    /* Navegación optimizada para móviles */
    .calendar-navigation {
        gap: 12px;
        flex-wrap: wrap;
        margin-bottom: 3vh;
    }

    .calendar-navigation a {
        flex: 1 1 45%;
        margin: 5px;
        text-align: center;
        padding: 10px;
    }

    .calendar-title {
        font-size: 1.4em;
        margin: 15px 0;
    }
}

@media screen and (max-width: 576px) {
    .calendar-table td {
        padding-left: 50%;
    }

    .calendar-table td:before {
        width: 45%;
        font-size: 1em;
    }

    .time-slot {
        padding: 10px;
    }

    /* Navegación en móviles pequeños (una columna) */
    .calendar-navigation {
        gap: 8px;
        flex-direction: column;
    }

    .calendar-navigation a {
        flex: 1 1 100%;
        margin: 3px 0;
    }

    .calendar-title {
        font-size: 1.3em;
    }
}

/* Efectos adicionales para mejor UX */
@media (hover: hover) {
    .time-slot:hover {
        background-color: #F9EFEA;
    }

    .calendar-table td:hover {
        background-color: #f8f8f8;
    }
}

/* Mejora para tablets en orientación vertical */
@media screen and (max-width: 820px) and (orientation: portrait) {

    .calendar-table th,
    .calendar-table td {
        height: 80px;
        padding: 6px;
    }

    .time-slot {
        font-size: 0.8em;
        padding: 4px;
    }
}

.dashboard-button {
    display: inline-flex;
    align-items: center;
    width: 5vh;
    gap: 6px;
    padding: 10px 20px;
    border: 2px solid #7b6b5d;
    color: #7b6b5d;
    background-color: transparent;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-top: 2vh;
    margin-left: 1vh;
}

.dashboard-button:hover {
    background-color: #7b6b5d;
    color: white;
}

.dashboard-button svg {
    transition: transform 0.3s ease;
}

.dashboard-button:hover svg {
    transform: translateX(-4px);
}

/* CSS de los horarios disponobles al reservar*/

.schedule-selection {
    font-family: 'Inter';
    max-width: 185vh;
    margin: 30px 18px;
    padding: 25px;
    background: #ffffff;
    border-radius: 12px;
    color: white;
    border: 2px solid #7b6b5d;
}


.days-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #444;
    padding-bottom: 15px;
}

.tab-button {
    background: transparent;
    border: 2px solid #9b8776;
    color: #646464;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    margin-right: 8px;
    margin-bottom: 8px;
}

.tab-button:hover {
    background: rgba(155, 135, 118, 0.2);
    transform: translateY(-2px);
}

.tab-button.active {
    background: #9b8776;
    color: white;
    font-weight: 500;
}

.day-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.day-content.active {
    display: block;
}

.slots-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    color: #735e5e;
}

.slots-table th {
    background-color: #9b8776;
    padding: 12px;
    text-align: left;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.slots-table td {
    padding: 12px;
    border-bottom: 1px solid #444;
}

.slots-table tr:hover td {
    background-color: rgba(155, 135, 118, 0.1);
}

.btn {
    background: transparent;
    border: 2px solid #9b8776;
    color: #7b6c61;
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn:hover {
   
    transform: translateY(-1px);
}

.btn-primary {
    background: transparent;
    border-color: #9b8776;
}

.btn-primary:hover {
    background: rgba(155, 135, 118, 0.4);
}

/* Estilo para cuando no hay horarios */
.schedule-selection > p {
    text-align: center;
    color: #ccc;
    font-size: 16px;
    padding: 20px;
}

/* Animación para el cambio de pestañas */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Estilo para los cupos disponibles */
.slots-table td:nth-child(3) {
    font-weight: 500;
    color: #9b8776;
}

/* Estilo responsivo */
@media (max-width: 768px) {
    .days-tabs {
        flex-direction: column;
    }
    
    .tab-button {
        width: 100%;
        margin-right: 0;
    }
    
    .slots-table {
        display: block;
        overflow-x: auto;
    }
}


/* Tabla responsiva */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
}

/* Estilos para la tabla */
.reservations-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* Ancho mínimo para buena visualización */
}

.reservations-table th, 
.reservations-table td {
    padding: 12px 8px;
    border-bottom: 1px solid #9B8776;
    text-align: left;
}

.reservations-table th {
    background-color: #9B8776;
    font-weight: 600;
}

.btn-cancel {
    display: inline-block;
    padding: 6px 12px;
    background-color: #dc3545;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-cancel:hover {
    background-color: #c82333;
}

.btn-cancel:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

/* Estilos para el contador */
.countdown-text {
    display: block;
    font-size: 0.8em;
    color: #666;
    margin-top: 5px;
}

.countdown-timer {
    color: #dc3545;
    font-weight: bold;
}

/* Estilos responsivos mejorados */
@media (max-width: 768px) {
    .reservations-table {
        font-size: 14px;
        width: 100%;
        display: block;
        overflow-x: auto;
    }
    
    .reservations-table th, 
    .reservations-table td {
        padding: 10px 8px;
        white-space: nowrap;
    }
    
    .btn-cancel {
        padding: 6px 10px;
        font-size: 13px;
        white-space: nowrap;
        margin: 2px 0;
    }
    

}

@media (max-width: 480px) {
    .reservations-table {
        font-size: 13px;
    }
    
    .reservations-table th, 
    .reservations-table td {
        padding: 8px 5px;
    }
    
    .btn-cancel {
        padding: 5px 8px;
        font-size: 12px;
        display: block;
        width: 100%;
    }
    
}