/* -- Manifest Page Styles -- */
mark {
    background: #ffe58f;
    padding: 0 .15em;
    border-radius: .2em;
}

.manifest_badge {
    display: flex;
    align-items: center;

    font-weight: lighter !important;
    border: 1px solid gray;
    border-radius: 1rem;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    overflow: hidden;
}

.manifest_badge_child {
    display: flex;
    flex-direction: column;
}

#manifest_user_wrapper {
    display: flex;
    align-items: center;
    padding: 4px;
    box-shadow: 0 2px 8px 0 rgba(37, 99, 235, 0.06);
    border-radius: 8px;
    width: auto;
}

.monthday {
    border-right: 1px solid gray;
    border-left: 1px solid gray;
}

.m {
    font-weight: lighter;
    padding: 0 0.25rem;
    font-size: 1rem;

}

.a,
.b {
    font-size: 0.65rem;
    padding: 0 10px;
}

.a {
    border-bottom: 1px solid gray;
    color: white;
}

.monthday .a {
    background-color: red;
}

.monthday .b {
    background-color: rgba(255, 0, 0, 0.12);
}

.weekday .a {
    background-color: blue;
}

.weekday .b {
    background-color: rgba(0, 0, 255, 0.12);
}



/* ---- Tabs Section Styles ---- */


#icons_container {
    width: 4rem;
    background-color: #ffffff;
    border-right: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    height: calc(100dvh - 268px);
    position: relative;
    min-height: 0;
    overflow: hidden;

}

#top_tabs {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 1 auto;
    width: 100%;
    gap: 20px;
    overflow: hidden;
}

#bottom_tabs {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;

    background-color: rgb(238, 238, 238);
    overflow: hidden;
}

#icons_container i {

    width: 100%;
    height: 50px;
    font-size: 24px;
    text-align: center;
    cursor: pointer;
    color: #555;
    transition: color 0.3s;
    padding-right: 2px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    transition: transform 0.2s ease, color 0.3s, background-color 0.2s;
    transform: scale(1);
}


#icons_container i:hover {
    color: #2563eb;
    transform: scale(1.2);
}

.icon_arrow {
    font-size: 0.7rem;
    color: #2563eb;
    position: absolute;
    right: 0.7rem;
    bottom: -0.85rem;
}

.choosedTab {

    color: #2563eb !important;
    transform: scale(1.25) !important;
    /* border: 1px solid black;
            border-right: none; */
}

.tab {
    font-size: 1.4rem !important;
}


/* ---- History Section Styles ---- */

.tab_section,
.tab_profile {
    background: #fafdff;

    box-shadow: 0 2px 12px 0 rgba(37, 99, 235, 0.06);
    padding: 15px 10px;

}

.manifest-history-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 5rem;
}

.manifest-history-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px 0 rgba(37, 99, 235, 0.04);
    padding: 10px;
    font-size: 1rem;
    color: #222;
    border-left: 4px solid #2563eb;
    transition: box-shadow 0.18s;
}

.manifest-history-item:hover {
    box-shadow: 0 4px 16px 0 rgba(37, 99, 235, 0.10);
    background: #f0f6ff;
}


.empty-history {
    color: #888;
    font-size: 1.1rem;
    text-align: center;
    margin: 32px 0 16px 0;
}

/* Header tabs styling */
.header-tabs {
    display: inline-flex;
    gap: 18px;
    margin-left: 24px;
    vertical-align: middle;
}

.header-tabs i {

    color: #555;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    transition: background 0.18s, color 0.18s, transform 0.18s;
}

.header-tabs i:hover,
.header-tabs i.active {
    background: #f0f4fa;
    color: #2563eb;
    transform: scale(1.15);
}

.user-select {
    background: none;
    border: none;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    position: relative;

    padding: 5px !important;
}

.user-select:hover {
    background: none;
    color: #2563eb;
    box-shadow: none;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 45px;
    left: 8.5rem;
    transform: translateX(-50%);
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    min-width: 160px;
    z-index: 1000;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.2s;
    text-align: left;
}

.dropdown-item:hover {
    background-color: #f0f0f0;
}

.main {
    display: flex;
    height: 100vh;
}

#dynamic_section {
    flex: 1;
    overflow-y: auto;
    background-color: #f5f5f5;
    width: 100%;
    min-height: 0;
}


.flex-dynamic-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

#saveProfileBtn {
    margin: 10px 0;
}

.manifest_error {
    color: red;
    font-size: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid red;
    text-align: center;
    width: 7rem;
    border-radius: 1rem;
    border-top-left-radius: 0;
}

#user_selected {
    font-size: 1rem;
    font-weight: 600;
    margin-left: 1rem;
}

/* Audio Row Styles for Audio Tab */
#audioInfo {

    width: auto;
    flex: 1;
    padding: 0.1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.audio-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.audio-voice-text {
    min-width: 0;
    width: 95%;
    resize: none;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    padding: 0.5rem;

    font-size: 0.8rem;
    background: #fff;
    margin: 1rem auto;
    min-height: 1.1rem;
}

.audio-search-results {
    background: #ecf0f5;
    border-radius: 8px;
    box-shadow: 0 2px 8px 0 rgba(37, 99, 235, 0.06);
    margin-top: 0.5rem;
    z-index: 10;
    min-width: 200px;
    padding: 10px;
}

.voice-option {

    padding: 10px;
    cursor: pointer;
    margin-bottom: 0.5rem;
    border: 2px solid lightgray;
    border-radius: 1rem;
    display: flex;
    gap: 8px;
    align-items: center;
}

.voice-to-select {
    width: 85%
}


.radial_progress_bar {

    --size: 2.5rem;
    --progress: 0;


    width: var(--size);
    height: var(--size);

    border-radius: 50%;
    background: conic-gradient(#3b82f6 calc(var(--progress) * 1%), rgb(208, 208, 208) 0);


    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
}

.dropdown {
    display: flex;
    flex-direction: column;
    align-items: top;
    background-color: rgb(240, 240, 240);
    padding: 1rem 0;
    gap: 8px;
}

.prompt-option {
    padding: 10px;
    cursor: pointer;
    margin: 10px;
    border: 2px solid lightgray;
    border-radius: 2rem
}

.icon-button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2rem;
    width: 3rem;
    font-size: 1rem;
    margin: 0;
}

#search_bar_container {
    display: flex;
    align-items: center;
    margin: 1rem 0 1rem 0;
    justify-content: center;
}

.search-bar {
    width: 80% !important;
    margin: 0 !important;
}

#audio_search_bar_button {
    margin-left: 0.5rem;
    height: 3rem;
}

.search-bar {
    flex: 1;
}

.element_loading {
    /* Opcional: Oculta el contenido existente o lo hace semitransparente */
    opacity: 0.6;
    /* Hace el elemento un poco transparente */
    pointer-events: none;
    /* Deshabilita clics mientras carga */

    /* La animación de carga (el pulso) */
    animation: pulse-loading .5s infinite alternate;
    /* Nombre, duración, repetición y dirección */
}

/* Define la animación de pulso */
@keyframes pulse-loading {
    from {
        transform: scale(1);
        /* Tamaño normal */
        box-shadow: 0 0 0px rgba(0, 0, 0, 0);
        /* Sin sombra */
    }

    to {
        transform: scale(1.5);
        /* Ligeramente más grande */
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
        /* Sombra sutil */
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading_spinner i {
    font-size: 2rem;
    margin: 0.5rem 0;
}

.loading_spinner {
    width: 100%;
    height: 3rem;
    font-size: 1rem;

    margin: auto auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Animación de giro */
}
#manifest_favorite_button {
    font-size: 1.5rem;
    margin: 0 1rem;
}