/* AI Chatbox Styles */

/* Shimmer Effect for Loading */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

.shimmer-wrapper {
    animation: shimmer 2s infinite linear;
    background: linear-gradient(to right, rgba(0, 255, 255, 0.05) 4%, rgba(0, 255, 255, 0.15) 25%, rgba(0, 255, 255, 0.05) 36%);
    background-size: 1000px 100%;
}

.shimmer-line {
    height: 10px;
    margin-bottom: 8px;
    border-radius: 4px;
    background: rgba(0, 255, 255, 0.1);
}

.shimmer-line.short {
    width: 60%;
}

/* Chat Message Animations */
@keyframes messageIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.message-enter {
    animation: messageIn 0.3s ease-out forwards;
}

/* Custom Scrollbar for Chat */
#chat-messages::-webkit-scrollbar {
    width: 4px;
}

#chat-messages::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

#chat-messages::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 255, 0.2);
    border-radius: 2px;
}

#chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 255, 0.4);
}

/* Typing Indicator */
.typing-dot {
    width: 4px;
    height: 4px;
    background: #00ffff;
    border-radius: 50%;
    display: inline-block;
    animation: typing 1.4s infinite ease-in-out both;
    margin: 0 1px;
}

.typing-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

/* Hero Search Specifics */
#hero-input:focus {
    box-shadow: none;
}

.hero-chip:hover {
    border-color: rgba(0, 255, 255, 0.3);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.1);
}

/* Markdown Styles within Chat */
.chat-content pre {
    background: rgba(0, 0, 0, 0.3);
    padding: 10px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 8px 0;
    border: 1px solid rgba(0, 255, 255, 0.1);
}

.chat-content code {
    font-family: 'Courier New', Courier, monospace;
    background: rgba(0, 255, 255, 0.1);
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 0.9em;
    color: #a5f3fc;
    /* cyan-200 */
}

.chat-content pre code {
    background: transparent;
    padding: 0;
    color: #e0f7ff;
}

.chat-content a {
    color: #22d3ee;
    /* cyan-400 */
    text-decoration: underline;
}

.chat-content a:hover {
    color: #67e8f9;
    /* cyan-300 */
}

.chat-content ul,
.chat-content ol {
    margin: 8px 0;
    padding-left: 20px;
    list-style-type: disc;
}

.chat-content ol {
    list-style-type: decimal;
}

.chat-content li {
    margin-bottom: 4px;
}

.chat-content strong {
    font-weight: 700;
    color: #fff;
}

.chat-content p {
    margin-bottom: 8px;
}

.chat-content p:last-child {
    margin-bottom: 0;
}