/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    direction: rtl;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-title {
    color: #4f46e5;
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 0.9rem;
}

.page-indicator {
    background: #4f46e5;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
}

/* Page Management */
.page {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Page Headers */
.page-header {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.3);
}

.header-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
}

/* Cards */
.form-card, .report-card, .project-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.student-info-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}

.student-info-card h3 {
    color: #4f46e5;
    margin-bottom: 15px;
}

/* Forms */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

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

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

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-success {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.3);
}

.btn-primary:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background: #4b5563;
    transform: translateY(-2px);
}

.btn-success {
    background: #10b981;
    color: white;
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
}

/* Assessment Styles */
.assessment-container {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.assessment-header {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.assessment-progress {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.question-card {
    padding: 40px;
}

.question-content h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: #1f2937;
}

.options-container {
    display: grid;
    gap: 15px;
    margin-bottom: 30px;
}

.option {
    padding: 15px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.option:hover {
    border-color: #4f46e5;
    background: #f8fafc;
}

.option.selected {
    border-color: #4f46e5;
    background: #eef2ff;
    color: #4f46e5;
}

.question-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Results Styles */
.results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.results-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.results-card h3 {
    color: #1f2937;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.scores-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.score-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.score-item.total {
    font-weight: 700;
    font-size: 1.1rem;
    border-top: 2px solid #e5e7eb;
    padding-top: 15px;
}

.score {
    font-weight: 700;
    font-size: 1.1rem;
}

.arabic-score { color: #10b981; }
.math-score { color: #3b82f6; }
.french-score { color: #8b5cf6; }
.overall-score { color: #f59e0b; }

.score-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 10px 0;
}

.overall-assessment {
    text-align: center;
}

.grade-display {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.grade-description {
    color: #6b7280;
    font-size: 1.1rem;
}

.results-actions {
    text-align: center;
}

/* Report Styles */
.report-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
}

.report-header h2 {
    color: #1f2937;
    font-size: 2rem;
    margin-bottom: 10px;
}

.report-date {
    color: #6b7280;
    font-size: 1rem;
}

.report-section {
    margin-bottom: 35px;
}

.report-section h3 {
    color: #4f46e5;
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eef2ff;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
}

.performance-analysis {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.subject-analysis {
    padding: 20px;
    border-radius: 8px;
    border-right: 4px solid;
}

.subject-analysis.arabic { border-color: #10b981; background: #ecfdf5; }
.subject-analysis.math { border-color: #3b82f6; background: #eff6ff; }
.subject-analysis.french { border-color: #8b5cf6; background: #f3e8ff; }

.subject-analysis h4 {
    margin-bottom: 10px;
    font-weight: 600;
}

.recommendations-list {
    list-style: none;
    padding: 0;
}

.recommendations-list li {
    padding: 12px 0;
    padding-right: 25px;
    position: relative;
    border-bottom: 1px solid #f3f4f6;
}

.recommendations-list li:before {
    content: "✓";
    position: absolute;
    right: 0;
    color: #10b981;
    font-weight: bold;
}

.report-actions {
    text-align: center;
    margin-top: 40px;
}

/* Project Styles */
.project-header {
    text-align: center;
    margin-bottom: 40px;
}

.project-header h2 {
    color: #1f2937;
    font-size: 2rem;
    margin-bottom: 10px;
}

.project-subtitle {
    color: #6b7280;
    font-size: 1.1rem;
}

.objectives-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.objectives-card {
    padding: 25px;
    border-radius: 12px;
}

.objectives-card.short-term {
    background: #dbeafe;
    border: 2px solid #3b82f6;
}

.objectives-card.long-term {
    background: #dcfce7;
    border: 2px solid #10b981;
}

.objectives-card h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.objectives-card.short-term h3 { color: #1e40af; }
.objectives-card.long-term h3 { color: #047857; }

.objectives-card ul {
    list-style: none;
    padding: 0;
}

.objectives-card li {
    padding: 8px 0;
    padding-right: 20px;
    position: relative;
}

.objectives-card li:before {
    content: "•";
    position: absolute;
    right: 0;
    font-weight: bold;
}

.objectives-card.short-term li:before { color: #3b82f6; }
.objectives-card.long-term li:before { color: #10b981; }

.strategies-section, .evaluation-section {
    margin-bottom: 40px;
}

.strategies-section h3, .evaluation-section h3 {
    color: #7c3aed;
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.strategies-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    background: #faf5ff;
    padding: 25px;
    border-radius: 12px;
}

.strategy-item h4 {
    color: #7c3aed;
    margin-bottom: 10px;
    font-weight: 600;
}

.strategy-item ul {
    list-style: none;
    padding: 0;
}

.strategy-item li {
    padding: 5px 0;
    padding-right: 15px;
    position: relative;
    font-size: 0.9rem;
}

.strategy-item li:before {
    content: "•";
    position: absolute;
    right: 0;
    color: #7c3aed;
}

.evaluation-content {
    background: #fef2f2;
    padding: 25px;
    border-radius: 12px;
}

.evaluation-content ul {
    list-style: none;
    padding: 0;
}

.evaluation-content li {
    padding: 10px 0;
    padding-right: 20px;
    position: relative;
}

.evaluation-content li:before {
    content: "•";
    position: absolute;
    right: 0;
    color: #dc2626;
}

.project-actions {
    text-align: center;
    margin-top: 40px;
}

/* Activities Styles */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.activity-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.activity-card:hover {
    transform: translateY(-5px);
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.activity-header h3 {
    color: #1f2937;
    font-size: 1.2rem;
    flex: 1;
}

.activity-type {
    background: #dbeafe;
    color: #1e40af;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.activity-description {
    color: #6b7280;
    margin-bottom: 20px;
    line-height: 1.6;
}

.activity-duration {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    color: #374151;
    font-weight: 600;
}

.activity-materials h4 {
    color: #374151;
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.activity-materials ul {
    list-style: none;
    padding: 0;
}

.activity-materials li {
    padding: 4px 0;
    padding-right: 15px;
    position: relative;
    color: #6b7280;
    font-size: 0.9rem;
}

.activity-materials li:before {
    content: "•";
    position: absolute;
    right: 0;
    color: #4f46e5;
}

/* Resources Styles */
.resources-section {
    margin-bottom: 40px;
}

.resources-section h3 {
    text-align: center;
    color: #1f2937;
    font-size: 1.5rem;
    margin-bottom: 30px;
}

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

.resource-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-5px);
}

.resource-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.resource-card h4 {
    color: #1f2937;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.resource-card p {
    color: #6b7280;
    line-height: 1.6;
    font-size: 0.9rem;
}

/* Final Actions */
.final-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .objectives-grid {
        grid-template-columns: 1fr;
    }
    
    .strategies-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .page-header {
        padding: 20px;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .form-card, .report-card, .project-card {
        padding: 25px;
    }
    
    .final-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .final-actions button {
        width: 100%;
        max-width: 300px;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .navbar {
        display: none;
    }
    
    .page {
        display: block !important;
        page-break-after: always;
    }
    
    .page:last-child {
        page-break-after: auto;
    }
    
    .btn-primary, .btn-secondary, .btn-success {
        display: none;
    }
    
    .page-header {
        background: #f3f4f6 !important;
        color: black !important;
        box-shadow: none;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.slide-up {
    animation: slideUp 0.5s ease-in-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #4f46e5;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}