﻿/* ============================================
   استایل‌های اختصاصی - جایزه قلم آوا
   ============================================ */

:root {
    /* ============================================================
       رنگ‌ها
       ============================================================ */
    --gold: #d9a936;
    --gold-light: #f1cb65;
    --gold-bright: #ffd966;
    --gold-dark: #b8860b;
    --gold-glow: rgba(217, 169, 54, 0.25);
    /* ============================================================
       پس‌زمینه‌ها
       ============================================================ */
    --bg-dark: #0a1525;
    --bg-panel: #11203a;
    --bg-card: #1a2d4a;
    --bg-input: #1a2d4a;
    --bg-input-focus: #23406a;
    --bg-hover: rgba(255, 255, 255, 0.06);
    /* ============================================================
       متن‌ها
       ============================================================ */
    --text-primary: #f0f2f5;
    --text-secondary: #e0e4ec;
    --text-muted: #b0bcca;
    --text-dark: #0a1120;
    --text-placeholder: #8899aa;
    /* ============================================================
       مرزها
       ============================================================ */
    --border-light: rgba(255, 255, 255, 0.12);
    --border-gold: rgba(217, 169, 54, 0.35);
    --border-input: rgba(255, 255, 255, 0.15);
    /* ============================================================
       سایه‌ها
       ============================================================ */
    --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.7);
    --shadow-gold: 0 0 30px rgba(217, 169, 54, 0.35);
    --shadow-success: 0 0 25px rgba(52, 168, 117, 0.3);
    /* ============================================================
       گردی گوشه‌ها
       ============================================================ */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    /* ============================================================
       فاصله‌ها
       ============================================================ */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    /* ============================================================
       تصاویر اسلایدر
       ============================================================ */
    /* نوع ۱ (استاندارد) */
    --img-slide1-desktop: 400px;
    --img-slide1-tablet: 300px;
    --img-slide1-mobile: 200px;
    --img-slide1-width: auto;
    --img-slide1-maxwidth-desktop: 90%;
    --img-slide1-maxwidth-tablet: 80%;
    --img-slide1-maxwidth-mobile: 70%;
    /* نوع ۲ (فقط تصویر) */
    --slide2-maxheight-desktop: 40vh;
    --slide2-maxheight-mobile: 50vh;
}

/* ============================================
   ریست فونت و پس‌زمینه
   ============================================ */

body {
    background: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'BNazanin', Tahoma, 'Vazirmatn', sans-serif;
    line-height: 1;
    direction: rtl;
}

/* ============================================
   فرم‌ها و ورودی‌ها
   ============================================ */

.form-control,
.form-select {
    background: var(--bg-input) !important;
    border: 1px solid var(--border-input) !important;
    color: #ffffff !important;
    border-radius: var(--radius-md) !important;
    padding: 13px 18px !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
}

    .form-control::placeholder {
        color: var(--text-placeholder) !important;
        opacity: 1;
    }

    .form-control:focus,
    .form-select:focus {
        border-color: var(--gold-light) !important;
        box-shadow: 0 0 0 3px rgba(217, 169, 54, 0.2) !important;
        background: var(--bg-input-focus) !important;
        color: #ffffff !important;
        outline: none !important;
    }

    .form-control.is-invalid {
        border-color: #dc3545 !important;
        box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2) !important;
    }

    .form-control.is-valid {
        border-color: #28a745 !important;
        box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.2) !important;
    }

    .form-select option {
        background: var(--bg-panel) !important;
        color: #ffffff !important;
    }

.form-label {
    color: var(--text-secondary) !important;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    display: block;
}

.form-text {
    color: var(--text-muted) !important;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: block;
}

    .form-text .fa,
    .form-text .fas,
    .form-text .far {
        color: var(--gold-light);
        margin-left: 4px;
    }

.field-required {
    color: #ef7a8a;
    margin-right: 2px;
}

.field-optional {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.8rem;
}

/* ============================================
   دکمه‌ها
   ============================================ */

.btn {
    border-radius: var(--radius-md) !important;
    padding: 13px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    transition: all 0.3s ease !important;
    border: none !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    text-decoration: none !important;
}

    .btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        transform: none !important;
        box-shadow: none !important;
    }

.btn-donate {
    background: linear-gradient(135deg, #f1cb65, #d9a936);
    color: #0a1120;
    font-weight: 800;
    border: none;
    padding: 12px 28px;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(217, 169, 54, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

    .btn-donate:hover {
        transform: translateY(-2px);
        box-shadow: 0 0 35px rgba(217, 169, 54, 0.4);
        color: #0a1120;
        text-decoration: none;
    }

.btn-outline-light {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #f0f2f5;
    background: transparent;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

    .btn-outline-light:hover {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.6);
        color: #ffffff;
        text-decoration: none;
    }

.btn-gold {
    background: linear-gradient(135deg, var(--gold-light), var(--gold)) !important;
    color: var(--text-dark) !important;
}

    .btn-gold:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-gold);
        color: var(--text-dark) !important;
    }

.btn-success {
    background: linear-gradient(135deg, #34a875, #1f7a52) !important;
    color: #ffffff !important;
}

    .btn-success:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-success);
        color: #ffffff !important;
    }

.btn-outline {
    background: transparent !important;
    border: 1px solid var(--border-input) !important;
    color: var(--text-secondary) !important;
}

    .btn-outline:hover {
        background: var(--bg-hover) !important;
        border-color: rgba(255, 255, 255, 0.25) !important;
        color: #ffffff !important;
    }

.btn-back {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid var(--border-input) !important;
    color: var(--text-secondary) !important;
}

    .btn-back:hover {
        background: rgba(255, 255, 255, 0.1) !important;
        border-color: rgba(255, 255, 255, 0.25) !important;
        color: #ffffff !important;
        text-decoration: none !important;
    }

.btn-danger {
    background: rgba(220, 53, 69, 0.1) !important;
    border: 1px solid rgba(220, 53, 69, 0.2) !important;
    color: #ef7a8a !important;
}

    .btn-danger:hover {
        background: rgba(220, 53, 69, 0.2) !important;
        border-color: rgba(220, 53, 69, 0.35) !important;
        color: #f5a3a3 !important;
    }

.btn-lg {
    padding: 14px 32px;
    font-size: 1.1rem;
    border-radius: 12px;
}

/* ============================================
   کارت‌ها و پنل‌ها
   ============================================ */

.card {
    background: linear-gradient(145deg, var(--bg-card), var(--bg-panel)) !important;
    border: 1px solid var(--border-light) !important;
    border-radius: var(--radius-xl) !important;
    padding: var(--spacing-lg) !important;
    box-shadow: var(--shadow-card);
}

.card-dark {
    background: linear-gradient(145deg, var(--bg-card), var(--bg-panel)) !important;
    border: 1px solid var(--border-light) !important;
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
}

/* ============================================
   هشدارها و پیام‌ها (Alerts)
   ============================================ */

.alert {
    border-radius: var(--radius-md) !important;
    border: none !important;
    padding: 14px 18px !important;
    margin-bottom: var(--spacing-md) !important;
}

.alert-success {
    background: rgba(52, 168, 117, 0.15) !important;
    color: #6ddfa3 !important;
    border: 1px solid rgba(52, 168, 117, 0.2) !important;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.15) !important;
    color: #f5a3a3 !important;
    border: 1px solid rgba(220, 53, 69, 0.2) !important;
}

.alert-warning {
    background: rgba(241, 203, 101, 0.12) !important;
    color: #f5d48f !important;
    border: 1px solid rgba(241, 203, 101, 0.15) !important;
}

.alert-info {
    background: rgba(13, 202, 240, 0.1) !important;
    color: #7ad8f0 !important;
    border: 1px solid rgba(13, 202, 240, 0.15) !important;
}

/* ============================================
   ورودی‌های OTP
   ============================================ */

.otp-input {
    width: 45px;
    height: 55px;
    font-size: 22px;
    font-weight: bold;
    border: 2px solid var(--border-input);
    border-radius: var(--radius-sm);
    text-align: center;
    background: rgba(255, 255, 255, 0.06) !important;
    color: #ffffff !important;
    transition: all 0.2s ease;
}

    .otp-input:focus {
        border-color: var(--gold-light);
        box-shadow: 0 0 0 3px rgba(217, 169, 54, 0.2);
        outline: none;
        background: rgba(255, 255, 255, 0.1) !important;
    }

    .otp-input:disabled {
        opacity: 0.4;
        cursor: not-allowed;
    }

/* ============================================
   تایمر و نوار پیشرفت
   ============================================ */

.timer-text {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
    margin-top: 0.25rem;
}

.progress {
    height: 6px;
    background-color: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    overflow: hidden;
    direction: ltr;
}

.progress-bar {
    background: linear-gradient(90deg, var(--gold), var(--gold-light)) !important;
    transition: width 1s linear;
}

/* ============================================
   پیام‌های Toastr
   ============================================ */

.toast-success {
    background-color: #1a6b44 !important;
}

.toast-error {
    background-color: #6b1a1a !important;
}

.toast-warning {
    background-color: #6b4a1a !important;
}

.toast-info {
    background-color: #1a3a6b !important;
}

/* ============================================
   لینک‌های طلایی
   ============================================ */

.link-gold {
    color: var(--gold-light) !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

    .link-gold:hover {
        color: var(--gold-bright) !important;
        text-decoration: underline !important;
    }

    .link-gold.disabled {
        color: var(--text-muted) !important;
        cursor: not-allowed !important;
        text-decoration: none !important;
    }

/* ============================================
   کلاس‌های کمکی
   ============================================ */

.text-light-high {
    color: #ffffff !important;
}

.text-light-mid {
    color: var(--text-secondary) !important;
}

.text-muted-light {
    color: var(--text-muted) !important;
}

.bg-panel-light {
    background: var(--bg-panel) !important;
}

.bg-card-light {
    background: var(--bg-card) !important;
}

.shadow-gold {
    box-shadow: var(--shadow-gold) !important;
}

.border-gold {
    border-color: var(--border-gold) !important;
}

.border-light {
    border-color: var(--border-light) !important;
}

.mt-1 {
    margin-top: var(--spacing-xs);
}

.mt-2 {
    margin-top: var(--spacing-sm);
}

.mt-3 {
    margin-top: var(--spacing-md);
}

.mt-4 {
    margin-top: var(--spacing-lg);
}

.mt-5 {
    margin-top: var(--spacing-xl);
}

.mb-1 {
    margin-bottom: var(--spacing-xs);
}

.mb-2 {
    margin-bottom: var(--spacing-sm);
}

.mb-3 {
    margin-bottom: var(--spacing-md);
}

.mb-4 {
    margin-bottom: var(--spacing-lg);
}

.mb-5 {
    margin-bottom: var(--spacing-xl);
}

.d-none {
    display: none !important;
}

.d-block {
    display: block !important;
}

.d-flex {
    display: flex !important;
}

.d-grid {
    display: grid !important;
}

/* ============================================
   اسلایدر هدر
   ============================================ */

.hero-slider {
    background: radial-gradient(circle at 20% 10%, rgba(216, 166, 52, .08), transparent 25%), #060b16;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
    min-height: 515px;
    position: relative;
    overflow: hidden;
}

    .hero-slider .swiper-slide {
        display: flex;
        align-items: center;
        min-height: 515px;
        padding: 60px 0;
    }

/* ============================================
   اسلایدر نوع ۱ (تصویر + متن)
   ============================================ */

.slide1-image {
    max-height: var(--img-slide1-desktop) !important;
    width: var(--img-slide1-width) !important;
    max-width: var(--img-slide1-maxwidth-desktop) !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
}

@media (max-width: 992px) {
    .slide1-image {
        max-height: var(--img-slide1-tablet) !important;
        max-width: var(--img-slide1-maxwidth-tablet) !important;
    }
}

@media (max-width: 768px) {
    .slide1-image {
        max-height: var(--img-slide1-mobile) !important;
        max-width: var(--img-slide1-maxwidth-mobile) !important;
    }
}

/* ============================================
   اسلایدر نوع ۲ (فقط تصویر)
   ============================================ */

/* تصویر دسکتاپ (فقط در دسکتاپ/تبلت) */
.slide2-image-desktop {
    display: block !important;
    width: 100% !important;
    height: auto !important; /* ← ارتفاع خودکار بر اساس عرض */
    max-height: var(--slide2-maxheight-desktop) !important; /* ← حداکثر ارتفاع (۸۰٪ صفحه) */
    object-fit: contain !important; /* ← تصویر کامل و بدون برش */
    margin: 0 auto !important;
}

/* تصویر موبایل (فقط در موبایل) */
.slide2-image-mobile {
    display: none !important;
    width: 100% !important;
    height: auto !important; /* ← ارتفاع خودکار بر اساس عرض */
    max-height: var(--slide2-maxheight-mobile) !important; /* ← حداکثر ارتفاع (۶۰٪ صفحه) */
    object-fit: contain !important;
    margin: 0 auto !important;
}

/* در موبایل: تصویر دسکتاپ مخفی، تصویر موبایل نمایش داده شود */
@media (max-width: 768px) {
    .slide2-image-desktop {
        display: none !important;
    }

    .slide2-image-mobile {
        display: block !important;
    }
}

/* ============================================
   متن‌های اسلایدر نوع ۱
   ============================================ */

.hero-slider .slide1-kicker {
    color: var(--gold-light, #f1cb65) !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-slider .slide1-title {
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

    .hero-slider .slide1-title span {
        color: var(--gold-light, #f1cb65);
        text-shadow: 0 0 20px rgba(217, 169, 54, 0.3);
    }

.hero-slider .slide1-desc {
    color: #e8ecf1 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* ============================================
   دکمه‌های ناوبری اسلایدر
   ============================================ */

.hero-slider .swiper-button-prev,
.hero-slider .swiper-button-next {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 42px !important;
    height: 42px !important;
    background: rgba(0, 0, 0, 0.35) !important;
    backdrop-filter: blur(4px);
    border-radius: 50% !important;
    color: #f1cb65 !important;
    z-index: 10 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease;
}

    .hero-slider .swiper-button-prev:hover,
    .hero-slider .swiper-button-next:hover {
        background: rgba(217, 169, 54, 0.25) !important;
        transform: translateY(-50%) scale(1.1) !important;
    }

    .hero-slider .swiper-button-prev::after,
    .hero-slider .swiper-button-next::after {
        font-size: 18px !important;
        font-weight: bold !important;
    }

.hero-slider .swiper-button-prev {
    right: 15px !important;
    left: auto !important;
}

.hero-slider .swiper-button-next {
    left: 15px !important;
    right: auto !important;
}

/* ============================================
   اسلایدر حامیان
   ============================================ */

.sponsorSwiper .swiper-button-prev,
.sponsorSwiper .swiper-button-next {
    width: 38px !important;
    height: 38px !important;
    background: rgba(0, 0, 0, 0.25) !important;
    border-radius: 50% !important;
    color: #f1cb65 !important;
    transition: all 0.3s ease;
}

    .sponsorSwiper .swiper-button-prev:hover,
    .sponsorSwiper .swiper-button-next:hover {
        background: rgba(217, 169, 54, 0.2) !important;
        transform: scale(1.1) !important;
    }

    .sponsorSwiper .swiper-button-prev::after,
    .sponsorSwiper .swiper-button-next::after {
        font-size: 14px !important;
        font-weight: bold !important;
    }

/* ============================================
   نقاط اسلایدر
   ============================================ */

.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.3) !important;
    opacity: 1 !important;
}

.swiper-pagination-bullet-active {
    background: var(--gold-light, #f1cb65) !important;
    box-shadow: 0 0 0 4px rgba(240, 200, 92, .15);
}

/* ============================================
   واکنش‌گرایی اسلایدر
   ============================================ */

@media (max-width: 768px) {
    .hero-slider .swiper-slide {
        padding: 30px 0;
    }

    .hero-slider .swiper-button-prev,
    .hero-slider .swiper-button-next {
        width: 32px !important;
        height: 32px !important;
        background: rgba(0, 0, 0, 0.2) !important;
    }

        .hero-slider .swiper-button-prev::after,
        .hero-slider .swiper-button-next::after {
            font-size: 13px !important;
        }

    .hero-slider .swiper-button-prev {
        right: 6px !important;
    }

    .hero-slider .swiper-button-next {
        left: 6px !important;
    }

    .sponsorSwiper .swiper-button-prev,
    .sponsorSwiper .swiper-button-next {
        width: 30px !important;
        height: 30px !important;
    }

        .sponsorSwiper .swiper-button-prev::after,
        .sponsorSwiper .swiper-button-next::after {
            font-size: 11px !important;
        }
}

@media (max-width: 400px) {
    .hero-slider .swiper-button-prev,
    .hero-slider .swiper-button-next {
        width: 26px !important;
        height: 26px !important;
        background: rgba(0, 0, 0, 0.1) !important;
    }

        .hero-slider .swiper-button-prev::after,
        .hero-slider .swiper-button-next::after {
            font-size: 10px !important;
        }

    .hero-slider .swiper-button-prev {
        right: 3px !important;
    }

    .hero-slider .swiper-button-next {
        left: 3px !important;
    }

    .sponsorSwiper .swiper-button-prev,
    .sponsorSwiper .swiper-button-next {
        width: 24px !important;
        height: 24px !important;
    }
}

/* ============================================
   واکنش‌گرایی (سایر بخش‌ها)
   ============================================ */

@media (max-width: 768px) {
    .card,
    .card-dark {
        padding: var(--spacing-md) !important;
    }

    .form-control,
    .form-select {
        font-size: 0.9rem !important;
        padding: 11px 14px !important;
    }

    .btn {
        padding: 11px !important;
        font-size: 0.9rem !important;
    }

    .otp-input {
        width: 38px;
        height: 48px;
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .card,
    .card-dark {
        padding: var(--spacing-sm) !important;
        border-radius: var(--radius-lg) !important;
    }

    .form-control,
    .form-select {
        font-size: 0.85rem !important;
        padding: 10px 12px !important;
    }

    .btn {
        padding: 10px !important;
        font-size: 0.85rem !important;
    }

    .otp-input {
        width: 34px;
        height: 42px;
        font-size: 16px;
    }
}

/* ============================================
   متن‌های راهنما
   ============================================ */

.help-text {
    color: #e8ecf0 !important;
    font-size: 0.85rem !important;
    display: block !important;
    margin-top: 6px !important;
}

    .help-text i {
        color: var(--gold-light, #f1cb65) !important;
        margin-left: 4px !important;
    }

.help-text-light {
    color: #d5d9e1 !important;
    font-size: 0.85rem !important;
    display: block !important;
    margin-top: 4px !important;
}

    .help-text-light i {
        color: var(--gold-light, #f1cb65) !important;
        margin-left: 4px !important;
    }

/* ============================================================
   تنظیمات دکمه همبرگر (Navbar Toggler) - جایزه قلم آوا
   ============================================================ */

/* ۱. دکمه همبرگر */
.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3) !important; /* رنگ حاشیه */
    padding: 4px 8px !important; /* اندازه دکمه */
    margin-left: auto !important; /* چیدمان */
}

/* ۲. آیکون همبرگر (سه خط) */
.navbar-toggler-icon {
    width: 24px !important; /* عرض آیکون */
    height: 24px !important; /* ارتفاع آیکون */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important; /* سه خط سفید */
}

/* ============================================================ */
/* استایل‌های مربوط به مدیریت رویدادها - انواع داستان */
/* ============================================================ */

/* ============================================================ */
/* استایل‌های انتخاب انواع داستان (Story Types) */
/* ============================================================ */
.story-type-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, .06);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, .08);
    transition: all 0.2s ease;
    cursor: pointer;
}

    .story-type-checkbox:hover {
        background: rgba(255, 217, 102, .08);
        border-color: rgba(255, 217, 102, .25);
    }

    /* ✅ رنگ متن روشن برای همه محتویات */
    .story-type-checkbox * {
        color: #ffffff !important;
    }

    /* ✅ استایل چک‌باکس اصلی */
    .story-type-checkbox input[type="checkbox"] {
        width: 18px;
        height: 18px;
        accent-color: #ffd966;
        cursor: pointer;
        flex-shrink: 0;
    }

    /* ✅ استایل برچسب ویژه */
    .story-type-checkbox .special-badge {
        background: rgba(255, 217, 102, .15);
        color: #ffd966 !important;
        font-size: 0.65rem;
        padding: 2px 10px;
        border-radius: 12px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s ease;
        user-select: none;
        border: 1px solid rgba(255, 217, 102, .1);
    }

        .story-type-checkbox .special-badge:hover {
            background: rgba(255, 217, 102, .25);
            border-color: rgba(255, 217, 102, .3);
        }

    /* ✅ استایل چک‌باکس ویژه */
    .story-type-checkbox .special-checkbox {
        accent-color: #ff6b6b;
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }

    /* ✅ استایل متن اصلی (عنوان نوع داستان) */
    .story-type-checkbox .story-type-title {
        color: #ffffff !important;
        font-weight: 500;
        font-size: 0.9rem;
        flex: 1;
    }

    /* ✅ استایل آیکون */
    .story-type-checkbox i {
        color: #8899aa !important;
        font-size: 0.9rem;
        width: 20px;
        text-align: center;
    }

/* ============================================================ */
/* گرید انواع داستان */
/* ============================================================ */
.story-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

    /* ✅ رنگ متن در گرید */
    .story-types-grid * {
        color: #ffffff !important;
    }

    .story-types-grid .special-badge {
        color: #ffd966 !important;
    }

/* ============================================================ */
/* استایل‌های تگ نوع داستان (Story Type Tags) - برای نمایش */
/* ============================================================ */
.story-type-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(100, 200, 255, 0.1);
    color: #7ad0e8;
    padding: 4px 14px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(100, 200, 255, 0.08);
}

    .story-type-tag.special {
        background: rgba(255, 217, 102, 0.12);
        color: #ffd966;
        border-color: rgba(255, 217, 102, 0.15);
    }

    .story-type-tag i {
        font-size: 0.7rem;
        opacity: 0.7;
    }

    .story-type-tag * {
        color: inherit !important;
    }

/* ============================================================ */
/* استایل‌های بدج نوع داستان (Story Type Badge) - برای نمایش */
/* ============================================================ */
.story-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(100, 200, 255, 0.08);
    color: #7ad0e8;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 600;
}

    .story-type-badge.special {
        background: rgba(255, 217, 102, 0.12);
        color: #ffd966;
    }

    .story-type-badge i {
        font-size: 0.6rem;
        opacity: 0.7;
    }

    .story-type-badge * {
        color: inherit !important;
    }

/* ============================================================ */
/* استایل‌های فیلتر و کارت‌ها (مدیریت داستان‌ها) */
/* ============================================================ */
.badge-status {
    font-size: 0.7rem;
    padding: 4px 14px;
    border-radius: 30px;
}

.filter-card {
    background: linear-gradient(145deg, #1a2d4a, #0f1d30);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
}

.btn-filter {
    background: linear-gradient(135deg, #f1cb65, #d9a936);
    color: #0a1120;
    font-weight: 700;
    border: none;
    padding: 10px 24px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

    .btn-filter:hover {
        transform: translateY(-2px);
        box-shadow: 0 0 25px rgba(217,169,54,0.35);
        color: #0a1120;
    }

.btn-reset {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    color: #e0e4ec;
    padding: 10px 24px;
    border-radius: 10px;
}

    .btn-reset:hover {
        background: rgba(255,255,255,.08);
        color: #ffffff;
    }

/* ============================================================ */
/* استایل‌های فرم وضعیت و استثنای سن (مدیریت داستان‌ها) */
/* ============================================================ */
.status-form {
    background: rgba(255,255,255,.02);
    border: 1px solid rgba(255,255,255,.04);
    border-radius: 12px;
    padding: 20px 24px;
    margin-top: 16px;
}

    .status-form .form-label {
        color: #e0e4ec;
        font-weight: 600;
        font-size: 0.8rem;
        margin-bottom: 4px;
    }

    .status-form .form-control,
    .status-form .form-select {
        background: rgba(255,255,255,.04) !important;
        border: 1px solid rgba(255,255,255,.08) !important;
        color: #ffffff !important;
        border-radius: 10px !important;
        padding: 10px 16px !important;
        font-size: 0.9rem !important;
    }

        .status-form .form-control:focus,
        .status-form .form-select:focus {
            border-color: #f1cb65 !important;
            box-shadow: 0 0 0 3px rgba(217,169,54,.2) !important;
        }

        .status-form .form-control::placeholder {
            color: #8899aa;
        }

    .status-form .form-check-input {
        background: rgba(255,255,255,.04) !important;
        border-color: rgba(255,255,255,.15) !important;
    }

        .status-form .form-check-input:checked {
            background-color: #ffd966 !important;
            border-color: #ffd966 !important;
        }

    .status-form .form-check-label {
        color: #b0bcca;
        font-size: 0.85rem;
    }

.age-exception-box {
    background: rgba(255,217,102,0.05);
    border: 1px solid rgba(255,217,102,0.1);
    border-radius: 12px;
    padding: 16px 20px;
    margin-top: 16px;
}

    .age-exception-box .exception-title {
        color: #ffd966;
        font-weight: 700;
        font-size: 1rem;
    }

/* ============================================================ */
/* استایل‌های جدول تاریخچه (مدیریت داستان‌ها) */
/* ============================================================ */
.history-table {
    background: rgba(255,255,255,.02);
    border-radius: 12px;
    overflow: hidden;
}

    .history-table th {
        color: #ffd966;
        font-weight: 700;
        padding: 10px 16px;
        border-bottom: 1px solid rgba(255,255,255,.06);
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .history-table td {
        color: #e0e4ec;
        padding: 10px 16px;
        border-bottom: 1px solid rgba(255,255,255,.04);
        vertical-align: middle;
        font-size: 0.85rem;
    }

    .history-table tr:hover td {
        background: rgba(255,255,255,.02);
    }

/* ============================================================ */
/* استایل‌های جدول مدیریت داستان‌ها (Index) */
/* ============================================================ */
.table-dark-custom {
    background: rgba(255,255,255,.02);
    border-radius: 12px;
    overflow: hidden;
}

    .table-dark-custom th {
        color: #ffd966;
        font-weight: 700;
        border-bottom: 1px solid rgba(255,255,255,.06);
        padding: 12px 16px;
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .table-dark-custom td {
        color: #e0e4ec;
        padding: 12px 16px;
        border-bottom: 1px solid rgba(255,255,255,.04);
        vertical-align: middle;
    }

    .table-dark-custom tr:hover td {
        background: rgba(255,255,255,.02);
    }

/* ============================================================ */
/* استایل‌های دکمه‌ها و لینک‌های مدیریت */
/* ============================================================ */
.story-title-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}

    .story-title-link:hover {
        color: #ffd966;
    }

.story-code {
    font-family: 'Courier New', monospace;
    direction: ltr;
    color: #8899aa;
    font-size: 0.75rem;
    background: rgba(255,255,255,.04);
    padding: 2px 10px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.story-code-display {
    font-family: 'Courier New', monospace;
    direction: ltr;
    color: #ffd966;
    background: rgba(255,217,102,0.08);
    padding: 2px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.user-link {
    color: #ffd966;
    text-decoration: none;
}

    .user-link:hover {
        color: #f1cb65;
        text-decoration: underline;
    }

/* ============================================================ */
/* استایل‌های حالت خالی (Empty State) */
/* ============================================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #8899aa;
}

    .empty-state i {
        font-size: 3rem;
        color: #8899aa;
        margin-bottom: 16px;
        opacity: 0.5;
    }

/* ============================================================ */
/* استایل‌های قسمت‌های مختلف مدیریت داستان‌ها */
/* ============================================================ */
.story-container {
    background: linear-gradient(145deg, #1a2d4a, #0f1d30);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 16px;
    padding: 30px;
    margin-top: 20px;
}

.story-title {
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.story-meta {
    color: #8899aa;
    font-size: 0.85rem;
}

    .story-meta .badge {
        font-size: 0.75rem;
        padding: 5px 14px;
        border-radius: 30px;
    }


.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 6px 20px;
    margin: 12px 0;
    padding: 14px 18px;
    background: rgba(0,0,0,0.15);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.04);
}

.info-item {
    display: flex;
    flex-direction: column;
    padding: 3px 0;
}

    .info-item .label {
        color: #8899aa;
        font-size: 0.65rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .info-item .value {
        color: #ffffff;
        font-size: 0.9rem;
        font-weight: 500;
    }

        .info-item .value .badge {
            font-size: 0.7rem;
            padding: 3px 10px;
        }

.section-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .section-title i {
        color: #ffd966;
    }

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.06);
}

.final-result {
    background: rgba(255,217,102,0.05);
    border: 1px solid rgba(255,217,102,0.1);
    border-radius: 12px;
    padding: 16px 20px;
    margin-top: 16px;
}

    .final-result .result-title {
        color: #ffd966;
        font-weight: 700;
        font-size: 1.1rem;
    }

    .final-result .result-score {
        font-size: 1.8rem;
        font-weight: 800;
        color: #ffffff;
    }

.review-box {
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,.04);
    border-radius: 12px;
    padding: 16px 20px;
    margin-top: 12px;
}

    .review-box .review-title {
        color: #ffd966;
        font-weight: 700;
        font-size: 0.95rem;
    }

    .review-box .review-meta {
        color: #8899aa;
        font-size: 0.8rem;
    }

    .review-box .review-comment {
        color: #e0e4ec;
        font-size: 0.95rem;
        line-height: 1;
        margin-top: 8px;
        padding: 12px 16px;
        background: rgba(0,0,0,0.15);
        border-radius: 8px;
    }
