:root {
    --primary-color: #667eea;
    --primary-dark: #5a67d8;
    --secondary-color: #764ba2;
    --success-color: #48bb78;
    --danger-color: #f56565;
    --warning-color: #ed8936;
    --background-color: #f7fafc;
    --card-background: #ffffff;
    --text-color: #2d3748;
    --text-light: #718096;
    --border-color: #e2e8f0;
    --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-large: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-success: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    --gradient-danger: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
}
/* Language Modal */
.lang-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
}
.lang-modal.show {
    opacity: 1;
    visibility: visible;
}
.lang-modal-content {
    background: var(--card-background);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-large);
    text-align: center;
    transform: scale(0.95);
    transition: transform 0.3s;
}
.lang-modal.show .lang-modal-content {
    transform: scale(1);
}
.lang-modal-header h3 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 2rem;
}
.lang-modal-body {
    display: flex;
    gap: 1.5rem;
}
.lang-select-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-medium);
}
.lang-select-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-large);
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 2rem;
}
.disclaimer-header {
    background: linear-gradient(135deg, rgba(237, 137, 54, 0.08) 0%, rgba(245, 101, 101, 0.08) 100%);
    border-bottom: 2px solid rgba(237, 137, 54, 0.1);
    margin: 0 -2rem 3rem;
    padding: 1.5rem 2rem;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}
.disclaimer-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(135deg, var(--warning-color) 0%, var(--danger-color) 100%);
}
.disclaimer-header .disclaimer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}
.disclaimer-header p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.6;
    font-weight: 500;
}
.disclaimer-header p strong {
     color: var(--danger-color);
}
.header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    padding: 2rem 0;
}
.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 6px;
    background: var(--gradient-primary);
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}
.header h1 {
    font-size: 3.5rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
[dir="rtl"] .header h1 {
    letter-spacing: 0;
}
.header p {
    font-size: 1.3rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    font-weight: 400;
    line-height: 1.7;
}
.controls {
    background: var(--card-background);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-color);
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    z-index: 10;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}
.controls::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
}
.controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-grow: 1;
}
.control-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.control-group label {
    font-weight: 700;
    color: var(--text-color);
    font-size: 1rem;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}
[dir="rtl"] .control-group label {
    letter-spacing: 0;
}
#checklist-select {
    padding: 1rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    background: var(--card-background);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 250px;
    font-weight: 600;
    box-shadow: var(--shadow-light);
}
#checklist-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}
.export-dropdown {
    position: relative;
    display: inline-block;
}
.progress-bar-container {
    background-color: var(--border-color);
    border-radius: 10px;
    height: 12px;
    margin-top: 1.5rem;
    overflow: hidden;
    width: 100%;
    order: 3; /* Ensure it's at the bottom */
}
.progress-bar-fill {
    background: var(--gradient-primary);
    width: 0%;
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.lang-switcher, .restart-btn {
    background: var(--text-light);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
[dir="rtl"] .lang-switcher, [dir="rtl"] .restart-btn {
    letter-spacing: 0;
}
.lang-switcher:hover, .restart-btn:hover {
    background: var(--text-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}
.export-main-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
[dir="rtl"] .export-main-btn {
    letter-spacing: 0;
}
.export-main-btn::after {
    content: '▼';
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}
.export-dropdown:hover .export-main-btn::after {
    transform: rotate(180deg);
}
.export-main-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}
[dir="rtl"] .export-main-btn::before {
    background: linear-gradient(-90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}
.export-main-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-large);
}
.export-main-btn:hover::before {
    left: 100%;
}
[dir="rtl"] .export-main-btn:hover::before {
    left: -100%;
}
.export-main-btn:active {
    transform: translateY(-1px);
}
.export-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-background);
    border-radius: 12px;
    box-shadow: var(--shadow-large);
    border: 1px solid var(--border-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
    margin-top: 0.5rem;
    min-width: 100%;
}
.export-dropdown:hover .export-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.export-option {
    width: 100%;
    padding: 1rem 1.5rem;
    border: none;
    background: transparent;
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
[dir="rtl"] .export-option {
    text-align: right;
    gap: 0.75rem;
}
.export-option:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateX(5px);
}
[dir="rtl"] .export-option:hover {
    transform: translateX(-5px);
}
.export-option:first-child {
     border-bottom: 1px solid var(--border-color);
}
.question-card {
    background: var(--card-background);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.question-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}
.question-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-large);
    border-color: rgba(102, 126, 234, 0.3);
}
.article-title {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 800;
    color: white;
    background: var(--gradient-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: var(--shadow-light);
    position: relative;
    z-index: 1;
}
[dir="rtl"] .article-title {
    letter-spacing: 0;
}
.question-card p.question-text {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-weight: 400;
}
.button-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.yes-btn, .no-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}
[dir="rtl"] .yes-btn, [dir="rtl"] .no-btn {
    letter-spacing: 0;
}
.yes-btn {
    background: var(--gradient-success);
    color: white;
    box-shadow: var(--shadow-light);
}
.yes-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}
.no-btn {
    background: var(--gradient-danger);
    color: white;
    box-shadow: var(--shadow-light);
}
.no-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}
.yes-btn:disabled, .no-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}
.yes-btn.answered {
    background: var(--gradient-success);
    box-shadow: 0 0 0 3px rgba(72, 187, 120, 0.3), var(--shadow-medium);
    transform: scale(1.02);
}
.no-btn.answered {
    background: var(--gradient-danger);
    box-shadow: 0 0 0 3px rgba(245, 101, 101, 0.3), var(--shadow-medium);
    transform: scale(1.02);
}
.yes-btn::after, .no-btn::after {
    content: '';
    font-size: 1.2rem;
    font-weight: bold;
    margin-left: 0.5rem;
    display: inline-block;
    transition: transform 0.3s ease;
}
[dir="rtl"] .yes-btn::after, [dir="rtl"] .no-btn::after {
    margin-left: 0;
    margin-right: 0.5rem;
}
.yes-btn.correct::after, .no-btn.correct::after {
    content: '✔';
    transform: scale(1.2);
}
.yes-btn.incorrect::after, .no-btn.incorrect::after {
    content: '✖';
    transform: scale(1.2);
}
.feedback-section {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border-top: 2px solid var(--border-color);
    background: rgba(245, 101, 101, 0.05);
    border-radius: 12px;
    display: none;
}
.feedback-section.show {
    display: block;
    animation: fadeIn 0.5s ease;
}
.feedback-section .feedback-title {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--danger-color);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.feedback-section .feedback-title::before {
    content: '⚠️';
    font-size: 1.2rem;
}
.feedback-section p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}
/* Real Case Section */
.real-case-section {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border-radius: 12px;
    background: rgba(102, 126, 234, 0.05);
    border-left: 4px solid var(--primary-color);
    display: none;
}
[dir="rtl"] .real-case-section {
    border-left: none;
    border-right: 4px solid var(--primary-color);
}
.real-case-section.show {
    display: block;
    animation: fadeIn 0.5s ease;
}
.real-case-section .case-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.real-case-section .case-title::before {
    content: '📰';
    font-size: 1.2rem;
}
.real-case-section p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-color);
}
.best-practice-info {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(72, 187, 120, 0.1);
    border-left: 4px solid var(--success-color);
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--text-color);
}
[dir="rtl"] .best-practice-info {
    border-left: none;
    border-right: 4px solid var(--success-color);
}
.best-practice-info strong {
    color: var(--success-color);
}
.note-section {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(226, 232, 240, 1);
}
.feedback-section .note-section {
    border-top: 1px solid rgba(245, 101, 101, 0.2);
}
.note-section label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.note-section label::before {
    content: '📝';
    font-size: 1.1rem;
}
.note-input {
    width: 100%;
    min-height: 100px;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: inherit;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--card-background);
    transition: all 0.3s ease;
    resize: vertical;
}
.note-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background-color: var(--card-background);
}
.note-input::placeholder {
    color: var(--text-light);
    font-style: italic;
}
.completion-card {
    background: var(--card-background);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-large);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease forwards;
}
.completion-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-success);
}
.completion-card h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: var(--gradient-success);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.completion-card p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 2rem;
}
.main-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    align-items: start;
}
.questionnaire-section {
    min-height: 100vh;
}
.questionnaire-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.score-sidebar {
    position: sticky;
    top: 2rem;
    height: fit-content;
}
.score-panel {
    background: var(--card-background);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-color);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.score-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
}
.score-panel h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.score-panel .score-display {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 1.5rem;
}
.score-panel #score-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(var(--success-color) 0deg, var(--border-color) 0deg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: var(--shadow-light);
    transition: background 0.5s ease;
}
.score-panel #score-circle::before {
    content: '';
    position: absolute;
    width: 130px;
    height: 130px;
    background: var(--card-background);
    border-radius: 50%;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}
.score-panel #score-text {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-color);
    position: relative;
    z-index: 1;
}
.score-description {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    min-height: 50px;
}
.score-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
}
.stat-item {
    text-align: center;
}
.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    transition: color 0.3s ease;
}
.stat-value.val-answered { color: var(--primary-color); }
.stat-value.val-correct { color: var(--success-color); }
.stat-value.val-incorrect { color: var(--danger-color); }
.stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}
[dir="rtl"] .stat-label {
    letter-spacing: 0;
}
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    .score-sidebar {
        position: static;
        order: -1;
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .container { padding: 0 1rem 1rem; }
    .disclaimer-header { margin: 0 -1rem 2rem; padding: 1.2rem 1rem; }
    .disclaimer-header p { font-size: 0.9rem; }
    .header { margin-bottom: 3rem; padding: 1.5rem 0; }
    .header::before { width: 80px; height: 4px; }
    .header h1 { font-size: 2.5rem; margin-bottom: 1rem; }
    .header p { font-size: 1.1rem; }
    .controls { padding: 1.5rem; margin-bottom: 2rem; flex-direction: column; align-items: stretch; }
    .controls-row { flex-direction: column; gap: 1.5rem; align-items: stretch; }
    .control-group { flex-direction: column; gap: 1rem; align-items: stretch; }
    .export-dropdown { width: 100%; }
    .export-main-btn { width: 100%; justify-content: center; padding: 1rem; }
    #checklist-select { width: 100%; }
    .question-card { padding: 2rem 1.5rem; }
    .button-group { grid-template-columns: 1fr; }
    .score-panel { padding: 1.5rem; }
    .score-panel .score-display { width: 140px; height: 140px; }
    .score-panel #score-circle::before { width: 110px; height: 110px; }
    .score-panel #score-text { font-size: 1.8rem; }
    .main-content {
        display: block;
    }
    .score-sidebar { 
        position: static;
        order: -1;
        margin-bottom: 2rem;
    }
    .mobile-score-float { display: none; }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.question-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}
.question-card.exiting {
    animation: fadeOutUp 0.4s ease forwards;
}
@keyframes fadeOutUp {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to { opacity: 0; transform: translateY(-30px) scale(0.98); }
}
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--background-color); }
::-webkit-scrollbar-thumb { background: var(--primary-color); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-dark);
    color: #fff;
    border: none;
    font-size: 1.4rem;
    font-weight: 700;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-medium);
    z-index: 999;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}
[dir="rtl"] .back-to-top {
    right: auto;
    left: 20px;
}
.back-to-top.show {
    display: flex;
    opacity: 1;
}
.back-to-top:hover {
    transform: translateY(-3px) scale(1.05);
}
.pdf-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.pdf-modal.show {
    opacity: 1;
    visibility: visible;
}
.pdf-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}
.pdf-modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    height: 85vh;
    background: var(--card-background);
    border-radius: 20px;
    box-shadow: var(--shadow-large);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.pdf-modal.show .pdf-modal-content {
    transform: scale(1);
}
.pdf-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}
[dir="rtl"] .pdf-modal-header {
    flex-direction: row-reverse;
}
.pdf-modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
}
.pdf-modal-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}
.pdf-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}
.pdf-modal-close:hover {
    background: var(--danger-color);
    color: white;
    transform: scale(1.1);
}
.pdf-modal-body {
    flex: 1;
    position: relative;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pdf-viewer {
    width: 100%;
    height: 100%;
    border: none;
}
.pdf-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    color: var(--text-light);
}
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.next-button-container {
    margin-top: 2rem;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}
.next-button-container.show {
    opacity: 1;
    transform: translateY(0);
}
.next-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-medium);
    position: relative;
    overflow: hidden;
}
.next-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}
[dir="rtl"] .next-btn::before {
    background: linear-gradient(-90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}
.next-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-large);
}
.next-btn:hover::before {
    left: 100%;
}
[dir="rtl"] .next-btn:hover::before {
    left: -100%;
}
.next-btn:active {
    transform: translateY(0);
}
@media (max-width: 768px) {
    .next-btn {
        width: 100%;
        padding: 1.2rem 2rem;
        font-size: 1.2rem;
    }
}

/* Footer */
.footer {
    background: var(--card-background);
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 0;
    margin-top: 3rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

.footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer {
        padding: 1rem 0;
        margin-top: 2rem;
    }
    
    .footer-content {
        padding: 0 1rem;
    }
    
    .footer p {
        font-size: 0.85rem;
    }
}