﻿/* تم آبی اصلی */
:root {
    --primary-blue: #0d6efd;
    --secondary-blue: #6c757d;
    --light-blue: #e7f1ff;
    --dark-blue: #052c65;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
}

/* بدنه کلی */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

/* نوار ناوبری */
.navbar {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* کارت‌ها */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
}

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    }

.card-header {
    border-radius: 15px 15px 0 0 !important;
    font-weight: bold;
}

/* دکمه‌ها */
.btn {
    border-radius: 10px;
    padding: 10px 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), #0a58ca);
    border: none;
}

    .btn-primary:hover {
        background: linear-gradient(135deg, #0a58ca, var(--primary-blue));
        transform: scale(1.05);
    }

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #146c43);
    border: none;
}

/* فرم‌ها */
.form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

    .form-control:focus {
        border-color: var(--primary-blue);
        box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    }

/* جداول */
.table {
    border-radius: 10px;
    overflow: hidden;
}

    .table thead th {
        background-color: var(--primary-blue);
        color: white;
        border: none;
        padding: 15px;
    }

    .table tbody tr {
        transition: background-color 0.3s ease;
    }

        .table tbody tr:hover {
            background-color: var(--light-blue);
        }

/* سوالات در فرم ارزیابی */
.question-item {
    background-color: white;
    border-left: 5px solid var(--primary-blue);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.question-options {
    margin-top: 15px;
}

    .question-options label {
        margin-left: 15px;
        cursor: pointer;
        padding: 8px 15px;
        border-radius: 8px;
        transition: background-color 0.3s ease;
    }

        .question-options label:hover {
            background-color: var(--light-blue);
        }

/* نشانگر سطوح */
.level-indicator {
    width: 100px;
    height: 20px;
    border-radius: 10px;
    display: inline-block;
    margin-right: 10px;
}

/* نمودارها */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* فوتو */
footer {
    margin-top: 50px;
    padding: 20px 0;
    background: linear-gradient(135deg, var(--dark-blue), var(--primary-blue));
    color: white;
    text-align: center;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .card {
        margin-bottom: 15px;
    }

    .btn {
        width: 100%;
        margin-bottom: 10px;
    }

    .question-options {
        display: flex;
        flex-direction: column;
    }

        .question-options label {
            margin-left: 0;
            margin-bottom: 10px;
        }

    .table-responsive {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .card-header h5 {
        font-size: 1.1rem;
    }

    .form-control {
        font-size: 14px;
    }
}

/* انیمیشن‌ها */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* پینوشت برای نمایشگرهای کوچک */
.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }

    .desktop-only {
        display: none;
    }
}

/* استایل برای حالت‌های مختلف سطح */
.level-1 {
    background-color: #FF0000;
    color: white;
}

.level-2 {
    background-color: #FFA500;
    color: white;
}

.level-3 {
    background-color: #FFFF00;
    color: black;
}

.level-4 {
    background-color: #90EE90;
    color: black;
}

.level-5 {
    background-color: #006400;
    color: white;
}

.badge.level-badge {
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
}
