/* =====================================================
   Smart Timer – Appearance Customizer  (شخصی‌سازی ظاهر)
   نسخه ۳.۳ — دکمه دایره‌ای «کنار حلقه‌های تم سایت» +
   پنجره درون‌خطی زیر همان حلقه‌ها (پیش‌فرض: بسته)
   -----------------------------------------------------
   نسخه ۳.۳: پیش‌نمایش زنده = «کارت تایمر واقعی» با همان
   کلاس‌های timer-app.js (timer-card، timer-display و ...)
   تا ظاهر پیش‌نمایش دقیقاً شبیه باکس تایمر برنامه باشد.
   -----------------------------------------------------
   این فایل کاملاً «جدید» است و هیچ فایل دیگری از قالب
   ویرایش نمی‌شود. تمام کلاس‌ها با پیشوند stc- ایزوله
   شده‌اند تا با استایل‌های اصلی قالب تداخل نکنند.
   ===================================================== */

/* ---------------- ۱) فونت‌های فارسی اضافه ----------------
   ۱۴ فونت از پوشه file/font/customizer/
   و ۲ فونت وزیر و لاله‌زار از فایل‌های موجود خود قالب
   ----------------------------------------------------------
   فونت‌های تجاری «فرهنگ» و «ایران‌شارپ»: فایل ایران‌شارپ
   همراه بسته است؛ برای «فرهنگ» فایل woff2 خودتان را با
   نام Farhang.woff2 در همین پوشه بگذارید (در نبود فایل،
   خودکار به وزیرمتن برمی‌گردد). */

@font-face {
    font-family: 'STC-Vazirmatn';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../file/font/customizer/Vazirmatn-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'STC-Sahel';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../file/font/customizer/Sahel.woff2') format('woff2');
}

@font-face {
    font-family: 'STC-Shabnam';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../file/font/customizer/Shabnam.woff2') format('woff2');
}

@font-face {
    font-family: 'STC-Samim';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../file/font/customizer/Samim.woff2') format('woff2');
}

@font-face {
    font-family: 'STC-Gandom';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../file/font/customizer/Gandom.woff2') format('woff2');
}

@font-face {
    font-family: 'STC-Parastoo';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../file/font/customizer/Parastoo.woff2') format('woff2');
}

/* --- فونت‌های جدید (نسخه ۳.۱): ایران‌سنس، ایران‌یکان،
       یکان‌بخ، دانا، ایران‌شارپ — هرکدام با وزن معمولی و ضخیم --- */
@font-face {
    font-family: 'STC-IRANSans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../file/font/customizer/IRANSans.woff2') format('woff2');
}

@font-face {
    font-family: 'STC-IRANSans';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../file/font/customizer/IRANSans-Bold.woff2') format('woff2');
}

@font-face {
    font-family: 'STC-IRANYekan';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../file/font/customizer/IRANYekan.woff2') format('woff2');
}

@font-face {
    font-family: 'STC-IRANYekan';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../file/font/customizer/IRANYekan-Bold.woff2') format('woff2');
}

@font-face {
    font-family: 'STC-YekanBakh';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../file/font/customizer/YekanBakh.woff2') format('woff2');
}

@font-face {
    font-family: 'STC-YekanBakh';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../file/font/customizer/YekanBakh-Bold.woff2') format('woff2');
}

@font-face {
    font-family: 'STC-Dana';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../file/font/customizer/Dana.woff2') format('woff2');
}

@font-face {
    font-family: 'STC-Dana';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../file/font/customizer/Dana-Bold.woff2') format('woff2');
}

@font-face {
    font-family: 'STC-IranSharp';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../file/font/customizer/IranSharp.woff2') format('woff2');
}

@font-face {
    font-family: 'STC-IranSharp';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../file/font/customizer/IranSharp-Bold.woff2') format('woff2');
}

/* فرهنگ — اگر فایل لایسنس‌دار خودتان را با نام Farhang.woff2
   (و ضخیم: Farhang-Bold.woff2) در همین پوشه بگذارید فعال
   می‌شود؛ در غیر این صورت انتخابش به وزیرمتن برمی‌گردد. */
@font-face {
    font-family: 'STC-Farhang';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../file/font/customizer/Farhang.woff2') format('woff2');
}

@font-face {
    font-family: 'STC-Farhang';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../file/font/customizer/Farhang-Bold.woff2') format('woff2');
}

/* فونت‌های از قبل موجود در قالب (بدون کپی، فقط ارجاع) */
@font-face {
    font-family: 'STC-Vazir';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../file/font/Vazir.woff') format('woff');
}

@font-face {
    font-family: 'STC-Lalezar';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../file/font/Lalezar-Regular.ttf') format('truetype');
}

/* ---------------- ۲) اعمال فونت انتخابی کاربر ----------------
   قالب فونت را روی سلکتور * تعریف کرده؛ برای شکستن آن از
   !important استفاده می‌شود. آیکون‌های FontAwesome مستثنا
   هستند تا شکلک‌ها خراب نشوند. */
body.stc-font,
body.stc-font *:not(.fa):not(.fas):not(.far):not(.fal):not(.fad):not(.fab):not(.fa-solid):not(.fa-regular):not(.fa-light):not(.fa-duotone):not(.fa-brands):not([class^="fa-"]):not([class*=" fa-"]) {
    font-family: var(--stc-font-stack, "Lalezar", system-ui) !important;
}

/* متن‌های داخل پنل شخصی‌سازی همیشه با فونت ثابت و خوانا
   نمایش داده می‌شوند (خارج از انتخاب کاربر).
   آیکون‌های FontAwesome مستثنا هستند تا شکلک‌ها خراب نشوند.
   استثنای جدید ۳.۳: کارت پیش‌نمایش (stc-pv-timer) از این
   قانون خارج شده تا دقیقاً با فونت‌های خود قالب — مثل کارت
   واقعی تایمر — نمایش داده شود. */
#stc-panel,
#stc-panel *:not(.fa):not(.fas):not(.far):not(.fal):not(.fad):not(.fab):not(.fa-solid):not(.fa-regular):not(.fa-light):not(.fa-duotone):not(.fa-brands):not([class^="fa-"]):not([class*=" fa-"]):not(.stc-pv-timer):not(.stc-pv-timer *) {
    font-family: 'STC-Vazirmatn', Vazirmatn, Tahoma, sans-serif !important;
}

/* اما باکس پیش‌نمایش فونت باید دقیقاً فونت انتخابی را نشان دهد */
#stc-panel #stc-font-preview,
#stc-panel #stc-font-preview2 {
    font-family: var(--stc-font-stack, 'STC-Vazirmatn') !important;
}

/* ---------------- ۳) اندازه کلی متن‌ها ----------------
   با تغییر اندازه فونت ریشه، همه مقادیر rem قالب مقیاس
   می‌شوند؛ برای هر بخش هم امکان تنظیم جداگانه وجود دارد
   (استایل بخشی از طریق JS تزریق می‌شود). */
html.stc-scale {
    font-size: calc(100% * var(--stc-scale, 1));
}

/* =====================================================
   ۴) دکمه دایره‌ای «کنار حلقه‌های تم سایت»
   ===================================================== */

/* فاصله حلقه‌ها کمی جمع‌تر می‌شود تا دکمه ششم هم در همان
   ردیف جا شود (عرض داخل سایدبار ۲۸۰ پیکسل است) */
body .theme-options {
    gap: 7px;
}

/* دکمه هم‌اندازه و هم‌شکل حلقه‌های تم، اما با پیش‌زمینه
   رنگین‌کمانی و آیکون پالت تا از تم‌ها متمایز باشد */
body #stc-toggle {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: conic-gradient(from 220deg, #ff595e, #ffca3a, #8ac926, #1982c4, #6a4c93, #ff595e);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, filter 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

body #stc-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.4);
    filter: saturate(1.25);
}

body #stc-toggle:active {
    transform: scale(0.94);
}

/* وقتی پنجره باز است، مثل حلقه‌های تم قاب رنگ اصلی می‌گیرد */
body #stc-toggle.active {
    border-color: var(--accent-color, #9c27b0);
}

body #stc-toggle .stc-ico-palette {
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}

/* دو آیکون داخل دکمه: پالت (بسته) و ضربدر (باز) */
body #stc-toggle .stc-ico-close {
    display: none;
    font-size: 1.05rem;
}

body #stc-toggle.active .stc-ico-close {
    display: block;
}

body #stc-toggle.active .stc-ico-palette {
    display: none;
}

/* حالت احتیاطی: اگر بخش «تم سایت» در قالب پیدا نشود،
   دکمه به‌صورت شناور گوشه صفحه نمایش داده می‌شود */
body #stc-toggle.stc-launch-float {
    position: fixed;
    bottom: 18px;
    left: 18px;
    z-index: 99999;
    width: 56px;
    height: 56px;
}

/* =====================================================
   ۵) پنجره شخصی‌سازی — درون‌خطی، دقیقاً زیر حلقه‌های تم
      (پیش‌فرض: بسته)
   ===================================================== */

#stc-panel {
    width: 100%;
    max-width: none;
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary, #1e1e1e);
    color: var(--text-primary, #e0e0e0);
    border: 1px solid var(--bg-tertiary, #252525);
    border-radius: 14px;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-6px);
    transform-origin: top center;
    pointer-events: none;
    transition: max-height 0.32s ease, opacity 0.26s ease, transform 0.26s ease;
}

#stc-panel.open {
    max-height: min(760px, calc(100vh - 130px));
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* وقتی بسته است، کلاً از جریان صفحه خارج می‌شود */
#stc-panel[hidden] {
    display: none;
}

/* --- موبایل (نسخه ۳.۳): پنل شناور روی صفحه ---
   قالب در موبایل سایدبار را مخفی می‌کند؛ جاوااسکریپت دکمه و
   پنل را به body منتقل می‌کند و پنل به‌صورت پنجره شناورِ
   تمام‌عرض روی صفحه باز می‌شود تا در موبایل هم در دسترس باشد. */
@media (max-width: 768px) {
    body > #stc-panel {
        position: fixed;
        top: 12px;
        right: 12px;
        left: 12px;
        width: auto;
        max-height: 0;
        z-index: 99998;
    }

    body > #stc-panel.open {
        max-height: calc(100vh - 24px);
    }
}

/* --- سرصفحه پنل ---
   نکته ۳.۳: قالب برای تگ header استایل عمومی دارد
   (header { text-align:center; margin-bottom:20px; ... } و
   در موبایل header { flex-direction:column })؛ همه این‌ها اینجا
   صریحاً خنثی می‌شود تا سرصفحه پنل در موبایل هم سالم بماند. */
.stc-head {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    margin: 0;
    text-align: right;
    position: static;
    border-radius: 0;
    box-shadow: none;
    background: linear-gradient(135deg, var(--accent-color-secondary, #673ab7), var(--accent-color, #9c27b0));
    color: #fff;
    flex-shrink: 0;
}

.stc-head-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.stc-title {
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.5;
}

.stc-title i {
    margin-left: 6px;
}

.stc-sub {
    font-size: 0.72rem;
    opacity: 0.85;
    line-height: 1.6;
}

#stc-close {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

#stc-close:hover {
    background: rgba(255, 255, 255, 0.32);
    transform: rotate(90deg);
}

/* --- نوار تب‌ها --- */
.stc-tabs {
    display: flex;
    gap: 6px;
    padding: 8px 10px 0 10px;
    background: var(--bg-tertiary, #252525);
    flex-shrink: 0;
}

.stc-tab {
    flex: 1;
    padding: 9px 4px;
    margin-bottom: 0;
    border: none;
    border-radius: 9px 9px 0 0;
    background: transparent;
    color: var(--text-secondary, #9e9e9e);
    font-size: 0.84rem;
    cursor: pointer;
    transition: all 0.22s ease;
    white-space: nowrap;
}

.stc-tab i {
    margin-left: 5px;
}

.stc-tab:hover {
    color: var(--text-primary, #e0e0e0);
}

.stc-tab.active {
    background: var(--bg-secondary, #1e1e1e);
    color: var(--text-primary, #e0e0e0);
    font-weight: 700;
    box-shadow: 0 -2px 0 var(--accent-color, #9c27b0) inset;
}

/* --- بدنه اسکرول‌شونده --- */
.stc-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--bg-quaternary, #2a2a2a) transparent;
}

.stc-body::-webkit-scrollbar {
    display: block;
    width: 6px;
}

.stc-body::-webkit-scrollbar-thumb {
    background: var(--bg-quaternary, #2a2a2a);
    border-radius: 3px;
}

.stc-pane {
    display: none;
    padding: 12px 12px 8px 12px;
}

.stc-pane.active {
    display: block;
    animation: stcFadeIn 0.24s ease;
}

@keyframes stcFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --- برچسب بخش‌ها --- */
.stc-field-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary, #9e9e9e);
    margin: 10px 2px 8px 2px;
}

.stc-field-label:first-child {
    margin-top: 0;
}

.stc-field-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--bg-tertiary, #252525);
}

/* =====================================================
   ۶) تب رنگ‌ها — باکس ترکیب رنگ دلخواه
   ===================================================== */

.stc-color-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    margin-bottom: 6px;
    background: var(--bg-quaternary, #2a2a2a);
    border: 1px solid transparent;
    border-radius: 10px;
    transition: border-color 0.2s ease;
}

.stc-color-row:hover {
    border-color: var(--bg-tertiary, #252525);
}

.stc-color-row input[type="color"] {
    width: 42px;
    height: 30px;
    flex-shrink: 0;
    padding: 2px;
    border: 2px solid var(--bg-tertiary, #252525);
    border-radius: 8px;
    background: var(--bg-tertiary, #252525);
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.stc-color-row input[type="color"]:hover {
    border-color: var(--accent-color, #9c27b0);
    transform: scale(1.05);
}

.stc-color-label {
    flex: 1;
    font-size: 0.83rem;
    color: var(--text-primary, #e0e0e0);
    line-height: 1.5;
    min-width: 0;
}

.stc-color-label small {
    display: block;
    font-size: 0.68rem;
    color: var(--text-secondary, #9e9e9e);
}

.stc-color-hex {
    font-size: 0.68rem;
    color: var(--text-secondary, #9e9e9e);
    direction: ltr;
    min-width: 52px;
    text-align: left;
}

/* --- دکمه پیشنهاد رنگ هماهنگ --- */
.stc-ghost-btn {
    width: 100%;
    margin: 4px 0 2px 0;
    padding: 9px 10px;
    border: 1px dashed var(--accent-color, #9c27b0);
    border-radius: 10px;
    background: transparent;
    color: var(--accent-color, #9c27b0);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.stc-ghost-btn:hover {
    background: var(--bg-quaternary, #2a2a2a);
}

.stc-ghost-btn i {
    margin-left: 6px;
}

/* --- ترکیب‌های آماده (نقطه شروع) --- */
#stc-combo-row,
.stc-combo-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.stc-combo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 8px 2px;
    background: var(--bg-quaternary, #2a2a2a);
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.22s ease;
}

.stc-combo:hover {
    transform: translateY(-2px);
}

.stc-combo.active {
    border-color: var(--accent-color, #9c27b0);
}

.stc-combo-swatch {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25), 0 2px 6px rgba(0, 0, 0, 0.3);
}

.stc-combo-name {
    font-size: 0.68rem;
    color: var(--text-secondary, #9e9e9e);
    line-height: 1.4;
    text-align: center;
}

.stc-combo.active .stc-combo-name {
    color: var(--text-primary, #e0e0e0);
}

/* --- پیش‌نمایش زنده (نسخه ۳.۳): کپی واقعی از کارت تایمر ---
   ساختار داخلی با همان کلاس‌های timer-app.js است (timer-card،
   timer-display، timer-price، customer-info و ...)؛ بنابراین
   همه استایل‌ها، فونت‌ها و رنگ‌های کارت «عیناً» مثل برنامه
   اعمال می‌شود. فقط چند تنظیم کوچک برای جا شدن در پنل:
   غیرقابل کلیک بودن، عرض کامل و حذف انیمیشن‌ها. */
.stc-preview-wrap {
    background: var(--bg-primary, #121212);
    border: 1px solid var(--bg-tertiary, #252525);
    border-radius: 12px;
    padding: 10px;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

#stc-panel .stc-preview-wrap .timer-card {
    width: 100%;
    max-width: 100%;
    margin: 0;
    pointer-events: none;           /* فقط نمایش؛ کلیک ندارد */
    user-select: none;
    transform: none !important;     /* افکت hover بی‌اثر شود */
    transition: none !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

#stc-panel .stc-preview-wrap .timer-card textarea {
    pointer-events: none;
    cursor: default;
}

/* در پیش‌نمایش، دکمه «توقف آلارم» مثل حالت عادی کارت مخفی است */
#stc-panel .stc-preview-wrap .timer-card:not(.alarm-active) .stop-alarm-btn {
    display: none;
}

/* =====================================================
   ۷) تب فونت — منوی کشویی + متن نمونه
   ===================================================== */

.stc-select {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-quaternary, #2a2a2a);
    border: 1px solid var(--bg-tertiary, #252525);
    border-radius: 10px;
    color: var(--text-primary, #e0e0e0);
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s ease;
}

.stc-select:hover,
.stc-select:focus {
    border-color: var(--accent-color, #9c27b0);
}

.stc-font-preview-box {
    background: var(--bg-quaternary, #2a2a2a);
    border: 1px dashed var(--bg-tertiary, #252525);
    border-radius: 12px;
    padding: 16px 12px;
    text-align: center;
}

#stc-font-preview {
    font-size: 1.75rem;
    line-height: 2;
    color: var(--text-primary, #e0e0e0);
    word-break: break-word;
}

#stc-font-preview2 {
    font-size: 1.02rem;
    line-height: 2;
    color: var(--text-secondary, #9e9e9e);
    margin-top: 6px;
}

.stc-font-note {
    font-size: 0.7rem;
    line-height: 1.9;
    color: var(--text-secondary, #9e9e9e);
    margin-top: 10px;
}

/* =====================================================
   ۸) تب اندازه — تنظیم جداگانه هر بخش
   ===================================================== */

.stc-size-row {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 10px;
    margin-bottom: 6px;
    background: var(--bg-quaternary, #2a2a2a);
    border-radius: 10px;
}

.stc-size-row.stc-global {
    background: linear-gradient(135deg, var(--bg-tertiary, #252525), var(--bg-quaternary, #2a2a2a));
    border: 1px solid var(--accent-color, #9c27b0);
    margin-bottom: 10px;
}

.stc-size-label {
    flex: 1;
    font-size: 0.8rem;
    color: var(--text-primary, #e0e0e0);
    line-height: 1.5;
    min-width: 0;
}

.stc-size-row.stc-global .stc-size-label {
    font-weight: 700;
}

.stc-size-slider {
    width: 100px;
    flex-shrink: 0;
    accent-color: var(--accent-color, #9c27b0);
    cursor: pointer;
}

.stc-size-value {
    min-width: 50px;
    text-align: center;
    background: var(--bg-tertiary, #252525);
    border-radius: 7px;
    padding: 5px 4px;
    font-size: 0.78rem;
    color: var(--text-primary, #e0e0e0);
    flex-shrink: 0;
}

/* =====================================================
   ۹) دکمه‌های بازنشانی و پانوشت
   ===================================================== */

.stc-reset-btn {
    width: 100%;
    margin-top: 10px;
    padding: 9px 10px;
    border: 1px solid var(--bg-tertiary, #252525);
    border-radius: 10px;
    background: var(--bg-quaternary, #2a2a2a);
    color: var(--text-secondary, #9e9e9e);
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.stc-reset-btn i {
    margin-left: 5px;
}

.stc-reset-btn:hover {
    color: var(--text-primary, #e0e0e0);
    border-color: var(--danger-color, #f44336);
}

.stc-reset-btn.stc-danger:hover {
    color: var(--danger-color, #f44336);
}

.stc-foot {
    flex-shrink: 0;
    padding: 6px 12px 10px 12px;
    border-top: 1px solid var(--bg-tertiary, #252525);
    background: var(--bg-secondary, #1e1e1e);
}

.stc-foot .stc-reset-btn {
    margin-top: 6px;
}

.stc-foot-note {
    display: block;
    text-align: center;
    font-size: 0.68rem;
    color: var(--text-secondary, #9e9e9e);
    margin-top: 7px;
    line-height: 1.7;
}

/* =====================================================
   ۱۰) تنظیمات برای عرض باریک سایدبار و موبایل
   ===================================================== */

/* اسلایدر و عدد درصدی کمی جمع‌تر تا در عرض سایدبار جا شوند */
.stc-size-slider {
    width: 88px;
}

.stc-size-value {
    min-width: 46px;
}

@media (max-width: 520px) {
    #stc-combo-row,
    .stc-combo-row {
        grid-template-columns: repeat(4, 1fr);
    }

    .stc-size-slider {
        width: 72px;
    }
}

/* کاهش حرکت برای کاربرانی که ترجیح می‌دهند */
@media (prefers-reduced-motion: reduce) {
    #stc-panel,
    body #stc-toggle,
    .stc-tab,
    .stc-combo {
        transition: none !important;
        animation: none !important;
    }
}
