/* تنظیمات کلی */
body {
    font-family: 'Vazir', 'Tahoma', sans-serif;
    background: linear-gradient(135deg, #1e3a8a, #d1d5db);
    margin: 0;
    padding: 20px;
    direction: rtl;
    color: #1f2937;
    line-height: 1.6;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

/* هدر */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 4px solid #3b82f6;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

header h1 {
    font-size: 2em;
    font-weight: 700;
    color: #1e40af;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

header p {
    font-size: 1.1em;
    color: #4b5563;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logout-btn {
    background: linear-gradient(90deg, #ef4444, #b91c1c);
    color: #fff;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    transition: transform 0.2s ease, background 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.logout-btn:hover {
    background: linear-gradient(90deg, #b91c1c, #991b1b);
    transform: translateY(-2px);
}

/* تب‌ها */
.tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-button {
    background: #e5e7eb;
    text-decoration: none;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 500;
    color: #374151;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tab-button.active, .tab-button:hover {
    background: linear-gradient(90deg, #3b82f6, #1e40af);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

/* پیام خوش‌آمدگویی */
.welcome-message {
    text-align: center;
    padding: 40px 20px;
}

.welcome-message h2 {
    font-size: 1.8em;
    color: #1e40af;
    margin-bottom: 10px;
}

.welcome-message p {
    font-size: 1.1em;
    color: #4b5563;
}

/* جدول */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

th, td {
    padding: 16px;
    text-align: right;
    border-bottom: 1px solid #e5e7eb;
}

th {
    background: linear-gradient(90deg, #3b82f6, #1e40af);
    color: #fff;
    font-weight: 600;
    font-size: 1em;
}

tr {
    transition: background 0.2s ease;
}

tr:hover {
    background-color: #f1f5f9;
}

td i {
    margin-left: 10px;
    color: #3b82f6;
    font-size: 1.2em;
}

/* فرم پاسخ */
.response-form form {
    display: grid;
    gap: 12px;
}

select, input[type="text"], textarea {
    width: 100%;
    padding: 14px;
    margin: 0;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #f9fafb;
    font-family: 'Vazir', sans-serif;
    font-size: 1em;
    color: #374151;
    transition: border-color 0.3s ease;
}

select:focus, input[type="text"]:focus, textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.3);
}

textarea {
    height: 140px;
    resize: vertical;
}

input[type="file"] {
    margin: 12px 0;
    font-size: 0.95em;
    color: #374151;
}

button {
    background: linear-gradient(90deg, #3b82f6, #1e40af);
    color: #fff;
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    border-radius: 10px;
    font-weight: 500;
    transition: transform 0.2s ease, background 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

button:hover {
    background: linear-gradient(90deg, #1e40af, #1e3a8a);
    transform: translateY(-2px);
}

/* پاسخ‌ها */
.response {
    background: #f9fafb;
    padding: 16px;
    margin: 12px 0;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.response:hover {
    transform: translateY(-2px);
}

.response p {
    margin: 8px 0;
    font-size: 0.95em;
}

.response small {
    color: #6b7280;
    font-size: 0.85em;
}

/* انیمیشن‌ها */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* رسپانسیو */
@media (max-width: 768px) {
    .container {
        padding: 15px;
        border-radius: 12px;
    }

    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .tabs {
        flex-direction: column;
        gap: 8px;
    }

    .tab-button {
        width: 100%;
        text-align: center;
        padding: 12px;
    }

    table, thead, tbody, th, td, tr {
        display: block;
    }

    thead {
        display: none;
    }

    tr {
        margin-bottom: 20px;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        padding: 12px;
        background: #fff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    td {
        display: flex;
        justify-content: space-between;
        padding: 12px;
        border: none;
        font-size: 0.95em;
    }

    td:before {
        content: attr(data-label);
        font-weight: 600;
        color: #3b82f6;
        width: 40%;
    }

    .response-form, .responses {
        display: block !important;
    }

    select, input[type="text"], textarea, input[type="file"] {
        font-size: 0.9em;
    }

    button {
        width: 100%;
        padding: 12px;
    }
}

/* فونت Vazir با وزن‌های مختلف */
@font-face {
    font-family: 'Vazir';
    src: url('https://cdn.fontcdn.ir/Fonts/Vazir/Vazir.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Vazir';
    src: url('https://cdn.fontcdn.ir/Fonts/Vazir/Vazir-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Vazir';
    src: url('https://cdn.fontcdn.ir/Fonts/Vazir/Vazir-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}