.material-symbols-outlined {
    font-size: larger;
    vertical-align: text-bottom;
}

.material-symbols-outlined.filled {
  font-variation-settings:
  'FILL' 1,
  'wght' 400,
  'GRAD' 0,
  'opsz' 48
}

.alicia_logo {
  font-family: "Nunito", sans-serif;
  font-optical-sizing: auto;
  font-weight: 900;
  font-style: normal;
}

.alicia_logo.login {
    font-size: 10vw;
}

.categories_div {
    overflow: auto;
}

@media only screen and (max-width: 768px) {
    .alicia_logo.login {
        font-size: 25vw;
        text-align: center;
    } 

    .level-item .title{
        font-size: 7vw;
    }
    .list.has-overflow-ellipsis .list-item-content>* {
        white-space: unset;
    }
    .card-footer-item {
        flex-direction: column;
        font-size: x-small;
    }
    .card-footer-item.login {
        flex-direction: column;
        font-size:initial;
    }

    .card-header {
        flex-direction: column;
    }
    .card-header-title {
        margin-bottom: 0px !important;
        padding-bottom: 6px;
    }
    .card-header-icon {
        padding-top: 6px;
    }
    .schedule-item {
        flex-direction: column;
    }
    .schedule-item:first-child {
        font-weight: bolder;
    }
    .schedule-item>span:last-child {
        align-self: flex-end;
    }

    .card-footer-item span {
        display: inline;
        font-size: xx-large;
    }
    .is-header-tag .material-symbols-outlined    {
        display: inline;
        font-size: x-large;
    }
    .is-header-tag > * > .inside-header-tag {
        flex-direction: row;
        flex-wrap: wrap;
        display: flex;
    }
    .save-buttons-group {
        flex-wrap: wrap-reverse;
    }

    .chat-container {
        border-radius: 5px;
    }
}
.is-header-tag {
    text-align: center;
}
.is-header-tag > .inside-header-tag {
    flex-direction: column;
    display: flex;
    align-items: center;
}

.card-content .collapsible-content {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s ease;
}
.card-content .collapsible-content.expanded {
    -webkit-line-clamp: unset;
}
.ellipsis {
    cursor: pointer;
    color: #3273dc;
}

.search-wrapper {
    position: relative;
    box-shadow: 5px 2px 5px lightgray;
}
.clear-search {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    display: none;
}
[data-tab-content] {
    display: none;
  
    &:target {
      display: block;
    }

    &.is-active {
        display: block;
      }
  }

div#textHelp>ul{
    font-size: small;
}

.is-no-wrap {
    white-space: nowrap;
}

.tags.has-addons{
    flex-wrap: nowrap;
}
.toggle-password-icon {
    opacity: 60%;
}

/* Subscriptions */
.plan {
    min-height: 20rem;
  }
.cta {
min-height: 8rem;
}

/* Chat */
.chat-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.chat-messages {
    height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid #eee;
}
.message {
    margin: 10px 0;
    padding: 10px;
    border-radius: 5px;
}
.question {
    background-color: #e3f2fd;
    margin-left: 20%;
}
.answer {
    background-color: #f5f5f5;
    margin-right: 20%;
}
.input-container {
    display: flex;
    gap: 10px;
}
#id_q {
    flex: 1;
    padding: 8px;
}
#animated-input {
    flex: 1;
    padding: 8px;
}
button {
    padding: 8px 16px;
}
#chatFooter, #filterFooter {
    display: block;
    padding: 1rem;
}
#chatHeader, #filterHeader {
    padding: 1rem;
}
#alicia-still-processing-bar{
    height: 2px;
}
/* Filter style */
.filter-group, .sort-group {
    margin-bottom: 15px;
}

.filter-group h4, .sort-group h4 {
    margin-bottom: 10px;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    margin: 5px 0;
}

.checkbox-wrapper input[type="checkbox"] {
    margin-right: 10px;
}

.sort-button {
    margin: 5px;
    padding: 5px 10px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    cursor: pointer;
}

.sort-button.active {
    background-color: #4CAF50;
    color: white;
}

.range-slider-group {
    margin: 20px 0;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.range-container {
    align-content: space-evenly;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.range-value {
    min-width: 80px;
    font-size: 0.9em;
    color: #666;
}

.range-slider {
    flex: 1;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
}

.range-slider::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #4A90E2;
    border-radius: 50%;
    cursor: pointer;
}

.range-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #4A90E2;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.slider-row {
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
    width: 100%;
}

.slider-label {
    font-weight: bolder;
}

.selectable-div.selected{
    background-color: gray;
    filter: blur(1px);
}

#filter-bar {
    position: sticky;
    top: 3.25rem;
    z-index: 29;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background-color: white;
    box-shadow: 0 2px 8px rgba(10, 10, 10, 0.1);
    border-radius: 0.5rem;
}

.navbar-item.is-active{
    background-color: hsl(0, 0%, 71%);
    color: hsl(0, 0%, 21%);
    border: 1px solid white;
    border-radius: 5px;
}

/* Calendar Style */
.calendar.subtitle{
    margin-top: 0.5rem;
    border-bottom: 1px solid;
}
.calendar.event-time{
    padding-left: 1rem;
    margin-left: 1rem;
    border-left: 1px solid lightblue;
    margin-bottom: 0.5rem;
}

.choices[data-type*=select-one]::after {
    content: none !important;
}

.suggestions-tree {
    border-top: gray dashed 1px;
}

/* Filtros avanzados sticky */
#advanced-filters {
    position: sticky;
    top: 7rem; /* Debajo del filter-bar (3.25rem navbar + 3.5rem filter-bar aprox) */
    z-index: 27; /* Debajo de filter-bar (29) */
    background-color: white;
    box-shadow: var(--bulma-shadow);
    border-radius: 0.5rem;
    transition: box-shadow 0.2s ease;
    margin-top: 0.5rem;
}

#advanced-filters:hover {
    box-shadow: 0 0.5em 1em -0.125em rgba(10, 10, 10, 0.15);
}

/* Estilos para los tags de filtros activos */
#advanced-filters .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

#advanced-filters .tag {
    margin: 0;
}

/* Ajustar tamaño de botones de rango sugerido */
#advanced-filters .buttons.are-small {
    display: flex;
    gap: 0.25rem;
}

#advanced-filters .buttons.are-small .button {
    font-size: 0.65rem;
    padding: 0.25rem 0.5rem;
}

/* Responsive: en móvil, no sticky para ahorrar espacio */
@media screen and (max-width: 768px) {
    #filter-bar {
        position: relative;
        top: 0;
        margin-top: 0.5rem;
    }

    #advanced-filters {
        position: relative;
        top: 0;
        margin-top: 1rem;
    }

    /* Stackear filtros verticalmente en móvil */
    #advanced-filters .column {
        padding: 0.25rem;
    }
}

/* Barra Lateral de Filtros (Offcanvas) */
.filters-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.15);
    z-index: 999;
    transition: right 0.3s ease-in-out;
    overflow-y: auto;
}

.filters-sidebar.is-active {
    right: 0;
}

.filters-sidebar-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.filters-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 2px solid hsl(0, 0%, 86%);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: hsl(0, 0%, 21%);
}

.filters-sidebar-header .title {
    color: hsl(0, 0%, 21%);
    margin: 0;
}

.filters-sidebar-header .delete {
    background: rgba(0, 0, 0, 0.1);
}

.filters-sidebar-header .delete:hover {
    background: rgba(0, 0, 0, 0.2);
}

.filters-sidebar-body {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

.filters-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.filters-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

/* Botón flotante de filtros */
#toggle-filters-btn {
    position: relative;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

#toggle-filters-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* Ocultar flecha de Choices.js en sidebar */
#filters-sidebar .choices[data-type*=select-one]::after,
#filters-sidebar .choices[data-type*=select-multiple]::after {
    content: none !important;
}

/* Ajustar espacio para evitar solapamiento en Choices.js */
#filters-sidebar .choices__inner {
    min-height: 44px;
    padding: 7.5px 10px 7.5px 10px;
}

#filters-sidebar .choices__list--single {
    padding: 4px 16px 4px 4px;
}

#filters-sidebar .field {
    margin-bottom: 2rem;
}

/* Badge de filtros activos */
#filter-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff3860;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Responsive: Barra lateral más estrecha en móvil */
@media screen and (max-width: 768px) {
    .filters-sidebar {
        width: 90%;
        right: -90%;
    }

    #toggle-filters-btn {
        right: 1rem;
        bottom: 1rem;
        width: 56px;
        height: 56px;
    }

    #toggle-filters-btn .material-symbols-outlined {
        font-size: 1.75rem !important;
    }

    #filter-badge {
        width: 20px;
        height: 20px;
        font-size: 0.65rem;
    }
}