﻿@font-face {
    font-family: IRANSansWeb;
    src: url('../fonts/IRANSansWeb.eot');
    src: url('../fonts/Linearicons.html') format('embedded-opentype'),url('../fonts/IRANSansWeb.woff2') format('woff2'),url('../fonts/IRANSansWeb.woff') format('woff'),url('../fonts/IRANSansWeb.ttf') format('truetype');
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --bg-light: #f7f7f8;
    --bg-dark: #1a1a1a;
    --text-light: #111827;
    --text-dark: #f0f0f0;
    --input-bg-light: #ffffff;
    --input-bg-dark: #2d3748;
    --border-light: #e5e7eb;
    --border-dark: #4a5568;
    --reaction-bg-light: #e5e7eb;
    --reaction-bg-dark: #4a5568;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: IRANSansWeb,system-ui, -apple-system, sans-serif;
    transition: background-color 0.3s, color 0.3s, opacity 0.3s;
}

body {
    height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-light);
    color: var(--text-light);
    overflow: hidden;
    font-family: IRANSansWeb,system-ui, -apple-system, sans-serif !important;
}

    body.dark-mode {
        background-color: var(--bg-dark);
        color: var(--text-dark);
    }

.weather-message {
    max-width: 100%;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ed 100%);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    direction: rtl;
}

.weather-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

    .weather-header h3 {
        margin: 0;
        font-size: 1.3rem;
        color: #2c3e50;
        display: flex;
        align-items: center;
        gap: 8px;
    }

.current-weather {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

    .current-weather .condition {
        font-size: 1rem;
        color: #7f8c8d;
    }

    .current-weather .temperature {
        font-size: 2rem;
        font-weight: bold;
        color: #2980b9;
    }

.weather-forecast-container {
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.weather-forecast {
    display: flex;
    gap: 15px;
    min-width: fit-content;
}

.forecast-day {
    min-width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    background: rgba(255,255,255,0.9);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

    .forecast-day:hover {
        transform: translateY(-5px);
    }

.day {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.weather-icon {
    font-size: 2rem;
    margin: 8px 0;
}

.temps {
    font-weight: bold;
    color: #e74c3c;
    font-size: 1.1rem;
    margin: 5px 0;
}

.low-temp {
    color: #3498db;
    font-weight: normal;
}

.condition-text {
    font-size: 0.8rem;
    color: #7f8c8d;
    margin: 3px 0;
    text-align: center;
    min-height: 36px;
    display: flex;
    align-items: center;
}

.precip {
    font-size: 0.85rem;
    padding: 4px 10px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* رسپانسیو برای موبایل */
@media (max-width: 768px) {
    .weather-forecast {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .forecast-day {
        min-width: auto;
    }
}

@media (max-width: 768px) {

    #chat-container {
        margin-right: 0px !important;
    }
}

@media (max-width: 769px) {

    #chat-container {
        margin-right: 0px !important;
    }
}

@media (max-width: 480px) {

    #chat-container {
        margin-right: 0px !important;
    }
}

@media (max-width: 960px) {

    #chat-container {
        margin-right: 0px !important;
    }
}

@media (max-width: 480px) {
    .weather-forecast {
        grid-template-columns: 1fr;
    }

    .weather-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
/* استایل موقعیت */
.weather-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: #2c3e50;
    direction: rtl;
    text-align: right;
    padding-right: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    font-family: 'IranSans', Arial, sans-serif;
}

.weather-message {
    font-family: 'IranSans', Arial, sans-serif;
    direction: rtl;
}

/* استایل توضیحات */
.weather-summary {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255,255,255,0.9);
    border-radius: 10px;
    border-right: 4px solid #3498db;
    direction: rtl;
    text-align: right;
}

.summary-title {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.summary-item {
    margin-bottom: 8px;
    padding-right: 20px;
    position: relative;
}

    .summary-item .bullet {
        position: absolute;
        right: 0;
        color: #3498db;
    }

.summary-line {
    margin-bottom: 10px;
    line-height: 1.6;
}
/* استایل کلی */
.message-content {
    font-family: 'IranSans', Arial, sans-serif;
    line-height: 1.6;
    color: #000;
}

/* بلوک کد */
/* استایل بهبود یافته برای کدهای C# */


/* استایل‌های خاص هر زبان */
.csharp-code .language {
    color: #9b4993;
}

.cpp-code .language {
    color: #00599c;
}

.javascript-code .language {
    color: #f7df1e;
}

.python-code .language {
    color: #3776ab;
}

.php-code .language {
    color: #777bb4;
}

.css-code .language {
    color: #2965f1;
}

.code-container {
    margin: 1.5em 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.code-block {
    background: #1e1e1e;
    display: flex;
    flex-direction: column;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #252526;
    color: #9cdcfe;
    font-family: 'IranSans', sans-serif;
    font-size: 0.9em;
}

.language {
    font-weight: bold;
}

.copy-code-btn {
    background: #007acc;
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'IranSans';
    font-size: 0.85em;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
}

    .copy-code-btn:hover {
        background: #0062a3;
    }

.code-content {
    max-height: 500px;
    overflow-y: auto;
    padding: 0;
}

    .code-content::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }

    .code-content::-webkit-scrollbar-thumb {
        background: #4a4a4a;
        border-radius: 4px;
    }

    .code-content::-webkit-scrollbar-track {
        background: #2d2d2d;
    }

pre {
    margin: 0;
    padding: 15px;
    min-width: fit-content;
}

code {
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.95em;
    line-height: 1.6;
    color: #d4d4d4;
    white-space: pre;
    display: block;
}

/* استایل برای موبایل */
@media (max-width: 768px) {
    .code-content {
        max-height: 300px;
    }

    pre {
        padding: 10px;
        font-size: 0.85em;
    }
}


/* هایلایت سینتکس C# */
.token.keyword {
    color: #569cd6;
}

.token.class-name {
    color: #4ec9b0;
}

.token.string {
    color: #ce9178;
}

.token.comment {
    color: #6a9955;
}
/* کانتینر اصلی چت */
#chat-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-right: 60px;
}

/* ناحیه پیام‌ها */
#messages-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    padding-bottom: 16px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    transform: translateZ(0); /* بهبود عملکرد در موبایل */
}

#chat-messages {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 60px; /* فضای خالی برای نوار ورودی */
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* پیام‌ها از پایین شروع شوند */
}
/* کادر ورودی متن */
#input-container {
    position: absolute;
    bottom: 0;
    padding: 12px 16px;
    right: 0;
    left: 0;
    background: transparent;
    z-index: 10;
    transition: all 0.3s ease;
}

.dark-mode #messages-wrapper {
    background-color: var(--bg-dark);
}

#messages-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: min-content;
}

.message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 18px;
    line-height: 1.5;
    word-break: break-word;
    animation: fadeIn 0.3s ease;
    position: relative;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-message {
    background-color: #ecedef;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    margin-left: 15%;
}

.dark-mode .user-message {
    background-color: #7d7d7d;
}

.message-assistant {
    background-color: var(--input-bg-light);
    color: var(--text-light);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    margin-right: 15%;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.dark-mode .message-assistant {
    background-color: #434446;
    color: var(--text-dark);
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.code-block {
    position: relative;
    background-color: rgba(0,0,0,0.1);
    border-radius: 6px;
    padding: 12px;
    font-family: 'Courier New', monospace;
    overflow-x: auto;
    margin: 8px 0;
    white-space: pre-wrap;
}

.dark-mode .code-block {
    background-color: rgba(255,255,255,0.1);
}

.copy-code-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 12px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
}

.code-block:hover .copy-code-btn {
    opacity: 1;
}

.dark-mode .copy-code-btn {
    background-color: var(--primary-dark);
}



#input-container.centered {
    position: absolute;
    top: 60%;
    transform: translateY(-50%);
    bottom: auto;
}

.moved-down {
    position: absolute;
    bottom: 20px;
    transition: all 0.3s ease-in-out;
}

#input-wrapper {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

#input-area {
    display: flex;
    align-items: flex-end;
    background-color: var(--input-bg-light);
    border-radius: 24px;
    border: 1px solid var(--border-light);
    transition: all 0.2s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.dark-mode #input-area {
    background-color: var(--input-bg-dark);
    border-color: var(--border-dark);
}

#input-area:focus-within {
    box-shadow: 0 0 0 2px #d6d2cc, 0 2px 10px rgba(0,0,0,0.1);
}



.dark-mode #input-message {
    color: var(--text-dark);
}

.input-button {
    position: absolute;
    bottom: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: var(--border-light);
}

#input-message {
    flex: 1;
    min-height: 50px;
    max-height: 120px;
    padding: 12px 50px 12px 100px; /* تغییر مقدار padding-left به 84px */
    border: none;
    background: transparent;
    resize: none;
    font-size: 16px;
    color: var(--text-light);
    outline: none;
    overflow-y: auto;
    scrollbar-width: thin;
    line-height: 1.5;
    text-align: right;
    direction: rtl;
}

    #input-message::placeholder {
        text-align: right;
        direction: rtl;
    }

.dark-mode .input-button {
    background-color: var(--border-dark);
}

.input-button:hover {
    opacity: 0.8;
}

.input-button svg {
    width: 16px;
    height: 16px;
}

#sendButton {
    right: 12px;
    background-color: var(--border-light);
}

    #sendButton.active {
        background-color: var(--primary-color);
        cursor: pointer;
    }

.dark-mode #sendButton {
    background-color: var(--border-dark);
}

    .dark-mode #sendButton.active {
        background-color: var(--primary-dark);
    }

#attach-button {
    left: 12px;
}

#theme-toggle {
    /*! position: fixed; */
    /*! top: 16px; */
    /*! left: 16px; */
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    /*! background-color: var(--input-bg-light); */
    /*! box-shadow: 0 2px 5px rgba(0,0,0,0.1); */
    z-index: 20;
}

.dark-mode #theme-toggle {
    /*! background-color: var(--input-bg-dark); */
    /*! box-shadow: 0 2px 5px rgba(0,0,0,0.3); */
}

#theme-toggle svg {
    width: 20px;
    height: 20px;
}

#scroll-to-bottom {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--input-bg-light);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 15;
}

    #scroll-to-bottom.visible {
        opacity: 1;
        visibility: visible;
    }

.dark-mode #scroll-to-bottom {
    background-color: var(--input-bg-dark);
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

#scroll-to-bottom svg {
    width: 20px;
    height: 20px;
}

#intro {
    text-align: center;
    padding: 40px 20px;
    animation: fadeIn 0.5s ease;
    position: relative;
    z-index: 1;
}

.dark-mode #intro {
    color: var(--text-dark);
}

.logo {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
    background: #2a2a2a;
    z-index: 1;
}

.electric-effect {
    position: absolute;
    width: 74%;
    height: 82%;
    border-radius: 43%;
}

.spark {
    position: absolute;
    width: 7px;
    height: 11px;
    background: #0ff;
    border-radius: 2px;
    filter: blur(1px);
    opacity: 0;
    animation: electricSpark 1.5s infinite;
    transform-origin: center center;
}

/* موقعیت‌های مختلف برای جرقه‌ها */
.spark-1 {
    top: 30%;
    left: 31%;
    transform: translate(-55%, -55%) rotate(0deg);
}

.spark-2 {
    top: 50%;
    left: 30%;
    transform: translate(-50%, -50%) rotate(45deg);
}

.spark-3 {
    top: 50%;
    left: 30%;
    transform: translate(-50%, -50%) rotate(90deg);
}

.spark-4 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(135deg);
}

.spark-5 {
    top: 50%;
    left: 30%;
    transform: translate(-50%, -50%) rotate(180deg);
}

.spark-6 {
    top: 50%;
    left: 30%;
    transform: translate(-50%, -50%) rotate(225deg);
}

.spark-7 {
    top: 50%;
    left: 30%;
    transform: translate(-50%, -50%) rotate(270deg);
}

.spark-8 {
    top: 50%;
    left: 30%;
    transform: translate(-50%, -50%) rotate(315deg);
}

/* تاخیرهای مختلف برای جرقه‌ها */
.spark-1 {
    animation-delay: 0.1s;
}

.spark-2 {
    animation-delay: 0.3s;
}

.spark-3 {
    animation-delay: 0.5s;
}

.spark-4 {
    animation-delay: 0.7s;
}

.spark-5 {
    animation-delay: 0.9s;
}

.spark-6 {
    animation-delay: 1.1s;
}

.spark-7 {
    animation-delay: 1.3s;
}

.spark-8 {
    animation-delay: 1.5s;
}

@keyframes electricSpark {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(var(--rot)) translateY(0) scale(0.3);
        box-shadow: 0 0 5px #0ff, 0 0 10px #0ff;
    }

    20% {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(var(--rot)) translateY(-20px) scale(1.2);
        box-shadow: 0 0 15px #0ff, 0 0 30px #0ff;
    }

    40%, 100% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(var(--rot)) translateY(-40px) scale(0.3);
    }
}

.dark-mode .logo {
    background: var(--input-bg-dark);
}

.logo img {
    width: 57px;
    height: 62px;
    position: relative;
    z-index: 2;
}



/* و بخش‌های :hover را حذف کنید */
@keyframes electricBorder {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 400% 0;
    }
}

#intro h1 {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--text-light);
}

.dark-mode #intro h1 {
    color: var(--text-dark);
}

#intro p {
    color: #6b7280;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.5;
}

.dark-mode #intro p {
    color: #a0aec0;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--border-light);
    border-radius: 3px;
}

.dark-mode ::-webkit-scrollbar-track {
    background: var(--input-bg-dark);
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.dark-mode ::-webkit-scrollbar-thumb {
    background: var(--border-dark);
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.typing-indicator {
    display: flex;
    padding: 8px 16px;
    background-color: var(--input-bg-light);
    border-radius: 18px;
    align-self: flex-start;
    margin-right: 15%;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.dark-mode .typing-indicator {
    background-color: var(--input-bg-dark);
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.typing-dot {
    width: 8px;
    height: 8px;
    background-color: #999;
    border-radius: 50%;
    margin: 0 2px;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

    .typing-dot:nth-child(1) {
        animation-delay: 0s;
    }

    .typing-dot:nth-child(2) {
        animation-delay: 0.2s;
    }

    .typing-dot:nth-child(3) {
        animation-delay: 0.4s;
    }

@keyframes typingAnimation {
    0%, 60%, 100% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(-5px);
    }
}

.message a {
    color: var(--primary-color);
    text-decoration: underline;
}

.dark-mode .message a {
    color: lightblue;
}

/* استایل‌های جدید برای قابلیت‌های اضافه شده */
.message-actions {
    position: absolute;
    top: -12px;
    right: 10px;
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s;
}

.user-message .message-actions {
    left: 10px;
    right: auto;
}

.message:hover .message-actions {
    opacity: 1;
}

.action-button {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--input-bg-light);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.dark-mode .action-button {
    background-color: var(--input-bg-dark);
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.action-button svg {
    width: 12px;
    height: 12px;
}

.reactions-container {
    display: flex;
    gap: 4px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.reaction {
    padding: 2px 6px;
    border-radius: 12px;
    background-color: var(--reaction-bg-light);
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 2px;
}

.dark-mode .reaction {
    background-color: var(--reaction-bg-dark);
}

.reaction-count {
    font-size: 10px;
}

.reaction-picker {
    position: absolute;
    bottom: 100%;
    left: 0;
    background-color: var(--input-bg-light);
    border-radius: 24px;
    padding: 8px;
    display: flex;
    gap: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 5;
    display: none;
}

.dark-mode .reaction-picker {
    background-color: var(--input-bg-dark);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.reaction-emoji {
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
}

    .reaction-emoji:hover {
        background-color: var(--border-light);
        transform: scale(1.2);
    }

.dark-mode .reaction-emoji:hover {
    background-color: var(--border-dark);
}

.file-preview {
    margin-top: 8px;
    padding: 8px;
    background-color: rgba(0,0,0,0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dark-mode .file-preview {
    background-color: rgba(255,255,255,0.05);
}

.file-icon {
    width: 24px;
    height: 24px;
}

.file-info {
    flex: 1;
    overflow: hidden;
}

.file-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
}

.file-size {
    font-size: 12px;
    color: #6b7280;
}

.dark-mode .file-size {
    color: #a0aec0;
}

.remove-file {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

#file-input {
    display: none;
}

.share-dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

    .share-dialog.active {
        opacity: 1;
        visibility: visible;
    }

.share-content {
    background-color: var(--input-bg-light);
    border-radius: 12px;
    padding: 20px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.dark-mode .share-content {
    background-color: var(--input-bg-dark);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.share-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.share-title {
    font-size: 18px;
    font-weight: bold;
}

.close-share {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.share-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.share-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
}

    .share-option:hover {
        background-color: var(--border-light);
    }

.dark-mode .share-option:hover {
    background-color: var(--border-dark);
}

.share-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-label {
    flex: 1;
}

.code-block {
    position: relative;
    background-color: #f5f5f5; /* رنگ پس زمینه روشن برای حالت روز */
    border-radius: 6px;
    padding: 12px;
    margin: 8px 0;
    overflow-x: auto;
    direction: ltr;
    text-align: left;
    border: 1px solid #e0e0e0; /* حاشیه برای تفکیک بهتر */
}

.dark-mode .code-block {
    background-color: #1e1e1e; /* رنگ پس زمینه تیره برای حالت شب */
    border-color: #444;
}

.code-block pre {
    margin: 0;
    padding: 0;
    font-family: 'Courier New', monospace;
    white-space: pre-wrap;
    color: #333; /* رنگ متن برای حالت روز */
}

.dark-mode .code-block pre {
    color: #f0f0f0; /* رنگ متن برای حالت شب */
}

.copy-code-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 12px;
    cursor: pointer;
    z-index: 1;
}

.dark-mode .copy-code-btn {
    background-color: #1e40af;
}

.copy-code-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 12px;
    cursor: pointer;
}

/* استایل‌های مارک‌داون */
.message strong {
    font-weight: bold;
}

.message em {
    font-style: italic;
}

/* استایل‌های چندرسانه‌ای */
.media-preview {
    max-width: 100%;
    margin-top: 8px;
    border-radius: 8px;
    overflow: hidden;
}

    .media-preview img {
        max-width: 100%;
        max-height: 300px;
    }

.message-actions {
    position: absolute;
    top: -12px;
    right: 10px;
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s;
    background: var(--input-bg-light);
    padding: 4px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.user-message .message-actions {
    left: 10px;
    right: auto;
}

.message:hover .message-actions {
    opacity: 1;
}

.action-button {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

    .action-button:hover {
        background: rgba(0,0,0,0.1);
    }

.dark-mode .message-actions {
    background: var(--input-bg-dark);
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* استایل‌های پیکر واکنش */
.reaction-picker {
    background: var(--input-bg-light);
    border-radius: 12px;
    padding: 8px;
    display: flex;
    gap: 8px;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.reaction-emoji {
    cursor: pointer;
    font-size: 18px;
    transition: transform 0.2s;
}

    .reaction-emoji:hover {
        transform: scale(1.2);
    }

.dark-mode .reaction-picker {
    background: var(--input-bg-dark);
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
/* مدال (پنهان‌شده پیش‌فرض) */
.modal {
    display: none; /* نمایش زمانی که باز شود */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* پس‌زمینه نیمه‌شفاف */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    direction: rtl;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.close-button {
    float: right;
    font-size: 20px;
    cursor: pointer;
    color: #aaa;
}

    .close-button:hover {
        color: red;
    }

/* استایل مدال پیشرفته */
#keywordModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    direction: rtl;
}

.modal-content {
    background: #2d3748;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    overflow: hidden;
}

.modal-header {
    padding: 0px 20px;
    background: #1a202c;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #4a5568;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0 10px;
}

.search-box {
    padding: 15px 20px;
    background: #2d3748;
    border-bottom: 1px solid #4a5568;
}

.search-input {
    width: 100%;
    padding: 10px 15px;
    border-radius: 6px;
    border: none;
    background: #1a202c;
    color: white;
    font-size: 14px;
}

.keywords-list-container {
    flex: 1;
    overflow-y: auto;
}

.keywords-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.keyword-item {
    padding: 12px 20px;
    color: #e2e8f0;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid #4a5568;
    display: flex;
    align-items: center;
}

    .keyword-item:hover {
        background: #4a5568;
        color: white;
    }

    .keyword-item:last-child {
        border-bottom: none;
    }

    .keyword-item .keyword-icon {
        margin-left: 10px;
        color: #4f46e5;
    }

/* اسکرول بار زیبا */
.keywords-list-container::-webkit-scrollbar {
    width: 6px;
}

.keywords-list-container::-webkit-scrollbar-track {
    background: #1a202c;
}

.keywords-list-container::-webkit-scrollbar-thumb {
    background: #4a5568;
    border-radius: 3px;
}

    .keywords-list-container::-webkit-scrollbar-thumb:hover {
        background: #4f46e5;
    }
/* کانتینر متن‌ها */
.animated-text-container {
    position: relative;
    height: 50px; /* ارتفاع مشخص برای کادر */
    overflow: hidden; /* پنهان‌سازی متن‌های اضافی */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* استایل متن‌های انیمیشنی */
.animated-text {
    position: absolute;
    width: 100%;
    font-size: 20px;
    color: #333;
    opacity: 0; /* مخفی پیش‌فرض */
    transform: translateY(100%); /* متن در پایین کادر شروع می‌کند */
    animation: fadeInOut 6s ease-in-out infinite;
}

/* انیمیشن نمایش و محو شدن */
@keyframes fadeInOut {
    0%, 25% {
        opacity: 0;
        transform: translateY(100%);
    }
    /* متن وارد نشده */
    30%, 70% {
        opacity: 1;
        transform: translateY(0);
    }
    /* متن ظاهر می‌شود */
    75%, 100% {
        opacity: 0;
        transform: translateY(-100%);
    }
    /* متن خارج می‌شود */
}

/* تنظیم زمان‌بندی برای هر متن */
.animated-text:nth-child(1) {
    animation-delay: 0s; /* متن اول بدون تاخیر */
}

.animated-text:nth-child(2) {
    animation-delay: 6s; /* متن دوم پس از ۶ ثانیه ظاهر می‌شود */
}

.animated-text:nth-child(3) {
    animation-delay: 12s; /* متن سوم پس از ۱۲ ثانیه ظاهر می‌شود */
}

/* استایل کادر کد */
/* کادر کد */
.code-container {
    position: relative; /* موقعیت‌دهی برای دکمه Copy */
    background-color: #686666;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin: 10px 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow: auto; /* اسکرول عمودی در صورت نیاز */
    min-height: 100px; /* حداقل ارتفاع */
    max-height: 500px; /* حداکثر ارتفاع */
}

/* دکمه کپی */
.copy-button {
    position: absolute; /* دکمه در داخل code-container قرار می‌گیرد */
    top: 10px; /* فاصله از بالا */
    right: 10px; /* فاصله از راست */
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s ease;
    z-index: 2; /* اطمینان از نمایش روی کادر */
}

    .copy-button:hover {
        background-color: #0056b3;
    }

.chat-message p {
    margin: 5px 0;
}

.links-container a {
    color: #007BFF;
    text-decoration: none;
    margin-top: 5px;
    display: block;
    word-wrap: break-word;
}

    .links-container a:hover {
        text-decoration: underline;
        color: #0056b3;
    }

.link-button {
    display: inline-block;
    padding: 8px 12px;
    margin: 4px 0;
    background-color: #9A2B00;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    font-size: 14px;
    font-weight: bold;
}

    .link-button:hover {
        background-color: #091e34;
    }

.archive-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    padding: 20px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: none; /* حذف سایه */
}
/* Preloader styles */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000; /* Ensure it's above all elements */
}

    /* Image with pulsing animation */
    #preloader img {
        width: 150px; /* Adjust size as needed */
        animation: pulse 1.5s infinite; /* Pulsing animation */
    }

.icon-bar {
    position: absolute;
    top: -10px;
    right: 5px;
    display: flex;
    gap: 10px; /* فاصله بین آیکن‌ها */
}

    .icon-bar button {
        background: none;
        border: none;
        cursor: pointer;
        font-size: 16px;
    }

.reading {
    animation: pulse 1s infinite;
    color: #007BFF;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.fixed-message {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 9999;
}

    .fixed-message.visible {
        opacity: 1;
        transform: translateY(0);
    }

/* Keyframes for the pulsing effect */
@keyframes pulse {
    0% {
        transform: scale(1); /* Normal size */
        opacity: 1;
    }

    50% {
        transform: scale(1.1); /* Slightly bigger */
        opacity: 0.8;
    }

    100% {
        transform: scale(1); /* Back to normal size */
        opacity: 1;
    }
}

.form-control {
    display: block;
    width: 90%;
    height: calc(1.5em + .75rem + 2px);
    padding: .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
    margin-bottom: 10px;
}

}

@media (prefers-reduced-motion:reduce) {
    .form-control {
        transition: none
    }
}

.form-control::-ms-expand {
    background-color: transparent;
    border: 0
}

.form-control:-moz-focusring {
    color: transparent;
    text-shadow: 0 0 0 #495057
}

.form-control:focus {
    color: #495057;
    background-color: #fff;
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 .2rem rgba(0,123,255,.25)
}

.form-control::-webkit-input-placeholder {
    color: #6c757d;
    opacity: 1
}

.form-control::-moz-placeholder {
    color: #6c757d;
    opacity: 1
}

.form-control:-ms-input-placeholder {
    color: #6c757d;
    opacity: 1
}


.form-control::placeholder {
    color: #6c757d;
    opacity: 1
}

.form-control:disabled,
.form-control[readonly] {
    background-color: #e9ecef;
    opacity: 1
}

textarea::placeholder {
    display: flex;
    align-items: center; /* جهت هماهنگ با عمودی */
}

.table-container {
    overflow-x: auto;
    margin: 1rem 0;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}


.styled-table th,
.styled-table td {
    padding: 12px 15px;
    border: 1px solid #ddd;
}

.styled-table thead tr {
    background-color: #2c3e50;
    color: #fff;
}

.table-container {
    overflow-x: auto;
    margin: 1.5rem 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.styled-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
}

    .styled-table th {
        background-color: #4a6fa5;
        color: white;
        padding: 12px 16px;
        text-align: right;
    }

    .styled-table td {
        padding: 10px 16px;
        border-bottom: 1px solid #e0e0e0;
        text-align: right;
    }

    .styled-table tr:hover td {
        background-color: #f5f7fa;
    }

    .styled-table td, .styled-table th {
        padding: 8px 12px;
        border: 1px solid #ddd;
        text-align: right;
    }

    .styled-table tr:nth-child(even) {
        background-color: #f9f9f9;
    }

.input-button {
    background: none;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

    .input-button svg {
        width: 24px;
        height: 24px;
        stroke: #000;
    }

/* منوی کشویی */
/* منوی کشویی (به سمت بالا باز شود) */
.dropdown-menu {
    display: none;
    position: absolute;
    left: 84px;
    bottom: 50px; /* تغییر به پایین دکمه */
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    overflow: hidden;
    z-index: 10;
}


.dropdown-item {
    width: 100%;
    padding: 10px;
    border: none;
    background: white;
    cursor: pointer;
    text-align: right;
    font-size: 14px;
}

    .dropdown-item:hover {
        background: #f5f5f5;
    }

@media (max-width: 768px) {
    #input-area {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding-bottom: 50px; /* فضای کافی برای دکمه‌ها */
        width: 100%; /* عرض کامل */
    }

    #input-message {
        width: 100%; /* کادر ورودی کل عرض را بگیرد */
        flex-grow: 1;
        font-size: 16px;
        padding: 12px;
    }

    /* دکمه‌ها بروند پایین */
    .input-button {
        position: absolute;
        bottom: 5px; /* به پایین منتقل شود */
        top: auto;
        transform: none;
    }

    #service-button {
        left: 10px;
    }

    #archive-button {
        left: 50px;
    }

    #menu-button {
        left: 90px;
    }
}



/* حالت بزرگنمایی شده */
.mini-map.expanded {
    height: 500px;
    position: relative;
    z-index: 100;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

/* دکمه‌های اقدام */
.map-actions {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.expand-map-btn, .open-map-link {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.expand-map-btn {
    background-color: #4a6fa5;
    color: white;
    border: none;
}

    .expand-map-btn:hover {
        background-color: #3a5a8a;
    }

.open-map-link {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}

    .open-map-link:hover {
        background-color: #e0e0e0;
    }

#map-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 10000;
    display: none;
}

#fullscreen-map {
    width: 95%;
    height: 95%;
    margin: 2.5%;
    border-radius: 8px;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 10001;
}

.map-modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 95%;
    height: 95%;
    animation: fadeIn 0.3s;
}
/* ========== Route Message Styling ========== */
.route-message {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    direction: rtl;
}

.route-header {
    font-size: 1.3em;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
    font-weight: bold;
}


.route-item {
    display: flex;
    align-items: center;
    margin: 10px 0;
    padding: 10px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.route-details div {
    margin: 10px 0;
    padding: 8px;
    background: white;
    border-radius: 8px;
    align-items: center;
    gap: 10px;
}

.route-details span {
    font-size: 1.1em;
}

.route-item .icon {
    font-size: 1.5em;
    margin-left: 10px;
}

.route-item .content {
    flex-grow: 1;
}

.route-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    margin: 15px 0;
}

.stat-item {
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}


.traffic-status {
    color: #e74c3c;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
    background: rgba(231, 76, 60, 0.1);
}

.mini-map {
    height: 250px;
    width: 100%;
    border-radius: 8px;
    margin: 15px 0;
    border: 1px solid #ddd;
    background: #f5f5f5;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.leaflet-container {
    background: #f5f5f5 !important;
    font-family: Vazir, sans-serif;
}

.custom-marker {
    display: flex;
    justify-content: center;
    align-items: center;
}

.marker-pin {
    width: 30px;
    height: 30px;
    border-radius: 50% 50% 50% 0;
    position: absolute;
    transform: rotate(-45deg);
    left: 0;
    top: 0;
    margin: -15px 0 0 -15px;
}

.custom-marker span {
    position: relative;
    z-index: 1;
    font-size: 18px;
    transform: rotate(45deg);
    display: inline-block;
}

.map-error {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #e74c3c;
    padding: 20px;
    text-align: center;
}

    .map-error svg {
        width: 50px;
        height: 50px;
        fill: currentColor;
        margin-bottom: 10px;
    }

    .map-error p {
        margin: 0;
        font-weight: bold;
    }

.map-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.external-map-btn {
    background: #3498db;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.coordinates {
    margin-top: 15px;
    font-size: 0.9em;
    color: #7f8c8d;
}

/* ========== Traffic Legend ========== */
.traffic-legend {
    background: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

    .traffic-legend h4 {
        margin: 0 0 8px 0;
        font-size: 14px;
    }

    .traffic-legend div {
        margin: 5px 0;
        display: flex;
        align-items: center;
    }

    .traffic-legend i {
        width: 15px;
        height: 15px;
        display: inline-block;
        margin-left: 8px;
        border-radius: 3px;
    }

.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 60px;
    height: 100%;
    background: #f9f9f9;
    color: #333;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    transition: width 0.3s ease, background-color 0.3s ease;
}

    .sidebar.dark-mode {
        background: #1e1e1e;
        color: #eaeaea;
    }

    /* وقتی Sidebar باز می‌شود */
    .sidebar.open {
        width: 220px;
    }

/* لوگو */
.logoa {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
    background: #2a2a2a;
    z-index: 1;
}

.sidebar.open .logoa {
    transform: scale(1.1);
}

/* آیکون چت جدید */
.new-chat {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #0078d4;
    cursor: pointer;
    font-size: 1.5em;
    padding: 10px;
    margin-bottom: 20px;
    transition: transform 0.3s ease, color 0.3s ease;
}

    .new-chat:hover {
        color: #005a9e;
        transform: scale(1.1); /* بزرگنمایی ظریف */
    }

    .new-chat.dark-mode {
        color: #80d8ff;
    }

/* آیکون‌ها */
.icons .icon {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 12px 0;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-align: right;
    direction: rtl;
}

    .icons .icon i {
        font-size: 31px;
        color: #434343;
        margin-left: 10px;
        transition: color 0.3s ease, transform 0.3s ease;
    }

    .icons .icon span {
        font-size: 0.9em;
        color: #555;
        display: inline-block;
        transition: opacity 0.3s ease;
    }

    .icons .icon:hover {
        background-color: #f1f1f1;
    }

    .icons .icon.dark-mode:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    .icons .icon.dark-mode i {
        color: #80d8ff;
    }

@media (min-width: 769px) {
    .icons .icon span {
        display: none;
    }
}

/* نمایش متن در حالت موبایل */
@media (max-width: 768px) {
    .icons .icon span {
        display: inline-block;
    }
}

.sidebar.open .icons .icon span {
    display: inline-block;
    opacity: 1;
}

/* آواتار کاربر */
.user-avatar {
    margin-top: auto;
    margin-bottom: 20px;
    width: 100%;
    text-align: center;
    padding-top: 15px;
}

    .user-avatar img {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        border: 2px solid #e3e3e3;
        transition: transform 0.3s ease, border-color 0.3s ease;
    }

        .user-avatar img:hover {
            transform: scale(1.05);
        }

    .user-avatar.dark-mode img {
        border-color: #0078d4;
    }

/* دکمه منوی موبایل */
.menu-toggle {
    display: block;
    position: fixed;
    top: 15px;
    left: 15px;
    font-size: 1.8em;
    cursor: pointer;
    background: none;
    color: #6e6e6e;
    border: none;
    transition: transform 0.3s ease, color 0.3s ease;
}

    .menu-toggle:hover {
        color: #005a9e;
        transform: scale(1.1);
    }

/* واکنش‌گرایی موبایل */
@media (max-width: 768px) {
    .sidebar {
        display: none;
    }

        .sidebar.open {
            display: flex;
        }

    .menu-toggle {
        display: block;
        z-index: 1000;
    }
}

/* واکنش‌گرایی دسکتاپ */
@media (min-width: 769px) {
    .sidebar {
        display: flex;
    }

    .menu-toggle {
        display: none;
    }
}
