/* ==========================================
   tesIstA — style.css
   Custom styles complementing Tailwind CSS
   ========================================== */

/* Typing dots animation */
.typing-dots {
    display: flex;
    align-items: center;
    gap: 6px;
}

.typing-dots span {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #f2b90d;
    animation: dotBounce 1.2s infinite ease-in-out;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotBounce {

    0%,
    80%,
    100% {
        transform: translateY(0);
        opacity: 0.4;
    }

    40% {
        transform: translateY(-8px);
        opacity: 1;
    }
}

/* Step transition animation */
#flowStep {
    animation: fadeSlideIn 0.3s ease-out;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Drop-zone upload area */
.drop-zone {
    transition: border-color 0.2s, background-color 0.2s;
}

.drop-zone.drag-over {
    border-color: #f2b90d;
    background-color: rgba(242, 185, 13, 0.06);
}

/* Radio card selected state (helper for JS toggle) */
.card-option {
    transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
    cursor: pointer;
}

.card-option.selected {
    border-color: #f2b90d;
    background-color: rgba(242, 185, 13, 0.06);
    box-shadow: 0 0 0 3px rgba(242, 185, 13, 0.15);
}

.card-option:hover:not(.selected) {
    border-color: rgba(242, 185, 13, 0.4);
}

/* Chapter preview items */
.chapter-item {
    transition: box-shadow 0.15s;
}

.chapter-item:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* Scrollbar subtle */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #cbd5e1;
}

/* Material Symbols baseline alignment fix */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    vertical-align: middle;
    -webkit-font-smoothing: antialiased;
}