/* تنظیمات متغیرهای رنگی تم Teal */
        :root {
            --bg-dark: #042f2e;       /* پس‌زمینه خیلی تیره */
            --surface: #0f4c4c;       /* رنگ کارت‌ها و پنل‌ها */
            --primary: #14b8a6;       /* فیروزه‌ای روشن (اصلی) */
            --primary-dark: #0f766e;  /* فیروزه‌ای تیره */
            --accent: #2dd4bf;        /* رنگ تاکید */
            --text: #ccfbf1;          /* متن روشن */
            --text-light: #99f6e4;    /* متن فرعی */
            --border: #115e59;        /* حاشیه‌ها */
            --radius: 12px;
            
            /* رنگ‌های نقشه */
            --zone-north: #0f766e;    /* شمال: سبز دودی */
            --zone-south: #0d9488;    /* جنوب: فیروزه‌ای */
            --zone-selected: #f0fdfa; /* انتخاب شده: سفید مایل به فیروزه‌ای */
        }
        
        /* تنظیمات پایه */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        body {
            background: var(--bg-dark);
            color: var(--text);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            padding: 20px;
            transition: direction 0.3s ease;
        }
        
        .container {
            display: flex;
            flex-direction: column;
            gap: 24px;
            max-width: 1400px;
            margin: 0 auto;
            width: 100%;
        }
        
        /* هدر و دکمه تغییر زبان */
        header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 25px;
            background: var(--surface);
            border-radius: var(--radius);
            box-shadow: 0 4px 20px rgba(20, 184, 166, 0.15);
            border-bottom: 2px solid var(--primary);
        }
        
        .header-content {
            text-align: center;
            flex-grow: 1;
        }
        
        h1 {
            font-size: 2.2rem;
            background: linear-gradient(135deg, var(--accent), var(--primary));
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            margin-bottom: 8px;
            text-shadow: 0 2px 10px rgba(20, 184, 166, 0.2);
        }
        
        .lang-btn {
            background: transparent;
            border: 1px solid var(--primary);
            color: var(--accent);
            padding: 8px 16px;
            border-radius: 8px;
            cursor: pointer;
            font-weight: bold;
            transition: all 0.3s;
        }
        
        .lang-btn:hover {
            background: var(--primary);
            color: var(--bg-dark);
        }
        
        /* چیدمان اصلی */
        .main-content {
            display: grid;
            grid-template-columns: 1fr 350px;
            gap: 24px;
        }
        
        @media (max-width: 1024px) {
            .main-content {
                grid-template-columns: 1fr;
            }
        }
        
        /* کانتینر نقشه */
        .map-wrapper {
            background: var(--surface);
            border-radius: var(--radius);
            padding: 10px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
            position: relative;
            overflow: hidden;
            height: 650px;
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: grab;
            border: 1px solid var(--border);
        }
        
        .map-wrapper:active {
            cursor: grabbing;
        }
        
        canvas {
            border-radius: 8px;
            box-shadow: 0 0 30px rgba(0,0,0,0.6);
        }
        
        /* کنترل‌های روی نقشه */
        .map-controls {
            position: absolute;
            bottom: 25px;
            left: 25px;
            display: flex;
            flex-direction: column;
            gap: 10px;
            z-index: 10;
        }
        
        /* تنظیم موقعیت دکمه‌ها در حالت LTR */
        html[dir="ltr"] .map-controls {
            left: auto;
            right: 25px;
        }
        
        .control-btn {
            width: 45px;
            height: 45px;
            background: rgba(15, 76, 76, 0.9);
            border: 1px solid var(--primary);
            color: var(--accent);
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.4rem;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            backdrop-filter: blur(4px);
        }
        
        .control-btn:hover {
            background: var(--primary);
            color: var(--bg-dark);
            transform: scale(1.1);
            box-shadow: 0 0 15px var(--primary);
        }
        
        /* سایدبار */
        .sidebar {
            background: var(--surface);
            border-radius: var(--radius);
            padding: 24px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
            display: flex;
            flex-direction: column;
            gap: 20px;
            border: 1px solid var(--border);
        }
        
        .input-group {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        
        label {
            font-size: 0.9rem;
            color: var(--text-light);
            font-weight: 600;
        }
        
        input {
            padding: 14px;
            background: var(--bg-dark);
            border: 2px solid var(--border);
            border-radius: 8px;
            color: var(--text);
            font-size: 1rem;
            transition: 0.3s;
            text-align: inherit; /* جهت متن ورودی بر اساس زبان */
        }
        
        input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2);
        }
        
        button.action-btn {
            padding: 16px;
            background: linear-gradient(135deg, var(--primary-dark), var(--primary));
            color: #fff;
            border: none;
            border-radius: 8px;
            font-weight: bold;
            font-size: 1.1rem;
            cursor: pointer;
            transition: 0.3s;
            box-shadow: 0 4px 15px rgba(20, 184, 166, 0.3);
        }
        
        button.action-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(20, 184, 166, 0.5);
            background: linear-gradient(135deg, var(--primary), var(--accent));
        }
        
        .result-box {
            background: rgba(4, 47, 46, 0.6);
            border-radius: 8px;
            padding: 20px;
            border-right: 4px solid var(--accent);
            margin-top: 10px;
            display: none;
            backdrop-filter: blur(5px);
        }
        
        /* تغییر جهت حاشیه باکس نتیجه در حالت LTR */
        html[dir="ltr"] .result-box {
            border-right: none;
            border-left: 4px solid var(--accent);
        }
        
        .result-row {
            display: flex;
            justify-content: space-between;
            margin-bottom: 12px;
            font-size: 1rem;
            border-bottom: 1px solid rgba(255,255,255,0.05);
            padding-bottom: 8px;
        }
        
        .result-row:last-child {
            border-bottom: none;
            margin-bottom: 0;
            padding-bottom: 0;
        }
        
        .result-value {
            font-weight: bold;
            color: var(--accent);
            font-size: 1.1rem;
        }
        
        .quick-locations {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
        }
        
        .loc-btn {
            padding: 12px;
            background: rgba(255,255,255,0.05);
            border: 1px solid var(--border);
            border-radius: 8px;
            color: var(--text-light);
            font-size: 0.85rem;
            cursor: pointer;
            transition: 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 5px;
        }
        
        .loc-btn:hover {
            background: var(--primary);
            color: var(--bg-dark);
            border-color: var(--primary);
        }
        
        .tooltip {
            position: absolute;
            background: rgba(4, 47, 46, 0.95);
            color: var(--accent);
            padding: 8px 16px;
            border-radius: 6px;
            font-size: 0.9rem;
            pointer-events: none;
            display: none;
            z-index: 100;
            white-space: nowrap;
            border: 1px solid var(--primary);
            box-shadow: 0 4px 15px rgba(0,0,0,0.5);
        }
        
        .info-text {
            font-size: 0.85rem;
            color: var(--text-light);
            line-height: 1.6;
            background: rgba(0,0,0,0.2);
            padding: 15px;
            border-radius: 8px;
        }
        
        /* تنظیمات لیست راهنما */
        .info-text ul {
            padding-inline-start: 20px; /* جایگزین padding-right/left */
            margin-top: 8px;
        }
        /* ==========================================
// استایل اسکرول‌بار مدرن (Modern Scrollbar)
// ==========================================*/

/* برای مرورگرهای WebKit (Chrome, Safari, Edge, Opera) */
::-webkit-scrollbar {
    width: 8px;  /* عرض اسکرول‌بار عمودی */
    height: 8px; /* ارتفاع اسکرول‌بار افقی */
}

/* پس‌زمینه نوار اسکرول */
::-webkit-scrollbar-track {
    background: #0f172a; /* رنگ تیره برای پس‌زمینه */
    border-radius: 4px;
}

/* دکمه متحرک اسکرول (Thumb) */
::-webkit-scrollbar-thumb {
    background: #2dd4bf; /* رنگ اصلی Teal */
    border-radius: 4px;
    border: 2px solid #0f172a; /* حاشیه برای ایجاد فاصله زیبا */
}

/* حالت هاور (وقتی موس روی آن قرار می‌گیرد) */
::-webkit-scrollbar-thumb:hover {
    background: #14b8a6; /* رنگ کمی تیره‌تر برای هاور */
}

/* ==========================================
// اسکرول نرم (Smooth Scrolling)
// ==========================================*/

html {
    scroll-behavior: smooth;
}

/* ==========================================
// مخفی کردن اسکرول‌بار در موبایل اما حفظ قابلیت اسکرول
// (اختیاری - برای ظاهر تمیزتر در اپلیکیشن‌های وب)
// ==========================================*/

/* برای کلاس‌های خاص مثل نقشه یا سایدبار */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* برای فایرفاکس */
.no-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}