#addTaskPopup{
    width: 80vh;
    height: 80vh;
}

.popup-content{
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8px;
}

.is-sticky{
    position: sticky;
    top:0;
    z-index: 10;
    border-bottom: 1px solid #eee;
}
.modal-header, .modal-footer {
    padding: 16px;
    flex-shrink: 0; 
}

.modal-body{
    overflow-y: auto;
}

.grid-toolbar .btn, .grid-toolbar .form-control {
    /* Hacemos que todos los elementos tengan la misma altura de línea y padding vertical */
    padding-top: .375rem;
    padding-bottom: .375rem;
    font-size: .875rem; /* 14px */
}

.data-grid-container{
    border: 1pxx solid #dee2e6;
    border-radius: .375rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);;
}
.grid-toolbar{
    padding: .5rem .75rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}
#deleteConfirmGroup {
    position: absolute;
}
.action-group{
    display: flex;
    align-items: center;
    gap: .5rem;
}
#deleteConfirmInput {
    width: 260px; /* Ancho del campo de texto */
}

.btn-hover:hover {
    color: #77ceef !important;
    border-color:#77ceef !important;
}
.btn-red-hover:hover {
    color: #ff6b6b !important;
    border-color:#ff6b6b !important;
}

.month-btn.active, .day-btn.active, .year-btn.active, .default-btn.active{
    background-color: #77ceef;
    color: white;
    font-weight: bold;
}
.month-btn.active:hover , .day-btn.active:hover, .year-btn.active:hover, .default-btn.active:hover{
    background-color: #6CBBD9 !important;
    border-color:#6CBBD9 !important;
    color: white !important;
}

.fade-transition {
    transition: opacity 0.15s ease-in-out, 
    visibility 0.15s ease-in-out;
}

.is-hidden {
    opacity: 0;
    visibility: hidden;
}



/* Estilos que aplican al contenedor de selector de tiempo */

.time-patter-container{
    display: flex;
    align-items: center;
    gap: 15px;
}

.day-selector{
    display: flex;
    gap: 10px; /* Espacio entre cada botón*/
}

.day-btn{
    width: 35px;
    height: 35px;
    border: 1px solid #dee2e6;
    background-color: white;
    border-radius: 50%;
}

.year-btn {
    width: 110px;
    height: 35px;
    border: 1px solid #dee2e6;
    background-color: white;
    border-radius: .375rem;
}

.default-btn{
    width: 180px;
    height: 35px;
    border: 1px solid #dee2e6;
    background-color: white;
    border-radius: .375rem;
    gap: 8px;
}

.time-input {
    max-width: 120px;
}


.container-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    padding: 8px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}


.days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
    padding: 16px;
    border: 1px solid #eee;
    border-radius: 8px;
    width: 420px /* Hacemos que la rejilla ocupe el ancho del contenedor */
}

.months-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 16px;
    border: 1px solid #eee;
    border-radius: 8px;
    width: 420px /* Hacemos que la rejilla ocupe el ancho del contenedor */
}

.selector-title {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 500;
    color: #4A5568;
    margin-bottom: 20px;
}

.month-btn{
    width: 35px;
    height: 35px;
    border: 1px solid #dee2e6;
    background-color: white;
    border-radius: 50%;
}

/* Contenedor para alinear elementos */
.toggle-container {
    display: flex;
    align-items: center;
    gap: 10px; /* Espacio entre texto y botón */
    font-family: sans-serif;
}

/* Estilos del botón (el fondo) */
.toggle-btn {
    position: relative;
    display: inline-block;
    width: 50px;  /* Ancho reducido */
    height: 28px;  /* Altura reducida (menor a 35px) */
    background-color: #ccc;
    border-radius: 28px;
    cursor: pointer;
    transition: background-color 0.4s;
}

/* El círculo que se mueve */
.toggle-btn::before {
    content: '';
    position: absolute;
    height: 22px; 
    width: 22px;  
    left: 3px;    
    bottom: 3px;  
    background-color: white;
    border-radius: 50%;
    transition: transform 0.4s;
}

/* --- ESTADO ACTIVO --- */

.toggle-btn:hover{
    background-color: #B6B6B6
}
.toggle-btn.active {
    background-color: #77ceef ; /* Color de fondo azul cuando está activo */
}
.toggle-btn.active:hover{
    background-color: #6CBBD9 ; /* Color de fondo azul cuando está activo */
}

.toggle-btn.active::before {
    transform: translateX(22px); /* Mueve el círculo a la derecha */
}

select.form-select {
    border: 1px solid #ccc; /* Un borde gris estándar */
    padding: 8px 12px;
    border-radius: 5px;
    background-color: white;
    cursor: pointer;
}
select.form-select:focus {
    outline: none; /* Quita el borde azul por defecto */
    border-color: #77ceef; /* Cambia el color del borde principal a tu azul */
    box-shadow: 0 0 0 3px rgba(119, 206, 239, 0.4); /* Añade un resplandor suave */
}
select.form-select option:hover {
    background-color: #77ceef !important;
    color: white !important; /* Cambia el color del texto para que sea legible */
}

/* --- Contenedor Principal --- */
.custom-select-container {
    position: relative; /* Clave para posicionar la lista de opciones */
    font-family: sans-serif;
}

/* --- Caja que muestra la selección --- */
.select-selected {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.select-selected:hover {
    border-color: #999;
}

/* --- Flecha del dropdown --- */
.select-arrow {
    width: 0;
    height: 0;
    margin-left: 15px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #555;
    transition: transform 0.3s ease;
}

/* Gira la flecha cuando el dropdown está activo */
.select-selected.active .select-arrow {
    transform: rotate(180deg);
}

/* --- Lista de Opciones --- */
.select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 5px;
    padding: 0;
    list-style: none;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 10;
    overflow: hidden;

    /* La ocultamos por defecto y la mostraremos con JS */
    display: none;
}

/* Clase que añadiremos con JS para mostrar las opciones */
.select-options.show {
    display: block;
}

/* --- Cada Opción (li) --- */
.select-options li {
    padding: 12px 15px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

/* --- ¡AQUÍ ESTÁ TU ESTILO PERSONALIZADO! --- */
.select-options li:hover {
    background-color: #77ceef; /* Tu color azul para el hover */
    color: white;
}