/* Estilos para el formulario de citas */
.input-group.ctn-date.col-12 {
    display: block !important;
    width: 100% !important;
    padding: 0;
}

.input-group.ctn-date.col-12 .form-control {
    height: 45px;
    font-size: 16px;
    border-radius: 8px;
    border: 2px solid #C7C6C6;
    padding-right: 45px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #FFF;
    width: 100%;
}

.input-group.ctn-date.col-12 .form-control:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15);
    outline: none;
}

.input-group.ctn-date.col-12 .input-group-addon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: transparent;
    border: none;
    padding: 0;
    color: #666;
    cursor: pointer;
}

.input-group.ctn-date.col-12 .input-group-addon:hover {
    color: #4CAF50;
}

.input-group.ctn-date.col-12 .glyphicon {
    font-size: 18px;
}

.ctn-date .datetime-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    cursor: pointer;
    color: #666;
    font-size: 20px;
    padding: 5px;
    transition: color 0.3s ease;
}

.ctn-date .datetime-btn:hover {
    color: #4CAF50;
}

.ctn-date .icon-calendar {
    font-size: 18px;
}

#fechainicio, #horainicio {
    height: 45px;
    font-size: 16px;
}

#fechainicio:focus, #horainicio:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15);
}

.select2-container--default .select2-selection--single {
    height: 45px;
    border-radius: 8px;
    border: 2px solid #ddd;
}

#cita-formulario .select2-container--default .select2-selection--single {
    height: 45px;
    border-radius: 8px;
    border: 2px solid #ddd;
    background-color: #fff;
}

.select2-container--default .select2-selection--single:focus,
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15);
}

#cita-formulario .select2-container--default .select2-selection--single:focus,
#cita-formulario .select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 43px;
    font-size: 16px;
}

#cita-formulario .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 43px;
    font-size: 16px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 43px;
}

#cita-formulario .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 43px;
}

/* Estilos para el dropdown del datetimepicker */
.bootstrap-datetimepicker-widget {
    font-size: 14px;
}

.bootstrap-datetimepicker-widget table td.day {
    height: 35px;
    width: 35px;
}

.bootstrap-datetimepicker-widget table td.day:hover {
    background-color: #e8f5e9;
    border-radius: 50%;
}

.bootstrap-datetimepicker-widget table td.active {
    background-color: #4CAF50 !important;
    border-radius: 50%;
}

.bootstrap-datetimepicker-widget table td.disabled {
    color: #ccc;
    text-decoration: line-through;
}

.bootstrap-datetimepicker-widget .picker-switch {
    font-size: 16px;
}

.bootstrap-datetimepicker-widget .timepicker-picker table td a span {
    font-size: 18px;
}

/* Animación suave para el datepicker */
.bootstrap-datetimepicker-widget.dropdown-menu {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 10px;
}

.bootstrap-datetimepicker-widget table thead tr:first-child th {
    border-radius: 8px 8px 0 0;
}

.bootstrap-datetimepicker-widget table tbody tr:last-child td {
    border-radius: 0 0 8px 8px;
}

/* ============================================================
   Demarcación visual de disponibilidad en el calendario de citas
   Verde  = día con agenda disponible para seleccionar
   Rojo   = día dentro del rango SIN disponibilidad (bloqueado)
   Gris   = fuera del rango permitido (estilo por defecto del widget)
   ============================================================ */

/* --- Días DISPONIBLES ---------------------------------------- */
.bootstrap-datetimepicker-widget table td.day.dia-disponible {
    background-color: #c8e6c9;
    color: #1b5e20;
    font-weight: 700;
    border-radius: 50%;
    position: relative;
}

.bootstrap-datetimepicker-widget table td.day.dia-disponible:hover {
    background-color: #4CAF50 !important;
    color: #fff !important;
    border-radius: 50%;
}

.bootstrap-datetimepicker-widget table td.day.dia-disponible.active,
.bootstrap-datetimepicker-widget table td.day.dia-disponible.active:hover {
    background-color: #2e7d32 !important;
    color: #fff !important;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.3);
    border-radius: 50%;
}

/* Indicador de hoy sobre día disponible */
.bootstrap-datetimepicker-widget table td.day.dia-disponible.today::before {
    border-bottom-color: #1b5e20;
}

/* --- Días NO DISPONIBLES (bloqueados, dentro del rango) ------- */
.bootstrap-datetimepicker-widget table td.day.dia-no-disponible {
    background-color: #ffcdd2 !important;
    color: #c62828 !important;
    text-decoration: line-through;
    border-radius: 50%;
    cursor: not-allowed !important;
    opacity: 0.75;
}

.bootstrap-datetimepicker-widget table td.day.dia-no-disponible:hover {
    background-color: #ef9a9a !important;
    color: #b71c1c !important;
}

/* --- Leyenda -------------------------------------------------- */
.leyenda-disponibilidad {
    display: flex;
    justify-content: center;
    gap: 18px;
    padding: 8px 10px 6px;
    border-top: 1px solid #e0e0e0;
    margin-top: 4px;
    font-size: 12px;
    color: #555;
    background: #fff;
    border-radius: 0 0 10px 10px;
}

.leyenda-item {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.leyenda-punto {
    display: inline-block;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    flex-shrink: 0;
}

.leyenda-punto--disponible {
    background-color: #4CAF50;
}

.leyenda-punto--no-disponible {
    background-color: #ef9a9a;
    text-decoration: line-through;
}

