/* ============================================
   🎨 admin-style.css - پنل مدیریت با تم سورمه‌ای و نقره‌ای
   ============================================ */

/* ---------- فونت‌ها ---------- */
@import url('https://fonts.googleapis.com/css2?family=Baloo+Bhaijaan+2:wght@400;500;600;700;800&family=Jost:wght@300;400;500;600;700&display=swap');

body {
  margin: 0;
  font-family: "Baloo Bhaijaan 2", "Jost", "Segoe UI", Tahoma, sans-serif;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  background-color: #f5f6fa;
  color: #1a1a2e;
  line-height: 1.7143;
}

/* همه المان‌ها به جز آیکون‌ها از فونت استفاده کنند */
*:not(i):not([class^="fa-"]):not([class*=" fa-"]):not([class^="bi-"]):not([class*=" bi-"]):not([class^="flaticon"]):not([class*=" flaticon"]) {
  font-family: "Baloo Bhaijaan 2", "Jost", sans-serif;
}

/* کلاس‌های وزن Baloo Bhaijaan 2 */
.baloo-light { font-weight: 300; }
.baloo-regular { font-weight: 400; }
.baloo-medium { font-weight: 500; }
.baloo-semibold { font-weight: 600; }
.baloo-bold { font-weight: 700; }
.baloo-extrabold { font-weight: 800; }

/* ---------- رنگ‌های اصلی تم سورمه‌ای و نقره‌ای ---------- */
:root {
    --navy-dark: #0f1a2c;
    --navy-primary: #1a2a3a;
    --navy-medium: #2c3e50;
    --navy-light: #34495e;
    --navy-lighter: #4a6a8a;
    --silver: #bdc3c7;
    --silver-light: #ecf0f1;
    --silver-medium: #d5dbdb;
    --silver-dark: #95a5a6;
    --white: #ffffff;
    --text-dark: #1a1a2e;
    --text-light: #7f8c8d;
    --shadow: 0 4px 20px rgba(15, 26, 44, 0.10);
    --shadow-hover: 0 8px 30px rgba(15, 26, 44, 0.18);
    --border-color: #d5dbdb;
    --danger: #e74c3c;
    --success: #27ae60;
    --warning: #f39c12;
    --info: #3498db;
}

/* ---------- استایل کلی ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Jost', 'Baloo Bhaijaan 2', sans-serif;
    background: var(--silver-light);
    color: var(--text-dark);
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--silver-light);
}
::-webkit-scrollbar-thumb {
    background: var(--navy-medium);
    border-radius: 10px;
}

/* ---------- سایدبار ---------- */
.sidebar {
    width: 280px;
    min-height: 100vh;
    background: var(--navy-dark);
    padding: 30px 20px;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    transition: all 0.3s ease;
    overflow-y: auto;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-brand {
    text-align: center;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 25px;
}

.sidebar-brand .logo-icon {
    width: 100px;
    height: auto;
    margin-bottom: 10px;
}

.sidebar-brand h2 {
    color: var(--white);
    font-size: 20px;
    font-weight: 700;
}

.sidebar-brand p {
    color: var(--silver-dark);
    font-size: 11px;
    letter-spacing: 2px;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 5px;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    gap: 12px;
    cursor: pointer;
}

.sidebar-menu li a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--white);
}

.sidebar-menu li a.active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-menu li a .icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.sidebar-menu li a .badge {
    margin-right: auto;
    background: var(--navy-medium);
    color: var(--white);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.sidebar-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-footer .admin-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

.sidebar-footer .admin-info .avatar {
    width: 40px;
    height: 40px;
    background: var(--navy-medium);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    color: var(--silver);
}

.sidebar-footer .admin-info .name {
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
}

.sidebar-footer .admin-info .role {
    font-size: 11px;
    color: var(--silver-dark);
}

.sidebar-footer .btn-logout {
    width: 100%;
    margin-top: 12px;
    padding: 10px;
    background: rgba(231, 76, 60, 0.12);
    border: 1px solid rgba(231, 76, 60, 0.2);
    border-radius: 10px;
    color: var(--danger);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
}

.sidebar-footer .btn-logout:hover {
    background: rgba(231, 76, 60, 0.2);
}

/* ---------- محتوای اصلی ---------- */
.main-content {
    margin-right: 280px;
    padding: 30px;
    flex: 1;
    width: calc(100% - 280px);
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--silver-medium);
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--navy-dark);
}

.page-header .date {
    color: var(--text-light);
    font-size: 14px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--navy-dark);
    font-size: 28px;
    cursor: pointer;
    padding: 5px;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
}

.sidebar-overlay.active {
    display: block;
}

/* ---------- بخش‌ها ---------- */
.section-card {
    background: var(--white);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.section-card .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--silver-light);
}

.section-card .section-header h3 {
    font-size: 18px;
    color: var(--navy-dark);
    font-weight: 700;
}

.section-card .section-header .count {
    font-size: 14px;
    color: var(--text-light);
    background: var(--silver-light);
    padding: 4px 14px;
    border-radius: 20px;
}

/* ---------- دکمه‌ها ---------- */
.btn-primary {
    padding: 10px 24px;
    background: var(--navy-dark);
    border: none;
    border-radius: 10px;
    color: var(--white);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 14px;
}

.btn-primary:hover {
    background: var(--navy-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    padding: 8px 20px;
    background: var(--silver-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-dark);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 13px;
}

.btn-secondary:hover {
    background: var(--silver);
}

.btn-danger {
    padding: 6px 14px;
    background: rgba(231, 76, 60, 0.12);
    border: 1px solid rgba(231, 76, 60, 0.2);
    border-radius: 8px;
    color: var(--danger);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 12px;
}

.btn-danger:hover {
    background: rgba(231, 76, 60, 0.2);
}

.btn-edit {
    padding: 6px 14px;
    background: rgba(44, 62, 80, 0.10);
    border: 1px solid rgba(44, 62, 80, 0.15);
    border-radius: 8px;
    color: var(--navy-medium);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 12px;
    margin-left: 5px;
}

.btn-edit:hover {
    background: rgba(44, 62, 80, 0.2);
}

.btn-approve {
    padding: 4px 12px;
    background: rgba(39, 174, 96, 0.12);
    border: 1px solid rgba(39, 174, 96, 0.2);
    border-radius: 6px;
    color: var(--success);
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
}

.btn-approve:hover {
    background: rgba(39, 174, 96, 0.2);
}

.btn-reject {
    padding: 4px 12px;
    background: rgba(243, 156, 18, 0.12);
    border: 1px solid rgba(243, 156, 18, 0.2);
    border-radius: 6px;
    color: var(--warning);
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
}

.btn-reject:hover {
    background: rgba(243, 156, 18, 0.2);
}

/* ---------- فرم‌ها ---------- */
.product-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    padding: 20px;
    background: var(--silver-light);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.product-form .full-width {
    grid-column: 1 / -1;
}

.product-form label {
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.product-form input,
.product-form select,
.product-form textarea {
    width: 100%;
    padding: 10px 14px;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-dark);
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.product-form input:focus,
.product-form select:focus,
.product-form textarea:focus {
    outline: none;
    border-color: var(--navy-medium);
    box-shadow: 0 0 0 4px rgba(44, 62, 80, 0.08);
}

.product-form input::placeholder,
.product-form textarea::placeholder {
    color: var(--silver-dark);
}

.product-form select option {
    background: var(--white);
    color: var(--text-dark);
}

.product-form textarea {
    resize: vertical;
    min-height: 80px;
}

.product-form .form-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 16px;
    border-top: 2px solid var(--border-color);
}

.product-form .form-actions .btn-cancel {
    padding: 10px 24px;
    background: var(--silver-light);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
}

.product-form .form-actions .btn-cancel:hover {
    background: var(--silver);
}

/* ---------- جدول ---------- */
.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table thead {
    background: var(--navy-dark);
}

table th {
    text-align: right;
    padding: 12px 16px;
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

table td {
    padding: 12px 16px;
    color: var(--text-dark);
    font-size: 14px;
    border-bottom: 1px solid var(--silver-light);
}

table tbody tr:hover td {
    background: rgba(44, 62, 80, 0.03);
}

/* ---------- بج‌های وضعیت ---------- */
.status-badge {
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
}

.status-badge.active {
    background: rgba(39, 174, 96, 0.12);
    color: var(--success);
}

.status-badge.inactive {
    background: rgba(231, 76, 60, 0.12);
    color: var(--danger);
}

.status-badge.pending {
    background: rgba(243, 156, 18, 0.12);
    color: var(--warning);
}

.status-badge.approved {
    background: rgba(39, 174, 96, 0.12);
    color: var(--success);
}

.status-badge.rejected {
    background: rgba(231, 76, 60, 0.12);
    color: var(--danger);
}

.status-badge.draft {
    background: rgba(149, 165, 166, 0.15);
    color: var(--silver-dark);
}

.status-badge.archived {
    background: rgba(149, 165, 166, 0.15);
    color: var(--silver-dark);
}

/* ---------- بج‌های دسته‌بندی ---------- */
.category-badge {
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
}

.category-badge.gardanband {
    background: rgba(44, 62, 80, 0.12);
    color: var(--navy-medium);
}
.category-badge.gushvare {
    background: rgba(231, 76, 60, 0.12);
    color: var(--danger);
}
.category-badge.dastband {
    background: rgba(39, 174, 96, 0.12);
    color: var(--success);
}
.category-badge.angoshtar {
    background: rgba(52, 152, 219, 0.12);
    color: var(--info);
}
.category-badge.sanjagh {
    background: rgba(243, 156, 18, 0.12);
    color: var(--warning);
}
.category-badge.set {
    background: rgba(155, 89, 182, 0.12);
    color: #8e44ad;
}
.category-badge.default {
    background: var(--silver-light);
    color: var(--text-light);
}

/* ---------- بج‌های جنسیت ---------- */
.gender-badge {
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
}

.gender-badge.female {
    background: rgba(231, 76, 60, 0.12);
    color: var(--danger);
}
.gender-badge.male {
    background: rgba(52, 152, 219, 0.12);
    color: var(--info);
}
.gender-badge.kids {
    background: rgba(243, 156, 18, 0.12);
    color: var(--warning);
}
.gender-badge.all {
    background: rgba(39, 174, 96, 0.12);
    color: var(--success);
}

/* ---------- بج‌های موجودی ---------- */
.stock-badge {
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    display: inline-block;
}

.stock-badge.in-stock {
    background: rgba(39, 174, 96, 0.12);
    color: var(--success);
}

.stock-badge.out-of-stock {
    background: rgba(231, 76, 60, 0.12);
    color: var(--danger);
}

.price-format {
    color: var(--navy-medium);
    font-weight: 600;
}

/* ---------- بج‌های نقش کاربر ---------- */
.user-role {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
}

.user-role.admin {
    background: rgba(44, 62, 80, 0.12);
    color: var(--navy-medium);
}

.user-role.user {
    background: var(--silver-light);
    color: var(--text-light);
}

/* ---------- بج‌های وضعیت نظرات ---------- */
.review-status {
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
}

.review-status.pending {
    background: rgba(243, 156, 18, 0.12);
    color: var(--warning);
}

.review-status.approved {
    background: rgba(39, 174, 96, 0.12);
    color: var(--success);
}

.review-status.rejected {
    background: rgba(231, 76, 60, 0.12);
    color: var(--danger);
}

/* ---------- فیلترها ---------- */
.reviews-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.reviews-filters select,
.reviews-filters input {
    padding: 8px 14px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--white);
    color: var(--text-dark);
    font-size: 13px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.reviews-filters select:focus,
.reviews-filters input:focus {
    outline: none;
    border-color: var(--navy-medium);
}

.reviews-filters input::placeholder {
    color: var(--silver-dark);
}

/* ---------- استوری ---------- */
.story-preview {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--navy-medium);
}

/* ---------- وضعیت‌های بارگذاری ---------- */
.loading-spinner {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
}

.loading-spinner .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--silver-light);
    border-top-color: var(--navy-medium);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
}

/* ---------- پیش‌نمایش تصاویر ---------- */
#multiImagePreviewContainer img,
#imagePreview img,
#customerImagePreviewContainer img,
#newsImagePreviewContainer img {
    max-width: 100px;
    max-height: 100px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    object-fit: cover;
}

/* ---------- ریسپانسیو ---------- */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(100%);
        width: 280px;
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .main-content {
        margin-right: 0;
        width: 100%;
        padding: 20px 15px;
    }
    .menu-toggle {
        display: block;
    }
    .product-form {
        grid-template-columns: 1fr;
    }
    .page-header h1 {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    table {
        font-size: 13px;
    }
    table th,
    table td {
        padding: 8px 12px;
    }
    .section-card {
        padding: 16px;
    }
    .reviews-filters {
        flex-direction: column;
    }
    .reviews-filters select,
    .reviews-filters input {
        width: 100%;
    }
    .product-form .form-actions {
        flex-direction: column;
    }
    .product-form .form-actions button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    table {
        font-size: 12px;
    }
    table th,
    table td {
        padding: 6px 8px;
    }
    .sidebar {
        width: 260px;
    }
    .sidebar-brand h2 {
        font-size: 18px;
    }
    .page-header h1 {
        font-size: 16px;
    }
}

  /* ==========================================
       📦 مودال سفارشات
       ========================================== */
    .modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(10, 22, 40, 0.85);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        z-index: 9999;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
        animation: modalFadeIn 0.3s ease;
    }
    
    @keyframes modalFadeIn {
        from {
            opacity: 0;
            transform: scale(0.95);
        }
        to {
            opacity: 1;
            transform: scale(1);
        }
    }
    
    .modal-container {
        background: linear-gradient(145deg, #0f1f33, #1a2f47);
        border-radius: 20px;
        max-width: 700px;
        width: 100%;
        max-height: 90vh;
        overflow: hidden;
        border: 1px solid rgba(192, 200, 212, 0.1);
        box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
        animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    @keyframes modalSlideUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .modal-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px 25px;
        border-bottom: 1px solid rgba(192, 200, 212, 0.08);
    }
    
    .modal-header h3 {
        color: #c0c8d4;
        font-size: 18px;
        font-weight: 600;
        margin: 0;
    }
    
    .modal-header h3 i {
        margin-left: 10px;
        color: #c0c8d4;
    }
    
    .modal-close {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(192, 200, 212, 0.1);
        border-radius: 50%;
        width: 36px;
        height: 36px;
        color: #c0c8d4;
        font-size: 16px;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .modal-close:hover {
        background: rgba(231, 76, 60, 0.2);
        border-color: rgba(231, 76, 60, 0.3);
        color: #e74c3c;
        transform: rotate(90deg);
    }
    
    .modal-body {
        padding: 25px;
        max-height: 60vh;
        overflow-y: auto;
    }
    
    .modal-body::-webkit-scrollbar {
        width: 4px;
    }
    
    .modal-body::-webkit-scrollbar-track {
        background: rgba(192, 200, 212, 0.05);
        border-radius: 10px;
    }
    
    .modal-body::-webkit-scrollbar-thumb {
        background: rgba(192, 200, 212, 0.2);
        border-radius: 10px;
    }
    
    .modal-footer {
        padding: 15px 25px;
        border-top: 1px solid rgba(192, 200, 212, 0.08);
        display: flex;
        justify-content: flex-end;
    }
    
    .btn-close-modal {
        background: rgba(26, 47, 71, 0.6);
        border: 1px solid rgba(192, 200, 212, 0.15);
        border-radius: 10px;
        padding: 10px 24px;
        color: #c0c8d4;
        font-size: 14px;
        cursor: pointer;
        transition: all 0.3s ease;
        font-family: inherit;
    }
    
    .btn-close-modal:hover {
        background: rgba(26, 47, 71, 0.9);
        border-color: rgba(192, 200, 212, 0.3);
    }
    
    .btn-close-modal i {
        margin-left: 8px;
    }
    
    /* ==========================================
       📋 جزئیات سفارش در مودال
       ========================================== */
    .detail-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .detail-item {
        background: rgba(255, 255, 255, 0.03);
        padding: 14px 18px;
        border-radius: 12px;
        border: 1px solid rgba(192, 200, 212, 0.05);
        transition: all 0.3s ease;
    }
    
    .detail-item:hover {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(192, 200, 212, 0.1);
    }
    
    .detail-item.full-width {
        grid-column: 1 / -1;
    }
    
    .detail-item .label {
        font-size: 11px;
        color: rgba(192, 200, 212, 0.4);
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 5px;
        display: block;
    }
    
    .detail-item .value {
        font-size: 15px;
        color: #c0c8d4;
        font-weight: 500;
        word-break: break-word;
    }
    
    .detail-item .value .badge-status {
        display: inline-block;
        padding: 3px 14px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 500;
    }
    
    .detail-item .value a {
        color: #c0c8d4;
        text-decoration: none;
        background: rgba(192, 200, 212, 0.1);
        padding: 4px 12px;
        border-radius: 6px;
        transition: all 0.3s ease;
    }
    
    .detail-item .value a:hover {
        background: rgba(192, 200, 212, 0.2);
    }
    
    /* ==========================================
       📱 واکنش‌گرایی مودال
       ========================================== */
    @media (max-width: 600px) {
        .detail-grid {
            grid-template-columns: 1fr;
        }
        
        .modal-container {
            max-width: 100%;
            margin: 10px;
            border-radius: 16px;
        }
        
        .modal-header {
            padding: 15px 18px;
        }
        
        .modal-header h3 {
            font-size: 16px;
        }
        
        .modal-body {
            padding: 18px;
        }
        
        .detail-item {
            padding: 12px 14px;
        }
    }

    /* استایل‌های فاکتورها */
.status-badge {
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
}

.status-paid {
    background: rgba(107,203,119,0.15);
    color: #6bcb77;
    border: 1px solid rgba(107,203,119,0.2);
}

.status-pending {
    background: rgba(255,217,61,0.15);
    color: #ffd93d;
    border: 1px solid rgba(255,217,61,0.2);
}

.status-cancelled {
    background: rgba(255,107,107,0.15);
    color: #ff6b6b;
    border: 1px solid rgba(255,107,107,0.2);
}

.status-shipped {
    background: rgba(100,149,237,0.15);
    color: #6495ed;
    border: 1px solid rgba(100,149,237,0.2);
}

.status-delivered {
    background: rgba(107,203,119,0.15);
    color: #6bcb77;
    border: 1px solid rgba(107,203,119,0.2);
}

.action-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.btn-action {
    padding: 5px 10px;
    border-radius: 6px;
    border: none;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(192,192,192,0.05);
    color: #C0C0C0;
    border: 1px solid rgba(192,192,192,0.15);
}

.btn-action:hover {
    background: rgba(192,192,192,0.1);
    transform: translateY(-2px);
}

.btn-view:hover {
    border-color: #D4AF37;
    color: #D4AF37;
}

.btn-status:hover {
    border-color: #ffd93d;
    color: #ffd93d;
}

.btn-delete:hover {
    border-color: #ff6b6b;
    color: #ff6b6b;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.stat-card {
    background: linear-gradient(145deg, #1a2a3a, #2a3a4a);
    border-radius: 16px;
    padding: 20px 25px;
    border: 1px solid rgba(192,192,192,0.08);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(192,192,192,0.15);
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.stat-value {
    font-size: 28px;
    font-weight: 600;
    color: #D4AF37;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: rgba(192,192,192,0.5);
    letter-spacing: 1px;
}

/* ============================================
🎨 تنظیم z-index برای SweetAlert
============================================ */
.swal2-container-discount {
    z-index: 9999998 !important;
}

.swal2-container.swal2-center {
    z-index: 9999998 !important;
}

/* مودال کد تخفیف */
#discountModal {
    z-index: 9999999 !important;
}

#discountModal .modal-container {
    z-index: 10000000 !important;
    position: relative !important;
}

/* جلوگیری از نمایش SweetAlert پشت مودال */
.swal2-backdrop-show {
    z-index: 9999997 !important;
}