@font-face{font-family:'IRANSans';src:url('IRANSans-web.woff') format('woff');font-weight:normal;font-style:normal}


body {
    font-family: 'IRANSans', Tahoma, sans-serif;
    margin: 0;
    padding: 20px;
    line-height: 1.6;
    color: #2c3e50;
}

/* --- پرسشنامه (فضای شاد برای دانش آموز) --- */
.survey-bg {
    background: linear-gradient(135deg, #1f5163 0%, #051e24 100%);
    min-height: 100vh;
}

.survey-container {
    max-width: 850px;
    margin: auto;
}

.header-section {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

.header-icon {
    font-size: 60px;
    margin-bottom: 10px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.2);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-15px);}
    60% {transform: translateY(-8px);}
}

.header-section h1 {
    font-size: 28px;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.subtitle {
    font-size: 14px;
    opacity: 0.9;
}

.section-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    margin-bottom: 25px;
    transition: transform 0.3s;
}

.section-card:hover {
    transform: translateY(-5px);
}

.section-title {
    color: #2980b9;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 10px;
    margin-top: 0;
}

.section-title i {
    margin-left: 5px;
}

.guide-text {
    background: #e8f4f8;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    color: #16a085;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.form-group input[type="text"], 
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #bdc3c7;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    transition: border 0.3s;
    box-sizing: border-box;
}

.form-group input[type="text"]:focus, 
.form-group select:focus {
    border-color: #3498db;
    outline: none;
}

.question-box {
    background: #f8f9fa;
    border-right: 4px solid #3498db;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    transition: background 0.3s;
}

.question-box:hover {
    background: #eef2f5;
}

.q-text {
    font-weight: 600;
    margin-bottom: 12px;
    color: #34495e;
}

.radio-group {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.radio-item {
    background: white;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    border: 1px solid #dcdcdc;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    font-size: 13px;
}

.radio-item:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.radio-item input[type="radio"] {
    margin-left: 5px;
    display: none; /* مخفی کردن دکمه رادیو پیش‌فرض */
}

.radio-item input[type="radio"]:checked + .radio-label {
    color: #2980b9;
    font-weight: bold;
}

.radio-item:has(input:checked) {
    background: #e1f0fa;
    border-color: #2980b9;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.submit-btn {
    background: linear-gradient(90deg, #27ae60, #2ecc71);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 18px;
    font-family: inherit;
    width: 100%;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(46, 204, 113, 0.5);
}

.success-msg {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    font-size: 16px;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- داشبورد مدیریتی --- */
.dashboard-bg {
    background: #f0f2f5;
}

.dashboard-container {
    max-width: 1200px;
    margin: auto;
}

.dash-header {
    background: linear-gradient(90deg, #2c3e50, #3498db);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.dash-header h1 {
    margin: 0;
    font-size: 22px;
}

.controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.filter-form {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
}

.filter-form select {
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-family: inherit;
    cursor: pointer;
}

.stat-badge {
    background: #e8f4f8;
    padding: 10px 20px;
    border-radius: 20px;
    color: #2980b9;
    font-weight: bold;
}

.charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.chart-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.chart-card h3 {
    margin-top: 0;
    color: #34495e;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    font-size: 16px;
}

.chart-card h3 i {
    color: #3498db;
    margin-left: 5px;
}

.full-width {
    grid-column: span 2;
}

.chart-wrapper {
    position: relative;
    height: 350px;
}

.pie-wrapper {
    position: relative;
    height: 300px;
    display: flex;
    justify-content: center;
}

.pie-center-text {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
}

.pie-center-text span {
    display: block;
    font-size: 36px;
    font-weight: bold;
    color: #27ae60;
}

.pie-center-text small {
    color: #7f8c8d;
    font-size: 14px;
}

/* ریسپانسیو برای موبایل */
@media (max-width: 768px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
    .full-width {
        grid-column: span 1;
    }
    .controls-bar {
        flex-direction: column;
        gap: 10px;
    }
    .radio-group {
        justify-content: center;
    }
}



/* فرم فیلتر مدرن */
.filter-form-modern {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 25px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50px; /* حالت کپسولی */
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.filter-form-modern:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(0, 242, 254, 0.2);
    box-shadow: 0 4px 20px rgba(0, 242, 254, 0.1);
}

.filter-label-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e0e0e0;
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
}

.filter-icon {
    color: var(--accent-blue);
    font-size: 16px;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.4); /* افکت درخشش آیکون */
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { text-shadow: 0 0 5px rgba(0, 242, 254, 0.3); }
    50% { text-shadow: 0 0 15px rgba(0, 242, 254, 0.6); }
    100% { text-shadow: 0 0 5px rgba(0, 242, 254, 0.3); }
}

/* پوششنده Select برای قرار دادن فلش سفارشی */
.custom-select-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 220px;
}

/* استایل دهی Select پیش‌فرض */
.custom-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    
    width: 100%;
    padding: 10px 40px 10px 20px; /* فضای کافی برای فلش در سمت چپ (RTL) */
    
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    
    color: #ffffff;
    font-family: 'IRANSans', Tahoma, sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    
    transition: all 0.3s ease;
    outline: none;
}

/* استایل منوی کشویی (در مرورگرهایی که پشتیبانی می‌کنند) */
.custom-select option {
    background: #302b63; /* رنگ گرادیان تیره بک‌گراند داشبورد */
    color: #ffffff;
    padding: 10px;
    border-radius: 8px;
}

/* فلش کشویی سفارشی */
.select-arrow {
    position: absolute;
    left: 15px; /* در RTL فلش در سمت چپ قرار می‌گیرد */
    top: 50%;
    transform: translateY(-50%);
    
    color: var(--accent-blue);
    font-size: 12px;
    pointer-events: none; /* کلیک از روی آیکون به Select منتقل شود */
    transition: transform 0.3s ease;
}

/* افکت‌های Hover و Focus */
.custom-select:hover {
    border-color: rgba(0, 242, 254, 0.4);
    background: rgba(255, 255, 255, 0.12);
}

.custom-select:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.2), inset 0 0 10px rgba(0, 242, 254, 0.05);
}

/* چرخش فلش هنگام باز شدن منو */
.custom-select:focus ~ .select-arrow {
    transform: translateY(-50%) rotate(180deg);
}

