﻿body {
}
/* Content/modal-styles.css */

/* =============================================
   استایل‌های طلایی
   ============================================= */

:root {
    --gold-primary: #d4a843;
    --gold-light: #f5e8c8;
    --gold-dark: #b8922e;
    --gold-gradient: linear-gradient(135deg, #d4a843 0%, #b8922e 100%);
    --gold-light-bg: linear-gradient(135deg, #fbf3e0 0%, #f5e8c8 100%);
}

/* کلاس‌های طلایی */
.text-gold {
    color: var(--gold-primary) !important;
}

.bg-gold-light {
    background: var(--gold-light-bg) !important;
}

.border-gold {
    border: 2px solid var(--gold-primary) !important;
}

.btn-gold {
    background: var(--gold-gradient) !important;
    color: #fff !important;
    border: none !important;
    transition: all 0.3s ease !important;
}

    .btn-gold:hover {
        background: linear-gradient(135deg, #c49a3a 0%, #a88228 100%) !important;
        color: #fff !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 8px 25px rgba(212, 168, 67, 0.3) !important;
    }

.btn-outline-gold {
    border: 2px solid var(--gold-primary) !important;
    color: var(--gold-primary) !important;
    background: transparent !important;
    transition: all 0.3s ease !important;
}

    .btn-outline-gold:hover {
        background: var(--gold-gradient) !important;
        color: #fff !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 8px 25px rgba(212, 168, 67, 0.2) !important;
    }

/* =============================================
   مودال‌های طلایی
   ============================================= */

.modal-gold .modal-content {
    border: none !important;
    overflow: hidden !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;
}

.modal-gold .modal-header {
    background: var(--gold-light-bg) !important;
    border-bottom: 2px solid var(--gold-primary) !important;
    padding: 20px 30px !important;
}

    .modal-gold .modal-header .modal-title {
        color: #211e3b !important;
        font-weight: 700 !important;
    }

.modal-gold .modal-body {
    padding: 30px !important;
    background: #fff !important;
}

.modal-gold .btn-close {
    background: rgba(0, 0, 0, 0.05) !important;
    border-radius: 50% !important;
    padding: 10px !important;
    transition: all 0.3s ease !important;
    opacity: 0.7 !important;
}

    .modal-gold .btn-close:hover {
        background: rgba(0, 0, 0, 0.1) !important;
        transform: rotate(90deg) !important;
        opacity: 1 !important;
    }

/* =============================================
   کارت‌های پرمیوم
   ============================================= */

.premium-card {
    background: #fff !important;
    border-radius: 16px !important;
    padding: 30px 20px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s ease !important;
    border: 2px solid transparent !important;
    position: relative !important;
    overflow: hidden !important;
}

    .premium-card:hover {
        transform: translateY(-8px) !important;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1) !important;
    }

    .premium-card.selected-package {
        border-color: var(--gold-primary) !important;
        box-shadow: 0 8px 30px rgba(212, 168, 67, 0.2) !important;
    }

    .premium-card .badge {
        font-size: 12px !important;
        font-weight: 600 !important;
    }

/* =============================================
   فرم‌ها
   ============================================= */

.modal-gold .form-control,
.modal-gold .form-select {
    border: 2px solid #e9ecef !important;
    border-radius: 12px !important;
    padding: 12px 18px !important;
    transition: all 0.3s ease !important;
    background: #f8f9fa !important;
}

    .modal-gold .form-control:focus,
    .modal-gold .form-select:focus {
        border-color: var(--gold-primary) !important;
        box-shadow: 0 0 0 4px rgba(212, 168, 67, 0.1) !important;
        background: #fff !important;
    }

    .modal-gold .form-control.is-invalid,
    .modal-gold .form-select.is-invalid {
        border-color: #dc3545 !important;
        box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1) !important;
    }

.modal-gold .form-label {
    font-weight: 600 !important;
    color: #211e3b !important;
    font-size: 14px !important;
    margin-bottom: 6px !important;
}

/* =============================================
   کد تخفیف
   ============================================= */

#discountCode {
    font-family: 'Courier New', monospace !important;
    letter-spacing: 2px !important;
    user-select: all !important;
}

/* =============================================
   انیمیشن‌ها
   ============================================= */

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-gold .modal-content {
    animation: modalFadeIn 0.3s ease forwards !important;
}

@keyframes pulseGold {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(212, 168, 67, 0.4);
    }

    50% {
        box-shadow: 0 0 0 15px rgba(212, 168, 67, 0);
    }
}

.btn-gold {
    animation: pulseGold 2s infinite !important;
}

    .btn-gold:hover {
        animation: none !important;
    }

/* =============================================
   ریسپانسیو
   ============================================= */

@media (max-width: 768px) {
    .modal-gold .modal-body {
        padding: 20px !important;
    }

    .premium-card {
        padding: 20px 15px !important;
    }

    .modal-gold .modal-header {
        padding: 15px 20px !important;
    }

    #discountCode {
        font-size: 24px !important;
    }
}

@media (max-width: 576px) {
    .modal-dialog {
        margin: 10px !important;
    }

    .modal-gold .modal-content {
        border-radius: 16px !important;
    }

    .premium-card .display-5 {
        font-size: 28px !important;
    }
}

/* Content/modal-styles.css - اضافه کردن استایل‌های آواتار */

.avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

/* استایل صفحه‌بندی */
.pagination .page-item.active .page-link {
    background: var(--gold-gradient) !important;
    border-color: var(--gold-primary) !important;
    color: #fff !important;
}

.pagination .page-link {
    color: var(--gold-primary) !important;
    border-color: #e9ecef !important;
    transition: all 0.3s ease !important;
}

    .pagination .page-link:hover {
        background: var(--gold-light-bg) !important;
        border-color: var(--gold-primary) !important;
    }

.pagination .page-item.disabled .page-link {
    color: #adb5bd !important;
}

/* جدول */
.table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: rgba(245, 232, 200, 0.3);
}

.table-hover > tbody > tr:hover > * {
    background-color: rgba(212, 168, 67, 0.1) !important;
}

/* Input Group */
.input-group-text.bg-gold-light {
    border-color: var(--gold-primary);
}

/* اسکرول عمودی */
.table-responsive {
    max-height: 400px;
    overflow-y: auto;
}

    .table-responsive::-webkit-scrollbar {
        width: 6px;
    }

    .table-responsive::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 3px;
    }

    .table-responsive::-webkit-scrollbar-thumb {
        background: var(--gold-primary);
        border-radius: 3px;
    }

        .table-responsive::-webkit-scrollbar-thumb:hover {
            background: var(--gold-dark);
        }

/* Content/modal-styles.css - اضافه کردن استایل‌های گواهی */

/* استایل کارت آمار */
.premium-card .fs-4 {
    font-size: 1.5rem !important;
}

/* استایل درجه‌ها */
.badge-grade-A {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    min-width: 45px;
    display: inline-block;
    text-align: center;
}

.badge-grade-B {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    min-width: 45px;
    display: inline-block;
    text-align: center;
}

.badge-grade-C {
    background: linear-gradient(135deg, #ffc107 0%, #d39e00 100%);
    color: #212529;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    min-width: 45px;
    display: inline-block;
    text-align: center;
}

.badge-grade-D {
    background: linear-gradient(135deg, #0dcaf0 0%, #0aa2c9 100%);
    color: #212529;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    min-width: 45px;
    display: inline-block;
    text-align: center;
}

.badge-grade-E {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    min-width: 45px;
    display: inline-block;
    text-align: center;
}

/* انیمیشن برای کارت‌های آمار */
.premium-card {
    transition: all 0.3s ease;
}

    .premium-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    }

/* استایل فونت اعداد */
.font-monospace {
    font-family: 'Courier New', monospace;
    direction: ltr;
    display: inline-block;
}

<!-- استایل‌های سکشن -->
.certificate-section {
    background: linear-gradient(180deg, #FAFAFF 0%, #F5F0E8 100%);
}

.certificate-section .stats-card {
    transition: all 0.3s ease;
    cursor: default;
}

    .certificate-section .stats-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    }

.certificate-section .btn-gold {
    box-shadow: 0 4px 20px rgba(212, 168, 67, 0.3);
    transition: all 0.3s ease;
}

    .certificate-section .btn-gold:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 30px rgba(212, 168, 67, 0.4);
    }

.certificate-section .premium-card {
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.certificate-section .badge-grade {
    min-width: 45px;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    display: inline-block;
    text-align: center;
    font-size: 14px;
}

.certificate-section .badge-grade-A {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    color: #fff;
}

.certificate-section .badge-grade-B {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: #fff;
}

.certificate-section .badge-grade-C {
    background: linear-gradient(135deg, #ffc107 0%, #d39e00 100%);
    color: #212529;
}

.certificate-section .badge-grade-D {
    background: linear-gradient(135deg, #0dcaf0 0%, #0aa2c9 100%);
    color: #212529;
}

.certificate-section .badge-grade-E {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: #fff;
}

.certificate-section .avatar-circle {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #fbf3e0 0%, #f5e8c8 100%);
    color: #d4a843;
}

.certificate-section .table td {
    vertical-align: middle;
}

@media (max-width: 768px) {
    .certificate-section .stats-card h3 {
        font-size: 24px;
    }

    .certificate-section .btn-gold {
        padding: 12px 25px;
        font-size: 14px;
    }

    /* Content/modal-styles.css - اضافه کردن استایل‌ها */

    /* جلوگیری از اسکرول هنگام باز بودن مودال */
    .modal-open {
        overflow: hidden !important;
    }

        .modal-open .modal {
            overflow-x: hidden;
            overflow-y: auto;
        }

    /* دکمه بستن */
    .modal .btn-close {
        background: rgba(0, 0, 0, 0.05);
        border-radius: 50%;
        padding: 10px;
        transition: all 0.3s ease;
        opacity: 0.7;
    }

        .modal .btn-close:hover {
            background: rgba(0, 0, 0, 0.1);
            transform: rotate(90deg);
            opacity: 1;
        }

    /* آواتار */
    .avatar-circle {
        width: 35px;
        height: 35px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        font-size: 14px;
        flex-shrink: 0;
    }

    /* جدول */
    .table td {
        vertical-align: middle;
    }

    .table-hover tbody tr:hover {
        background-color: rgba(212, 168, 67, 0.05);
    }

    /* صفحه‌بندی */
    .pagination .page-item.active .page-link {
        background: linear-gradient(135deg, #d4a843 0%, #b8922e 100%);
        border-color: #d4a843;
        color: #fff;
    }

    .pagination .page-link {
        color: #d4a843;
        cursor: pointer;
    }

        .pagination .page-link:hover {
            background: #f5e8c8;
            border-color: #d4a843;
        }

    .pagination .page-item.disabled .page-link {
        color: #adb5bd;
        cursor: not-allowed;
    }
}

/* Content/modal-styles.css */
.text-gold {
    color: #d4a843 !important;
}

.bg-gold-light {
    background: linear-gradient(135deg, #fbf3e0 0%, #f5e8c8 100%) !important;
}

.border-gold {
    border: 2px solid #d4a843 !important;
}

.btn-gold {
    background: linear-gradient(135deg, #d4a843 0%, #b8922e 100%) !important;
    color: #fff !important;
    border: none !important;
    transition: all 0.3s ease !important;
}

    .btn-gold:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 8px 25px rgba(212, 168, 67, 0.3) !important;
    }

.btn-outline-gold {
    border: 2px solid #d4a843 !important;
    color: #d4a843 !important;
    background: transparent !important;
}

    .btn-outline-gold:hover {
        background: linear-gradient(135deg, #d4a843 0%, #b8922e 100%) !important;
        color: #fff !important;
    }

.modal-gold .modal-content {
    border: none !important;
    overflow: hidden !important;
    border-radius: 20px !important;
}

.modal-gold .modal-header {
    background: linear-gradient(135deg, #fbf3e0 0%, #f5e8c8 100%) !important;
    border-bottom: 2px solid #d4a843 !important;
}

.modal-gold .btn-close {
    background: rgba(0, 0, 0, 0.05) !important;
    border-radius: 50% !important;
    padding: 10px !important;
    transition: all 0.3s ease !important;
}

    .modal-gold .btn-close:hover {
        transform: rotate(90deg) !important;
    }

.premium-card {
    background: #fff !important;
    border-radius: 16px !important;
    padding: 20px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s ease !important;
    border: 2px solid transparent !important;
}

    .premium-card:hover {
        transform: translateY(-5px) !important;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08) !important;
    }

.avatar-circle {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.table td {
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background-color: rgba(212, 168, 67, 0.05);
}

.certificate-section {
    background: linear-gradient(180deg, #FAFAFF 0%, #F5F0E8 100%);
}
