/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    font-family: 'B Nazanin', 'Tahoma', 'Arial', sans-serif;
    overflow-x: hidden;
}

.persian-text {
    direction: rtl !important;
    text-align: justify !important;
    text-justify: inter-word;
    line-height: 27px;
    font-family: 'B Nazanin', Tahoma, Arial, sans-serif;
    font-size: 18px;
    white-space: normal !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Login Page Styles */
.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #0c2d48 0%, #1a4a6e 100%);
    position: relative;
}

.brick-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.login-container {
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    padding: 40px 40px 40px 40px;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 0 20px rgba(255, 255, 255, 0.1);
    max-width: 400px;
    width: 90%;
    border: 3px solid rgba(255, 255, 255, 0.2);
    animation: fingerprintPulse 2s ease-in-out infinite;
}

@keyframes fingerprintPulse {
    0%, 100% {
        border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 0 20px rgba(255, 255, 255, 0.1);
    }
    50% {
        border-radius: 55% 45% 55% 45% / 55% 65% 35% 45%;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), inset 0 0 30px rgba(255, 255, 255, 0.15);
    }
}

.login-container h1 {
    text-align: center;
    color: white;
    margin-bottom: 30px;
    font-family: 'B Titr', 'B Nazanin', 'Tahoma', 'Arial', sans-serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.fingerprint-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.15;
}

.fingerprint-pattern::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 95%;
    height: 95%;
    transform: translate(-50%, -50%);
    background:
        radial-gradient(circle at 30% 30%, transparent 5px, rgba(255,255,255,0.5) 5px, rgba(255,255,255,0.5) 7px, transparent 7px),
        radial-gradient(circle at 70% 30%, transparent 5px, rgba(255,255,255,0.5) 5px, rgba(255,255,255,0.5) 7px, transparent 7px),
        radial-gradient(circle at 50% 50%, transparent 8px, rgba(255,255,255,0.5) 8px, rgba(255,255,255,0.5) 10px, transparent 10px),
        radial-gradient(circle at 30% 70%, transparent 5px, rgba(255,255,255,0.5) 5px, rgba(255,255,255,0.5) 7px, transparent 7px),
        radial-gradient(circle at 70% 70%, transparent 5px, rgba(255,255,255,0.5) 5px, rgba(255,255,255,0.5) 7px, transparent 7px),
        radial-gradient(circle at 50% 20%, transparent 3px, rgba(255,255,255,0.4) 3px, rgba(255,255,255,0.4) 5px, transparent 5px),
        radial-gradient(circle at 50% 80%, transparent 3px, rgba(255,255,255,0.4) 3px, rgba(255,255,255,0.4) 5px, transparent 5px),
        radial-gradient(circle at 20% 50%, transparent 3px, rgba(255,255,255,0.4) 3px, rgba(255,255,255,0.4) 5px, transparent 5px),
        radial-gradient(circle at 80% 50%, transparent 3px, rgba(255,255,255,0.4) 3px, rgba(255,255,255,0.4) 5px, transparent 5px),
        radial-gradient(circle at 25% 25%, transparent 4px, rgba(255,255,255,0.3) 4px, rgba(255,255,255,0.3) 6px, transparent 6px),
        radial-gradient(circle at 75% 25%, transparent 4px, rgba(255,255,255,0.3) 4px, rgba(255,255,255,0.3) 6px, transparent 6px),
        radial-gradient(circle at 25% 75%, transparent 4px, rgba(255,255,255,0.3) 4px, rgba(255,255,255,0.3) 6px, transparent 6px),
        radial-gradient(circle at 75% 75%, transparent 4px, rgba(255,255,255,0.3) 4px, rgba(255,255,255,0.3) 6px, transparent 6px),
        radial-gradient(circle at 40% 40%, transparent 3px, rgba(255,255,255,0.25) 3px, rgba(255,255,255,0.25) 5px, transparent 5px),
        radial-gradient(circle at 60% 40%, transparent 3px, rgba(255,255,255,0.25) 3px, rgba(255,255,255,0.25) 5px, transparent 5px),
        radial-gradient(circle at 40% 60%, transparent 3px, rgba(255,255,255,0.25) 3px, rgba(255,255,255,0.25) 5px, transparent 5px),
        radial-gradient(circle at 60% 60%, transparent 3px, rgba(255,255,255,0.25) 3px, rgba(255,255,255,0.25) 5px, transparent 5px);
}

.login-btn {
    width: auto;
    min-width: 120px;
    padding: 10px 30px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: bold;
    font-family: 'B Nazanin', 'Tahoma', 'Arial', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    display: block;
    margin: 20px auto 0;
}

.login-btn:hover {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

.login-btn:active {
    transform: translateY(0);
}

.bottom-button {
    position: fixed;
    bottom: 30px;
    z-index: 2;
    padding: 18px 40px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    font-family: 'B Nazanin', 'Tahoma', 'Arial', sans-serif;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.bottom-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.7);
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

/* Dashboard Styles */
.dashboard {
    display: none;
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.dashboard.active {
    display: flex;
}

.sidebar {
    width: 280px;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
    color: white;
    font-size: 20px;
    font-weight: bold;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 10px;
}

.sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.submenu {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
}

.submenu-title {
    color: white;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.submenu-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.submenu-action-btn {
    padding: 12px 15px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'B Nazanin', 'Tahoma', 'Arial', sans-serif;
}

.submenu-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.menu-item {
    padding: 15px;
    color: white;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 18px;
    border: 1px solid transparent;
    margin-bottom: 2px;
    position: relative;
}

.menu-item:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10px;
    right: 10px;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
}

.menu-item:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: 1px solid #60a5fa;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    transform: translateX(5px);
}

.menu-item:hover::after {
    display: none;
}

.menu-item.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: 1px solid #60a5fa;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.5);
}

.menu-item.active::after {
    display: none;
}

.menu-item.dragging {
    opacity: 0.5;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
}

.menu-item.drag-over {
    border: 2px dashed #60a5fa;
    background: rgba(96, 165, 250, 0.2);
}

.menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 10px 0;
}

.archive-divider {
    height: 2px;
    background: linear-gradient(90deg, #10b981, #059669);
    margin: 15px 0;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.archive-menu-item {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    font-weight: bold;
    border: 1px solid #059669;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.archive-menu-item:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    border: 1px solid #047857;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.6);
    transform: translateX(5px);
}

.archive-menu-item.active {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    border: 1px solid #047857;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.6);
}

.logout-btn {
    margin-top: auto;
    padding: 15px;
    background: rgba(220, 38, 38, 0.8);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: background 0.3s;
}

.logout-btn:hover {
    background: rgba(220, 38, 38, 1);
}

/* Timer Styles */
.timer-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    padding: 5px 10px;
    border-radius: 50px;
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.5);
    z-index: 1000;
    display: none;
}

.timer-container.active {
    display: flex;
    align-items: center;
    gap: 5px;
}

.timer-display {
    color: white;
    font-size: 14px;
    font-weight: bold;
    font-family: 'B Nazanin', 'Tahoma', 'Arial', sans-serif;
    min-width: 50px;
    text-align: center;
}

.timer-label {
    color: white;
    font-size: 10px;
    font-family: 'B Nazanin', 'Tahoma', 'Arial', sans-serif;
}

/* Main Content */
.main-content {
    flex: 1;
    font-family: 'B Nazanin', 'Tahoma', 'Arial', sans-serif;
    font-size: 18px;
    line-height: 27px;
    background: #f8fafc;
    color: #1e293b;
    direction: rtl;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
}

.header h1 {
    font-family: 'B Titr', 'B Nazanin', 'Tahoma', 'Arial', sans-serif;
    font-size: 32px;
    margin-bottom: 10px;
}

/* Main Content */
.main-content {
    flex: 1;
}

.content-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: none;
}

.content-section.active {
    display: block;
}

.section-title {
    font-family: 'B Titr', 'B Nazanin', 'Tahoma', 'Arial', sans-serif;
    font-size: 24px;
    color: #1e3a8a;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

/* Form Builder */
.form-builder {
    margin-top: 20px;
}

.form-items {
    margin-bottom: 20px;
}

.form-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.3s;
}

.form-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.form-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.form-item-number {
    font-family: 'B Titr', 'B Nazanin', 'Tahoma', 'Arial', sans-serif;
    font-size: 16px;
    color: #1e3a8a;
    font-weight: bold;
}

.form-item-actions {
    display: flex;
    gap: 8px;
}

.form-item-actions button {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.edit-btn {
    background: #3b82f6;
    color: white;
}

.edit-btn:hover {
    background: #2563eb;
}

.delete-btn {
    background: #ef4444;
    color: white;
}

.delete-btn:hover {
    background: #dc2626;
}

/* Buttons */
.add-item-btn,
.refresh-form-btn,
.save-database-btn,
.export-word-btn,
.export-pdf-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-family: 'B Nazanin', 'Tahoma', 'Arial', sans-serif;
    transition: all 0.3s;
    margin-right: 10px;
    margin-bottom: 10px;
}

.add-item-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.add-item-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.refresh-form-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.refresh-form-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.save-database-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.save-database-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.export-word-btn {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
}

.export-word-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.export-pdf-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.export-pdf-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 24px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}

.modal-header h2 {
    font-family: 'B Titr', 'B Nazanin', 'Tahoma', 'Arial', sans-serif;
    font-size: 24px;
    color: #1e3a8a;
}

.close-modal {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #64748b;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #ef4444;
}

.modal-body {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #475569;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-family: 'B Nazanin', 'Tahoma', 'Arial', sans-serif;
    font-size: 16px;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 16px;
    border-top: 2px solid #e2e8f0;
}

.save-btn,
.cancel-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-family: 'B Nazanin', 'Tahoma', 'Arial', sans-serif;
    transition: all 0.3s;
}

.save-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.cancel-btn {
    background: #ef4444;
    color: white;
}

.cancel-btn:hover {
    background: #dc2626;
}

/* Table Styles */
.custom-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.custom-table th,
.custom-table td {
    border: 1px solid #cbd5e1;
    padding: 10px;
    text-align: center;
}

.custom-table th {
    background: #1e3a8a;
    color: white;
    text-align: center;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    border: 1px solid #cbd5e1;
    padding: 8px;
    text-align: center;
    vertical-align: middle;
}

.data-table th {
    background: #e2e8f0;
}

.question-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    direction: rtl;
}

.question-table td {
    border: none;
    padding: 0;
    line-height: 27px;
    vertical-align: top;
    font-size: 18px;
    font-family: 'B Nazanin', Tahoma, Arial, sans-serif;
}

.question-table td.question-text {
    width: 77%;
    text-align: justify;
    text-justify: inter-word;
    direction: rtl;
    vertical-align: top;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.question-table td.question-options {
    width: 23%;
    text-align: left;
    vertical-align: middle;
    direction: ltr;
    white-space: nowrap;
}

.options-table {
    width: 120px;
    border-collapse: collapse;
    table-layout: fixed;
    direction: ltr;
}

.options-table td {
    border: none;
    padding: 0;
    margin: 0;
    line-height: 27px;
    font-size: 18px;
    font-family: 'B Nazanin', Tahoma, Arial, sans-serif;
    white-space: nowrap;
    text-align: left;
    vertical-align: middle;
}

.options-table .yes-column {
    width: 60px;
}

.options-table .no-column {
    width: 60px;
}

.custom-table td input {
    width: 100%;
    padding: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-family: 'B Titr', 'B Nazanin', 'Tahoma', 'Arial', sans-serif;
    font-size: 14px;
    text-align: center;
    direction: ltr;
}

.add-row-btn,
.add-col-btn,
.remove-row-btn,
.remove-col-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    margin: 4px;
    transition: all 0.3s;
}

.add-row-btn,
.add-col-btn {
    background: #10b981;
    color: white;
}

.add-row-btn:hover,
.add-col-btn:hover {
    background: #059669;
}

.remove-row-btn,
.remove-col-btn {
    background: #ef4444;
    color: white;
}

.remove-row-btn:hover,
.remove-col-btn:hover {
    background: #dc2626;
}

/* Summary Report */
.summary-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #fde68a;
}

.summary-section:last-child {
    border-bottom: none;
}

.summary-section-title {
    font-family: 'B Titr', 'B Nazanin', 'Tahoma', 'Arial', sans-serif;
    font-size: 26px;
    font-weight: bold;
    color: #1e3a8a;
    background-color: #fde68a;
    padding: 10px 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: center !important;
}

.summary-item {
    margin-bottom: 8px;
    padding: 0;
    background: white;
    border-radius: 0;
}

.persian-text {
    direction: rtl;
    text-align: justify;
    text-justify: inter-word;
    line-height: 27px;
    font-family: 'B Nazanin', Tahoma, Arial, sans-serif;
    font-size: 18px;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.table-description {
    font-family: 'B Nazanin', 'Tahoma', 'Arial', sans-serif;
    font-size: 12px;
    font-weight: bold;
    text-align: right;
}

.question-text {
    text-align: justify;
    text-justify: inter-word;
    direction: rtl;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Archive Styles */
.archive-content {
    margin-top: 20px;
}

.archive-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.archive-info {
    flex: 1;
}

.archive-name {
    font-family: 'B Titr', 'B Nazanin', 'Tahoma', 'Arial', sans-serif;
    font-size: 18px;
    color: #1e3a8a;
    margin-bottom: 4px;
}

.archive-date {
    font-size: 14px;
    color: #64748b;
}

.archive-actions {
    display: flex;
    gap: 8px;
}

.archive-download-btn {
    padding: 8px 16px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.archive-download-btn:hover {
    background: #2563eb;
}

.archive-delete-btn {
    padding: 8px 16px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.archive-delete-btn:hover {
    background: #dc2626;
}

/* Province Filter */
.filter-container {
    margin-bottom: 20px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-group {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #475569;
    font-family: 'B Nazanin', 'Tahoma', 'Arial', sans-serif;
    font-size: 14px;
    color: #1e3a8a;
}

.filter-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-family: 'B Nazanin', 'Tahoma', 'Arial', sans-serif;
    font-size: 16px;
    padding: 8px 12px;
    min-width: 200px;
}

.filter-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'B Nazanin', 'Tahoma', 'Arial', sans-serif;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s;
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.province-questions-content {
    background: white;
    border-radius: 8px;
    padding: 20px;
    min-height: 200px;
}

.province-question-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.province-question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.province-question-info {
    display: flex;
    gap: 20px;
    font-family: 'B Nazanin', 'Tahoma', 'Arial', sans-serif;
    font-size: 14px;
}

.province-question-info span {
    font-weight: bold;
    color: #1e3a8a;
}

.province-question-text {
    font-family: 'B Nazanin', 'Tahoma', 'Arial', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #334155;
    padding: 10px;
    background: white;
    border-radius: 6px;
}

.province-question-date {
    font-family: 'B Nazanin', 'Tahoma', 'Arial', sans-serif;
    font-size: 12px;
    color: #64748b;
    margin-top: 10px;
}

.empty-province-questions {
    text-align: center;
    padding: 40px;
    color: #94a3b8;
    font-family: 'B Nazanin', 'Tahoma', 'Arial', sans-serif;
    font-size: 18px;
}

.empty-archive {
    text-align: center;
    padding: 40px;
    color: #94a3b8;
    font-family: 'B Nazanin', 'Tahoma', 'Arial', sans-serif;
    font-size: 18px;
}

/* Dashboard Landing Page Styles */
.dashboard-landing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.dashboard-image-container {
    width: 100%;
    margin-bottom: 40px;
    padding: 30px 0;
    text-align: center;
    position: relative;
}

.dashboard-divider {
    position: relative;
    height: 4px;
    background: linear-gradient(90deg, transparent, #3b82f6, #8b5cf6, #ec4899, #3b82f6, transparent);
    border-radius: 2px;
    margin: 20px 0;
}

.dashboard-divider::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.dashboard-divider::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.5);
}

.dashboard-title {
    font-family: 'B Titr', 'B Nazanin', 'Tahoma', 'Arial', sans-serif;
    font-size: 28px;
    font-weight: bold;
    color: #1e3a8a;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.dashboard-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.dashboard-menu-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.dashboard-menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
    border-color: #3b82f6;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.dashboard-menu-item:hover .dashboard-menu-icon,
.dashboard-menu-item:hover .dashboard-menu-title {
    color: white;
}

.archive-dashboard-divider {
    position: relative;
    height: 4px;
    background: linear-gradient(90deg, transparent, #10b981, #059669, transparent);
    border-radius: 2px;
    margin: 30px 0;
}

.archive-dashboard-item {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: 2px solid #059669;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.archive-dashboard-item:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    border-color: #047857;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.6);
}

.archive-dashboard-item:hover .dashboard-menu-icon,
.archive-dashboard-item:hover .dashboard-menu-title {
    color: white;
}

.dashboard-menu-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.dashboard-menu-title {
    font-family: 'B Nazanin', 'Tahoma', 'Arial', sans-serif;
    font-size: 18px;
    font-weight: bold;
    color: #1e3a8a;
    transition: color 0.3s;
}

/* Summary Content */
.summary-content {
    margin-top: 20px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    min-height: 200px;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

.section-header {
    margin-bottom: 30px;
    color: #1e3a8a;
    font-size: 24px;
    font-weight: bold;
}

.section-title {
    font-family: 'B Titr', 'B Nazanin', 'Tahoma', 'Arial', sans-serif;
    font-size: 25px;
    font-weight: bold;
    color: #1e3a8a;
    background: #fde68a;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(253, 230, 138, 0.5);
}

.header-item {
    font-family: 'B Titr', 'B Nazanin', 'Tahoma', 'Arial', sans-serif;
    font-size: 18px;
    color: #1e3a8a;
    background: #fde68a;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: right;
    box-shadow: 0 2px 10px rgba(253, 230, 138, 0.5);
}

/* Print Styles */
@media print {
    @page {
        size: A4;
        margin: 20mm;
    }
    body {
        font-family: 'B Nazanin', 'Tahoma', 'Arial', sans-serif;
        font-size: 18px;
        direction: rtl;
        margin: 0;
        padding: 20px;
        background: white;
        line-height: 27px;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    body div,
    body p,
    body td,
    body th,
    body span {
        line-height: 27px !important;
        font-family: 'B Nazanin', 'Tahoma', 'Arial', sans-serif !important;
        font-size: 18px !important;
        text-align: right !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .persian-text,
    .question-text {
        text-align: justify !important;
        text-justify: inter-word !important;
        text-align-last: auto !important;
        direction: rtl !important;
        unicode-bidi: bidi-override !important;
        word-spacing: 0px !important;
        letter-spacing: normal !important;
    }
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    .summary-section {
        margin-bottom: 30px;
        padding-bottom: 20px;
        border-bottom: 2px solid #fde68a;
        page-break-inside: avoid;
    }
    .summary-section:last-child {
        border-bottom: none;
    }
    .summary-section-title {
        font-family: 'B Titr', 'B Nazanin', 'Tahoma', 'Arial', sans-serif;
        font-size: 26px;
        font-weight: bold;
        color: #1e3a8a;
        background-color: #fde68a;
        padding: 10px 20px;
        border-radius: 8px;
        margin-bottom: 15px;
        text-align: center !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    .summary-item {
        margin-bottom: 8px;
        padding: 0;
        background: white;
        border-radius: 0;
    }
    .summary-item,
    .summary-item div,
    .summary-item td,
    .summary-item th {
        line-height: 27px !important;
        white-space: normal !important;
    }
    table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 8px;
    }
    .data-table th,
    .data-table td {
        border: 1px solid #cbd5e1;
        padding: 8px;
    }
    .data-table th {
        background: #e2e8f0;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .question-table {
        width: 100%;
        border-collapse: collapse;
        table-layout: fixed;
        direction: rtl;
        mso-table-lspace: 0pt;
        mso-table-rspace: 0pt;
    }
    .question-table td {
        border: none;
        padding: 0;
        line-height: 27px !important;
        vertical-align: top;
        font-size: 18px;
        font-family: 'B Nazanin', Tahoma, Arial, sans-serif;
    }
    .question-text {
        width: 77%;
        text-align: justify !important;
        text-justify: inter-word;
        direction: rtl !important;
        vertical-align: top !important;
        white-space: normal !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
        mso-bidi-language: FA;
    }
    .question-options {
        width: 23%;
        text-align: left !important;
        vertical-align: middle !important;
        direction: ltr;
        white-space: nowrap !important;
    }
    .options-table {
        width: 120px;
        border-collapse: collapse;
        table-layout: fixed;
        direction: ltr;
    }
    .options-table td {
        border: none;
        padding: 0;
        margin: 0;
        line-height: 27px !important;
        font-size: 18px;
        font-family: 'B Nazanin', Tahoma, Arial, sans-serif;
        white-space: nowrap !important;
        text-align: left !important;
        vertical-align: middle !important;
    }
    .options-table .yes-column {
        width: 60px;
    }
    .options-table .no-column {
        width: 60px;
    }
    .persian-text {
        direction: rtl !important;
        text-align: justify !important;
        text-justify: inter-word;
        line-height: 27px;
        font-family: 'B Nazanin', Tahoma, Arial, sans-serif;
        font-size: 18px;
        white-space: normal !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
        mso-bidi-language: FA;
    }
}
