/* استایل‌های سفارشی فارسی */

body {
    font-family: 'Vazirmatn', sans-serif;
    line-height: 1.8;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

/* بهبود فرم‌ها برای RTL */
.form-control {
    text-align: right;
}

/* اصلاح چک‌باکس و رادیو دکمه برای RTL */
.form-check {
    padding-right: 0 !important;
    padding-left: 1.5rem;
    text-align: right;
    position: relative;
}

.form-check-input {
    position: absolute;
    right: -1.5rem;
    margin-top: 0.3rem;
    margin-right: 0;
    margin-left: 0;
    float: right !important;
}

.form-check-label {
    padding-right: 1.5rem;
    display: block;
    width: 100%;
    margin-right: 0;
}

/* برای حالت‌های خاص */
input[type="radio"], 
input[type="checkbox"] {
    margin-left: 0.5rem !important;
    margin-right: 0 !important;
}

/* استایل‌های سوالات */
.question-box {
    transition: all 0.3s ease;
    background: linear-gradient(90deg, #f8f9fa 0%, #ffffff 100%);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.question-box:hover {
    transform: translateX(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* دکمه‌های مخصوص */
.btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    color: #212529;
}

/* کارت‌ها */
.card {
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: none;
    margin-bottom: 20px;
}

.card-header {
    font-weight: 700;
}

/* هشدارها */
.alert {
    border: none;
    border-right: 5px solid;
}

.alert-info {
    border-right-color: #17a2b8;
}

.alert-success {
    border-right-color: #28a745;
}

.alert-warning {
    border-right-color: #ffc107;
}

/* رسپانسیو */
@media (max-width: 768px) {
    .container {
        padding-right: 15px;
        padding-left: 15px;
    }
    
    .question-box {
        padding: 15px;
    }
    
    .form-check {
        padding-left: 1.2rem;
    }
    
    .form-check-input {
        right: -1.2rem;
    }
}

/* انیمیشن‌های جزئی */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.card {
    animation: fadeIn 0.5s ease-out;
}

/* بهبود ظاهر فیلدهای فرم */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

/* استایل برای textarea */
textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

/* استایل برای هدر ناوبری */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* استایل فوتر */
footer {
    margin-top: 50px;
    border-top: 1px solid #dee2e6;
}