.divider-element {
    height: 3px;
    width: 100%;
    background-color: #D5D5D5;
    margin: 10px 0;
}

.parameter-choice-item > div {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 1rem;
}

.mode-choice-item {
    margin-top: 1rem;
}

/* parameters */
#model-dropdown, #voice-dropdown, #language-dropdown, #ambience-dropdown,  #speaker-manager-container {
    width: 90%;
    margin: 5px;
}

.dropdown-arrow {
            width: 16px;
            height: 16px;
            transition: transform 0.2s ease;
            opacity: 0.6;
        }

.dropdown-trigger.open .dropdown-arrow {
    transform: rotate(180deg);
}


#content-container {
    padding: 10px 10px;
    height: 350px;
    overflow: hidden;
}

#tts-messages-container {
    position: relative;
    height: 100%;
    width: 100%;
}

#tts-editor-wrapper {
    position: relative;
    
    width: 100%;
    height: 100%;
    background-color: var(--bg-1, #fff);
    border: solid 1px var(--vitta-grey-dark);
    border-radius: 8px;
}

#tts-highlight-overlay,
#tts-messages-container textarea {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
    font: 1rem/1.5 'Consolas', 'Monaco', 'Courier New', monospace;
    letter-spacing: normal;
    word-spacing: normal;
    text-indent: 0;
    text-transform: none;
    padding: 12px;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    box-sizing: border-box;
    margin: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

#tts-highlight-overlay {
    background: transparent;
    color: var(--text-1, #1f2937);
    pointer-events: none;
    z-index: 10;
}

#tts-messages-container textarea {
    background: transparent;
    color: transparent;
    -webkit-text-fill-color: transparent;
    caret-color: #000;
    resize: none;
    z-index: 2;
    outline: none;
}

#tts-highlight-overlay .mention {
    color: #206189;
    font-weight: 600;
}

#tts-highlight-overlay .exceeded-text {
    color: red;
    font-weight: 600;
    background-color: rgba(255, 0, 0, 0.1);
    border-radius: 4px;
}

#tts-chars-counter {
    position: absolute;
    display: inline-block;
    bottom: 8px;
    right: 12px;
    font-size: 0.875rem;
    color: var(--vitta-grey-dark);
    background-color: rgba(var(--vitta-white-rgb, 255, 255, 255), 0.8);
    padding: 2px 6px;
    border-radius: 4px;
    z-index: 20;
}

#tts-chars-counter.char-limit-exceeded {
    color: red;
    font-weight: 600;
}

#tts-highlight-overlay .highlighted {
    color: #206189;
    font-weight: 600;
    background-color: rgba(59, 130, 246, 0.2);
    border-radius: 4px;
}

#speaker-suggestions-container {
    position: absolute;
    z-index: 10000;
    min-width: 200px;
}

#speaker-suggestions-list .list-group-item {
    cursor: pointer;
}

#speaker-suggestions-list .list-group-item.active {
    color: var(--vitta-white) !important;
}

#tts-editor-wrapper:focus-within {
    
    border-color: var(--vitta-blue);
    box-shadow: 0 0 0 3px rgba(var(--vitta-blue-rgb, 59, 130, 246), 0.15);
}

#action-buttons {
    display: flex;
    gap: 10px;
    min-height: 50px;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    flex-wrap: wrap;
}

#action-button-info-container {
    display: flex;
    gap: 8px;
}

#action-buttons > div:last-child {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

@media (max-width: 576px) {
    #action-buttons .btn span {
        display: none;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    #action-buttons > div:last-child {
        gap: 6px;
    }

    #action-buttons .btn {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
}

.random-prompts-list {
    list-style-type: none;
    padding: 10px 0;
    margin: 0;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.random-prompts-list::-webkit-scrollbar {
    height: 3px;
}

.random-prompts-list::-webkit-scrollbar-track {
    background: transparent;
}

.random-prompts-list::-webkit-scrollbar-thumb {
    background-color: var(--vitta-grey);
    border-radius: 3px;
}

#quick-prompts-form{
    display: flex;
    gap: 10px;
    padding: 10px 10px;
    justify-content: flex-start;
    align-items: center;
}


.item-quick-prompt-list {
    padding: 8px 16px;
    border-radius: 3.25rem;
    box-shadow: 0 2px 6px var(--vitta-shadow-color);
    border: solid 1px var(--vitta-grey);
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    background: var(--bg-1, white);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.item-quick-prompt-list:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--vitta-shadow-color);
}

.quick-prompt-divider {
    width: 1px;
    height: 16px;
    background-color: var(--vitta-grey-dark);
}

.iconviz-audio-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 150px;
}

#spectrum-canvas-container {
    position: absolute;
    top: -52px;
    left: -51px;
    width: 150px;
    height: 150px;
    pointer-events: none;
    z-index: 0;
}

#spectrum-canvas-container canvas {
    display: block;
}

.iconviz-audio-user {
    position: relative;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: solid 4px var(--vitta-green);
    background-color: var(--vitta-green);
    display: flex;
    align-items: center;
    justify-content: center;
    /* overflow: hidden; */
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    z-index: 10;
}

.iconviz-audio-user.active {
    transform: scale(1.05);
}

.iconviz-audio-user.speaker-0 {
    border-color: #6366f1;
    background-color: #6366f1;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.5);
}

.iconviz-audio-user.speaker-1 {
    border-color: #ec4899;
    background-color: #ec4899;
    box-shadow: 0 0 12px rgba(236, 72, 153, 0.5);
}

.iconviz-audio-user.speaker-2 {
    border-color: #22c55e;
    background-color: #22c55e;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.5);
}

.iconviz-audio-user.speaker-3 {
    border-color: #f97316;
    background-color: #f97316;
    box-shadow: 0 0 12px rgba(249, 115, 22, 0.5);
}

.iconviz-audio-user.speaker-4 {
    border-color: #0ea5e9;
    background-color: #0ea5e9;
    box-shadow: 0 0 12px rgba(14, 165, 233, 0.5);
}

#visualization-audio-motion {
    width: 100%;
    height: 70px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#audio-output-container {
    width: 100%;
    border: solid 1px var(--vitta-grey-dark);
    border-radius: 12px;
    box-shadow: 0 4px 16px var(--vitta-shadow-color);
    background-color: var(--bg-1, white);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#audio-output {
    width: 100%;
    padding: 16px;
    background: linear-gradient(to bottom, transparent, rgba(var(--vitta-grey-rgb, 128, 128, 128), 0.05));
}

#audio-output-controls-container {
    width: 100%;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--bg-2);
    gap: 16px;
    flex-wrap: wrap;
}

#audio-output-controls-container > div:first-child {
    font-size: 0.875rem;
    font-variant-numeric: tabular-nums;
    color: var(--vitta-grey-dark);
    min-width: 80px;
}

#audio-action-button-container {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

#audio-action-button-container > button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

#audio-action-button-container > button:hover {
    background-color: rgba(var(--vitta-grey-rgb, 128, 128, 128), 0.15);
    
}

#audio-action-button-container > button:active {
    transform: scale(0.95);
}

#audio-tts-play-button {
    width: 48px !important;
    height: 48px !important;
    background-color: var(--vitta-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#audio-tts-play-button:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(var(--vitta-green-rgb, 27, 133, 90), 0.3);
    color: var(--vitta-green);
}

#audio-tts-play-button:active {
    transform: scale(0.98);
}

#audio-tts-play-button i {
    font-size: 1.25rem;
}

#audio-action-button-container img {
    width: 24px;
    height: 24px;
    opacity: 0.7;
    transition: opacity 0.15s ease;
}

#audio-action-button-container > div:hover img {
    opacity: 1;
}

#speed-audio {
    padding: 6px 10px;
    border: 1px solid var(--vitta-grey);
    border-radius: 6px;
    background-color: var(--bg-1, white);
    font-size: 0.875rem;
    cursor: pointer;
    min-width: 70px;
}

#speed-audio:focus {
    outline: none;
    border-color: var(--vitta-blue);
}

#download-audio-button {
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 768px) {
    #audio-output-controls-container {
        flex-direction: column;
        gap: 12px;
    }

    #audio-output-controls-container > div:first-child {
        order: 2;
    }

    #audio-action-button-container {
        order: 1;
    }

    #audio-output-controls-container > div:last-child {
        order: 3;
        width: 100%;
    }

    #download-audio-button {
        width: 100%;
        justify-content: center;
    }
}

#loader-tts-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    border-radius: 8px;
}

#loader-tts-overlay.active {
    display: flex;
}

.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg-1, #fff);
    gap: 16px;
    padding: 24px;
    border-radius: 15px;
    border: solid 1px var(--vitta-grey-dark);
}

.loader-text {
    font-size: 1.5rem;
    color: var(--text-1, #1f2937);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tts-progress-bar-wrapper {
    width: 200px;
    height: 20px;
    background-color: var(--vitta-grey, #e5e7eb);
    border-radius: 10px;
    overflow: hidden;
}

#tts-progress-bar {
    height: 100%;
    width: 0%;
    background-color: var(--vitta-green, #22c55e);
    border-radius: 10px;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    min-width: 20px;
}

.shepherd-modal-overlay-container {
    z-index: 100000 !important;
}

.shepherd-element {
    z-index: 100001 !important;
}

.shepherd-element.shepherd-has-title .shepherd-content .shepherd-header {
    background: transparent;
    padding: 0;
}

.shepherd-element .shepherd-content {
    background: var(--bg-1, #fff);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    padding: 20px;
    max-width: 400px;
    border: none;
}

.shepherd-element .shepherd-text {
    padding: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-1, #1f2937);
}

.shepherd-element .shepherd-text .v-text {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: var(--vitta-green, #1B855A);
}

.shepherd-element .shepherd-text .info-addition {
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--vitta-grey-dark);
    text-align: right;
    font-style: italic;
}

.shepherd-element .shepherd-footer {
    padding: 12px 0 0 0;
    margin-top: 12px;
}

.shepherd-element .shepherd-arrow {
    z-index: 100002 !important;
    width: 16px;
    height: 16px;
}

.shepherd-element .shepherd-arrow:before {
    background: var(--bg-1, #fff);
    content: '';
    display: block;
    width: 16px;
    height: 16px;
    position: absolute;
    box-shadow: -2px 2px 4px rgba(0, 0, 0, 0.1);
}

.shepherd-element[data-popper-placement^='top'] .shepherd-arrow:before {
    transform: rotate(45deg);
    bottom: -8px;
}

.shepherd-element[data-popper-placement^='bottom'] .shepherd-arrow:before {
    transform: rotate(225deg);
    top: -8px;
}

.shepherd-element[data-popper-placement^='left'] .shepherd-arrow:before {
    transform: rotate(-45deg);
    right: -8px;
}

.shepherd-element[data-popper-placement^='right'] .shepherd-arrow:before {
    transform: rotate(135deg);
    left: -8px;
}

.shepherd-target {
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(27, 133, 90, 0.5) !important;
}

.shepherd-target:focus,
.shepherd-target:focus-visible {
    outline: none !important;
}

#quotas-manager {
    padding: 12px;
    margin: 12px 0;
}

#quotas-description {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--vitta-grey-dark, #6b7280);
    margin-bottom: 8px;
}

#quotas-description i {
    color: var(--vitta-orange, #f97316);
}

.quotas-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quotas-counter {
    font-size: 0.9rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--text-1, #1f2937);
    white-space: nowrap;
}

.quotas-counter #quota-used {
    color: var(--vitta-green, #22c55e);
}

.quotas-counter.warning #quota-used {
    color: var(--vitta-orange, #f97316);
}

.quotas-counter.danger #quota-used {
    color: var(--vitta-red, #ef4444);
}

.quotas-bar-wrapper {
    flex: 1;
    height: 8px;
    background-color: var(--vitta-grey, #e5e7eb);
    border-radius: 4px;
    overflow: hidden;
}

.quotas-bar {
    height: 100%;
    width: 0%;
    background-color: var(--vitta-green, #22c55e);
    border-radius: 4px;
    transition: width 0.4s ease, background-color 0.3s ease;
}

.quotas-bar.warning {
    background-color: var(--vitta-orange, #f97316);
}

.quotas-bar.danger {
    background-color: var(--vitta-red, #ef4444);
}

.quotas-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--vitta-blue, #3b82f6);
    text-decoration: none;
}

.quotas-link:hover {
    text-decoration: underline;
}
