@font-face {
    font-family: 'Samim';
    src: url('../fonts/Samim.ttf') format('woff2');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Samim';
    src: url('../fonts/Samim-Bold.ttf') format('woff2');
    font-weight: 700;
    font-style: normal;
}
body {
    font-family: 'Samim', 'Vazirmatn', sans-serif;
    background: linear-gradient(135deg, #BBC863, #008080);
    min-height: 100vh;
    color: #BBC863;
}
.container {
    background: #F5F3FF;
    background: linear-gradient(135deg, #F5F5DC, #FFFDCB);
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
}
.card {
    background: #FFFFFF;
    border-radius: 12px;
    border: 1px solid #EDE9FE;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 1.5rem;
    padding-top: 1.75rem;
    position: relative;
    margin-bottom: 1.5rem;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(167, 139, 250, 0.25);
}
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #A78BFA;
    border-radius: 12px 12px 0 0;
}
.card-title {
    font-family: 'Samim', 'Vazirmatn', sans-serif;
    color: #2D3748;
    font-weight: 500;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}
.card-text {
    font-family: 'Samim', 'Vazirmatn', sans-serif;
    color: #6B7280;
    font-size: 0.95rem;
    font-weight: 400;
}
.btn {
    font-family: 'Samim', 'Vazirmatn', sans-serif;
    border-radius: 10px;
    padding: 0.7rem 1.4rem;
    transition: all 0.3s ease;
    box-shadow: inset 0 -2px 5px rgba(0, 0, 0, 0.1);
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.2px;
    text-transform: none;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}
.btn:active {
    transform: scale(0.98);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
}
.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}
.btn:hover::after {
    width: 200%;
    height: 200%;
}
.btn-primary {
    background: linear-gradient(135deg, #60A5FA, #3B82F6);
    border: none;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #3B82F6, #2563EB);
}
.btn-success {
    background: linear-gradient(135deg, #34D399, #22C55E);
}
.btn-success:hover {
    background: linear-gradient(135deg, #22C55E, #16A34A);
}
.btn-warning {
    background: linear-gradient(135deg, #FBBF24, #F59E0B);
    color: #2D3748;
}
.btn-warning:hover {
    background: linear-gradient(135deg, #F59E0B, #D97706);
}
.btn-danger {
    background: linear-gradient(135deg, #F87171, #EF4444);
}
.btn-danger:hover {
    background: linear-gradient(135deg, #EF4444, #DC2626);
}
.btn-hide {
    background: linear-gradient(135deg, #AC1754, #E53888);
}
.btn-hide:hover {
    background: linear-gradient(135deg, #F37199, #F7A8C4);
}
.btn-info {
    background: linear-gradient(135deg, #A78BFA, #8B5CF6);
}
.btn-info:hover {
    background: linear-gradient(135deg, #8B5CF6, #7C3AED);
}
.btn-secondary {
    background: linear-gradient(135deg, #66D2CE, #2DAA9E);
}
.btn-secondary:hover {
    background: linear-gradient(135deg, #B3D8A8, #A4B465);
}
.btn-third {
    background: linear-gradient(135deg, #31694E, #658C58);
}
.btn-third:hover {
    background: linear-gradient(135deg, #5D866C, #4C763B);
}
.btn-recheck {
    background: linear-gradient(135deg, #84AE92, #5A827E);
}
.btn-recheck:hover {
    background: linear-gradient(135deg, #B9D4AA, #AEC8A4);
}
.btn-publish {
    background: linear-gradient(135deg, #FFEB00, #FF8383);
}
.btn-publish:hover {
    background: linear-gradient(135deg, #F7AD45, #F3C623);
}
.btn-preview {
    background: linear-gradient(135deg, #FF11AF, #B95E82);
}
.btn-preview:hover {
    background: linear-gradient(135deg, #FF31AF, #B95E88);
}
.btn-archive {
    background: linear-gradient(135deg, #FDCFFF, #9B5DE0);
}
.btn-archive:hover {
    background: linear-gradient(135deg, #FDCFFA, #9B5DE5);
}

.btn:disabled {
    background: #D1D5DB;
    color: #6B7280;
    box-shadow: none;
    cursor: not-allowed;
}
.table {
    font-family: 'Samim', 'Vazirmatn', sans-serif;
    background: #FFFFFF;
    color: #2D3748;
    border-radius: 10px;
    overflow: hidden;
}
.table-striped tbody tr:nth-of-type(odd) {
    background: #F5F3FF;
}
.table th, .table td {
    border-bottom: 1px solid #EDE9FE;
    padding: 1rem;
}
.table thead th {
    background: #EDE9FE;
    color: #2D3748;
    border-bottom: 2px solid #A78BFA;
}
.modal-content {
    background: #F5F3FF;
    border-radius: 12px;
    border: 1px solid #EDE9FE;
    color: #2D3748;
}
.modal-header {
    border-bottom: 1px solid #EDE9FE;
}
.modal-footer {
    border-top: 1px solid #EDE9FE;
}
.form-control, .form-select {
    font-family: 'Samim', 'Vazirmatn', sans-serif;
    background: #FFFFFF;
    border: 1px solid #D1D5DB;
    color: #2D3748;
}
.form-control:focus, .form-select:focus {
    background: #FFFFFF;
    border-color: #A78BFA;
    box-shadow: 0 0 5px rgba(167, 139, 250, 0.5);
}
.alert-danger {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FECACA;
    border-radius: 8px;
}
.alert-warning {
    background: #C6D870;
    color: #4F200D;
    border: 1px solid #D78FEE;
    border-radius: 8px;
}
h1, h3 {
    font-family: 'Samim', 'Vazirmatn', sans-serif;
    font-weight: 500;
    color: #2D3748;
    margin-bottom: 1.5rem;
}
h1 {
    font-size: 2rem;
}
h3 {
    font-size: 1.5rem;
}
.d-flex {
    gap: 1rem;
}
@media (max-width: 576px) {
    .container {
        padding: 1rem;
    }
    .card {
        padding: 1rem;
        padding-top: 1.5rem;
    }
    .btn {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
    h1 {
        font-size: 1.5rem;
    }
    h3 {
        font-size: 1.25rem;
    }
    .table {
        font-size: 0.85rem;
    }
    .d-flex {
        flex-direction: column;
        gap: 0.5rem;
    }
}
/* کارت ساخت امتحان */
.create-exam-card::before {
    background: linear-gradient(135deg, #34D399, #22C55E); /* گرادینت سبز برای حس "ایجاد" */
}

/* تنظیمات فرم */
.form-text {
    color: #6B7280;
    font-size: 0.9rem;
}

/* فاصله دکمه‌ها */
.d-flex.gap-2 {
    gap: 0.5rem;
}

/* ریسپانسیو */
@media (max-width: 576px) {
    .create-exam-card {
        padding: 1rem;
    }
    .btn {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
    h1 {
        font-size: 1.5rem;
    }
}
/* تنظیمات جدول عملیات */
.table td .d-flex.gap-1 {
    gap: 0.5rem;
}
/* تنظیمات جدول عملیات */
.table td .d-flex.gap-1 {
    gap: 0.5rem;
}
.notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #28a745; /* سبز موفقیت */
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}
.notification.show {
    opacity: 1;
    visibility: visible;
    animation: slideUp 0.5s ease-in-out forwards, fadeOut 0.5s ease-in-out 2s forwards;
}

@keyframes slideUp {
    from {
        transform: translateX(-50%) translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* باکس بازنگری نمرات */
 .quote-box {
            width: 100%;
            min-width: 300px;
            max-width: 300px;
            min-height: 100px;
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 4px;
            background-color: #f9f9f9;
            direction: rtl;
            white-space: pre-wrap;
            box-sizing: border-box;
            overflow: hidden;
            line-height: 1.5;
        }
     

