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

body {
    font-family: 'Noto Sans Arabic', Arial, sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    direction: rtl;
    line-height: 1.6;
}

/* Login Styles */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
}

.login-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h1 {
    font-size: 2.5rem;
    color: #2563eb;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.login-header p {
    color: #64748b;
    font-size: 1.1rem;
}

.login-tabs {
    display: flex;
    margin-bottom: 2rem;
    background: #f1f5f9;
    border-radius: 8px;
    padding: 4px;
}

.login-tabs .tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #64748b;
}

.login-tabs .tab-btn.active {
    background: white;
    color: #2563eb;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.login-form {
    display: none;
}

.login-form.active {
    display: block;
}

.login-form h3 {
    color: #374151;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    text-align: center;
}

.login-form input {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.login-form input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.login-form button {
    width: 100%;
    background: #2563eb;
    color: white;
    border: none;
    padding: 0.875rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-form button:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.nav-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.user-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
}

.nav-menu {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid transparent;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.nav-btn.active {
    background: white;
    color: #2563eb;
    border-color: white;
}

.logout-btn {
    background: #dc2626;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Sections */
.section {
    display: none;
    min-height: calc(100vh - 80px);
}

.section.active {
    display: block;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, #e0f2fe 0%, #b3e5fc 100%);
    border-radius: 12px;
    margin-bottom: 2rem;
}

.hero h2 {
    font-size: 2.5rem;
    color: #1565c0;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    color: #424242;
    max-width: 600px;
    margin: 0 auto;
}

/* Dashboard Stats */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-right: 4px solid #2563eb;
}

.stat-card h3 {
    font-size: 2.5rem;
    color: #2563eb;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.stat-card p {
    color: #64748b;
    font-size: 1.1rem;
}

/* Student Management */
.student-management {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.student-management h3 {
    color: #2563eb;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

.add-student-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.add-student-form input,
.add-student-form select {
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.add-student-form input:focus,
.add-student-form select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.add-student-form button {
    background: #16a34a;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    grid-column: span 2;
}

.add-student-form button:hover {
    background: #15803d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

/* Students List */
.students-list {
    margin-top: 2rem;
}

.students-list h4 {
    margin-bottom: 1rem;
    color: #374151;
    font-size: 1.2rem;
}

.student-card {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-right: 4px solid #2563eb;
    transition: all 0.3s ease;
}

.student-card:hover {
    background: #f1f5f9;
    transform: translateX(-5px);
}

.student-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.student-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 1.1rem;
}

.student-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #64748b;
    font-size: 0.9rem;
}

.student-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-small {
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-evaluate {
    background: #2563eb;
    color: white;
}

.btn-evaluate:hover {
    background: #1d4ed8;
}

.btn-report {
    background: #059669;
    color: white;
}

.btn-report:hover {
    background: #047857;
}

.btn-ppi {
    background: #7c3aed;
    color: white;
}

.btn-ppi:hover {
    background: #6d28d9;
}

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

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

/* Evaluation Section */
.student-selector {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.student-selector label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.student-selector select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
}

/* Category Tabs */
.category-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: white;
    color: #64748b;
    border: 2px solid #e2e8f0;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tab-btn:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.tab-btn.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

/* Evaluation Content */
.evaluation-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-height: 400px;
}

.question-group {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
    border-right: 4px solid #3b82f6;
}

.question-title {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.question {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.question-text {
    margin-bottom: 0.75rem;
    color: #374151;
    font-weight: 500;
}

.question-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.option-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.option-group input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #2563eb;
}

.option-group label {
    color: #4b5563;
    cursor: pointer;
}

/* Actions */
.evaluation-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.save-btn, .report-btn, .print-btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.save-btn {
    background: #16a34a;
    color: white;
}

.save-btn:hover {
    background: #15803d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.report-btn {
    background: #2563eb;
    color: white;
}

.report-btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.print-btn {
    background: #ea580c;
    color: white;
}

.print-btn:hover {
    background: #c2410c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
}

/* Report Section */
.report-controls, .ppi-controls {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 1rem;
    align-items: end;
}

.report-controls select, .ppi-controls select {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
}

.report-controls button, .ppi-controls button {
    background: #2563eb;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
}

.report-content, .ppi-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-height: 400px;
}

/* Print Controls */
.print-controls {
    text-align: center;
    margin-top: 2rem;
}

/* Report Styles */
.report-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.report-title {
    color: #1e293b;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.report-date {
    color: #64748b;
    font-size: 1rem;
}

.student-info-report {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-right: 4px solid #2563eb;
}

.info-row {
    display: flex;
    margin-bottom: 0.5rem;
}

.info-label {
    font-weight: 600;
    color: #374151;
    min-width: 120px;
}

.info-value {
    color: #1e293b;
}

.evaluation-summary {
    margin-top: 2rem;
}

.summary-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
}

.summary-title {
    color: #2563eb;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.score-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: white;
    border-radius: 4px;
}

.score-label {
    color: #374151;
}

.score-value {
    font-weight: 600;
    color: #1e293b;
}

/* PPI Styles */
.ppi-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
    border-right: 4px solid #16a34a;
}

.ppi-section h3 {
    color: #16a34a;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.objective {
    background: white;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 6px;
    border-right: 3px solid #fbbf24;
}

.objective-title {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.objective-description {
    color: #4b5563;
    margin-bottom: 0.75rem;
}

.objective-timeline {
    color: #6b7280;
    font-size: 0.9rem;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .container {
        padding: 1rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .add-student-form {
        grid-template-columns: 1fr;
    }
    
    .add-student-form button {
        grid-column: span 1;
    }
    
    .category-tabs {
        justify-content: center;
    }
    
    .tab-btn {
        flex: 1;
        text-align: center;
        min-width: 120px;
    }
    
    .evaluation-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .save-btn, .report-btn, .print-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .report-controls, .ppi-controls {
        flex-direction: column;
    }
    
    .info-row {
        flex-direction: column;
    }
    
    .info-label {
        margin-bottom: 0.25rem;
        min-width: unset;
    }
    
    .score-item {
        flex-direction: column;
        text-align: center;
    }
    
    .student-details {
        grid-template-columns: 1fr;
    }
    
    .student-actions {
        justify-content: center;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .navbar, .nav-menu, .print-controls, .evaluation-actions, .report-controls, .ppi-controls {
        display: none;
    }
    
    .section {
        display: block !important;
        min-height: unset;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    .report-content, .ppi-content, .evaluation-content {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .report-header {
        border-bottom: 2px solid #000;
    }
    
    .report-title {
        color: #000;
    }
}