body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background-color: #1e1e1e;
    padding: 0.5rem;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ffffff;
}

.bot-msg.loading {
    position: relative;
    overflow: hidden;
    background: #2c2c2c;
    color: transparent !important;
    min-height: 2.5rem;
}

.bot-msg.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150px;
    height: 100%;
    width: 150px;
    background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
    animation: loading-shine 1.2s infinite;
}

@keyframes loading-shine {
    0% {
        left: -150px;
    }
    100% {
        left: 100%;
    }
}

#logo {
    height: 30px;
}

#chat-box {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background-color: #1a1a1a;
}

.user-msg, .bot-msg {
    padding: 0.5rem 0.75rem;
    border-radius: 1rem;
    max-width: 80%;
    line-height: 1.6;
    white-space: pre-wrap;
    margin-bottom: 0.5rem;
}

.user-msg {
    background-color: #2e7d32;
    color: #ffffff;
    margin-left: auto;
    font-weight: bold;
}

.bot-msg {
    background-color: #2c2c2c;
    color: #f0f0f0;

    margin-right: auto;
}

.chat-input {
    background-color: #1e1e1e;
    border-top: 1px solid #333;
    padding: 0.75rem;
    display: flex;
    gap: 0.5rem;
}

input#user-input {
    background-color: #2c2c2c;
    color: #f0f0f0;
    border: 1px solid #444;
}

input#user-input::placeholder {
    color: #888;
}

input#user-input:focus {
    background-color: #333;
    border-color: #666;
    color: #fff;
}


.shortcut-btn {
    background-color: #2a2a2a;
    color: #ccc;
    border: none;
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
    margin: 0.25rem;
    cursor: pointer;
}

.shortcut-btn:hover {
    background-color: #3a3a3a;
}
#chat-box::-webkit-scrollbar {
    width: 6px;
}

#chat-box::-webkit-scrollbar-track {
    background: #1a1a1a;
}

#chat-box::-webkit-scrollbar-thumb {
    background-color: #444;
    border-radius: 3px;
}

.listening {
    color: red;
}

/* استایل‌های مربوط به اکشن‌های هوش مصنوعی */
.ai-action-link {
    color: #4caf50;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s;
}

.ai-action-link:hover {
    color: #81c784;
}

.ai-action-image {
    margin: 10px 0;
    text-align: center;
}

.ai-action-image img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

.ai-action-image img:hover {
    transform: scale(1.02);
}

.ai-action-audio, .ai-action-video {
    width: 100%;
    margin: 10px 0;
    border-radius: 8px;
}

.ai-action-copy {
    background-color: #333;
    padding: 2px 6px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.ai-action-copy:hover {
    background-color: #444;
}

.ai-action-download {
    display: inline-block;
    background-color: #2e7d32;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    text-decoration: none;
    margin: 5px 0;
    transition: background-color 0.2s;
}

.ai-action-download:hover {
    background-color: #388e3c;
}

.ai-action-scroll {
    color: #2196f3;
    cursor: pointer;
    text-decoration: underline;
}

.ai-action-scroll:hover {
    color: #64b5f6;
}

.ai-action-highlight {
    background-color: rgba(255, 193, 7, 0.3);
    padding: 0 2px;
    border-radius: 2px;
}