.step {
    animation-duration: 0.5s;
}

.step-number {
    margin-top: .2rem;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    margin-right: 1rem;
    font-size: .8rem;
    flex-shrink: 0;
}

.faq-item {
    background-color:var(--bs-secondary-background);
    border: 1px solid var(--bs-secondary-background);
    border-radius: .6rem;
    padding: .8rem;
    margin-bottom: 10px;
    cursor: pointer;
}

.faq-answer {
    display: none;
    padding: 10px 0;
}

.faq-question {

}

.faq-toggle {
    font-size: 1.3rem;
    color: #7F8C8D;
}

.faq-answer {
    display: none;
    padding: 10px 0;
    margin-top: 1rem;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}


/*Radar animation*/
.radar-container  {
    --bg-color: #f5f5f5;
    --radar-bg: rgba(240, 245, 255, 0.8);
    --radar-shadow: rgba(67, 97, 238, 0.2);
    --grid-color: rgba(67, 97, 238, 0.2);
    --element-color: rgba(67, 97, 238, 0.8);
    --element-light: rgba(67, 97, 238, 0.5);
    --text-color: #4361ee;
    --announcement-bg: rgba(255, 255, 255, 0.95);
    --announcement-shadow: rgba(0, 0, 0, 0.1);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


.radar-container {
    margin: auto;
    position: relative;
    width: 18rem;
    height: 18rem;
    will-change: transform;
    transform: translateZ(0);
    --webkit-transform: translateZ(0);
}

.radar-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--radar-bg);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    will-change: background-color, box-shadow;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.radar-rings {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.radar-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid var(--grid-color);
    transition: border-color 0.3s ease;
}

.ring-outer {
    width: 90%;
    height: 90%;
}

.ring-middle {
    width: 60%;
    height: 60%;
}

.ring-inner {
    width: 30%;
    height: 30%;
}

.radar-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}


.line-horizontal {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--grid-color);
    transition: background-color 0.3s ease;
}

.line-vertical {
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 100%;
    background-color: var(--grid-color);
    transition: background-color 0.3s ease;
}

.radar-center-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    background-color: var(--element-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: background-color 0.3s ease;
}

.radar-scan {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.scan-area {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 50%;
    background: linear-gradient(90deg, transparent, var(--radar-shadow));
    border-radius: 0 100% 0 0;
    transform-origin: bottom left;
    animation: radarScanner 6s linear infinite;
    will-change: transform;
}

@keyframes radarScanner {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .scan-area {
        animation-duration: 10s;
    }

    body, .radar-circle, .radar-ring, .line-horizontal, .line-vertical,
    .radar-center-dot, .announcement, .radar-title, .theme-toggle-thumb, .theme-text {
        transition-duration: 0s;
    }
}


/*Button animation*/
.background-progress-bar {
    position: relative;
    z-index: 1;
    animation: colorProgress 4s forwards;
    will-change: transform;
}

.background-progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    border-radius: .5rem  0 0 .5rem;
    z-index: -1;
    animation: fillProgress 4s forwards;
}

@keyframes colorProgress {
    90% {
        color: #fff
    }
    100% {
        color: #fff
    }
}

@keyframes fillProgress {
    0% {
        width: 0%;
        background-color: #4361ee;
    }
    99% {
        width: 100%;
        background-color: #4361ee;
        color: #fff;
    }
    100% {
        width: 100%;
        background-color: #4361ee;
        color: #fff!important;
        border-radius: .5rem  .5rem .5rem .5rem;
    }
}

.ai-assistant-card {
    background-color: rgba(0, 115, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    position: relative;
}

:root {
    --card-height: 65vh;
    --card-width: calc(var(--card-height) / 1.5);
}


[data-bs-theme=dark] {
    .ai-assistant-card {
        background-color: #2e2e2e
    }


}