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

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #2E7D32 0%, #FFD700 50%, #D32F2F 100%);
    min-height: 100vh;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

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

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 3px solid #2E7D32;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border: 2px solid #2E7D32;
    border-radius: 25px;
    background: white;
    color: #2E7D32;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
}



/* Style spécial pour le bouton AR (orange) */
#lang-ar {
    border-color: #FF8C00;
    color: #FF8C00;
}

#lang-ar:hover {
    background: #FF8C00;
    color: white;
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.3);
}

#lang-ar.active {
    background: linear-gradient(135deg, #FF8C00 0%, #FFA500 100%);
    color: white;
    border-color: #FF8C00;
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.3);
}

.lang-flag {
    font-size: 1.2rem;
}

.lang-code {
    font-weight: 700;
    font-size: 0.9rem;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}


/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}


/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

.lang-flag {
    font-size: 1.2rem;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

.lang-code {
    font-weight: 700;
    font-size: 0.9rem;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex: 1;
    min-width: 300px;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

.logo-text {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

.mauritania-flag {
    width: 60px;
    height: 45px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: 2px solid #fff;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

.mauritania-flag:hover {
    transform: scale(1.05);
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

.logo i {
    font-size: 2.5rem;
    color: #2E7D32;
    flex-shrink: 0;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

.logo h1 {
    font-size: 2.5rem;
    color: #2E7D32;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    margin: 0;
    line-height: 1.2;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

.subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-top: 10px;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

/* Navigation Tabs */
.nav-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 10px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    gap: 10px;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

.nav-tab {
    flex: 1;
    padding: 15px 20px;
    border: none;
    background: transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

.nav-tab:hover {
    background: rgba(46, 125, 50, 0.1);
    color: #2E7D32;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

.nav-tab.active {
    background: linear-gradient(135deg, #2E7D32 0%, #4CAF50 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(46, 125, 50, 0.3);
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

/* Controls */
.controls {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

.search-container {
    flex: 1;
    min-width: 300px;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

.search-box {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 15px 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

.search-box i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

.search-box input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 1rem;
    padding-left: 40px;
    background: transparent;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

.filter-container {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

.filter-container select {
    padding: 15px 20px;
    border: none;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    font-size: 1rem;
    cursor: pointer;
    outline: none;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

.btn-refresh {
    padding: 15px 20px;
    border: none;
    border-radius: 15px;
    background: linear-gradient(135deg, #2E7D32 0%, #4CAF50 100%);
    color: white;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(46, 125, 50, 0.3);
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

.btn-refresh:hover {
    background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 100%);
    transform: translateY(-2px);
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

/* Stats */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

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

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2E7D32, #4CAF50);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

.stat-content {
    flex: 1;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

/* Loading */
.loading {
    text-align: center;
    padding: 50px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

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

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
    100% { transform: rotate(360deg); }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

/* Results */
.results-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

.results-header h2 {
    color: #333;
    font-size: 1.8rem;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

.results-count {
    background: #667eea;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

.schools-grid {
    display: grid;
    gap: 20px;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

.school-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    border-left: 5px solid #2E7D32;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid rgba(46, 125, 50, 0.1);
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

.school-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

.school-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

.school-rank {
    background: linear-gradient(135deg, #2E7D32 0%, #4CAF50 100%);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

.school-name {
    flex: 1;
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

.school-region {
    color: #666;
    font-size: 0.9rem;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

.school-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

/* Special layout for secondary level (lycées) with 5 parameters */
.secondary-stats {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

.school-stat {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

.school-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 5px;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

.school-stat-label {
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

.pagination button {
    padding: 12px 18px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.95);
    color: #2E7D32;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

.pagination button:hover {
    background: linear-gradient(135deg, #2E7D32 0%, #4CAF50 100%);
    color: white;
    transform: translateY(-2px);
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

.pagination button.active {
    background: linear-gradient(135deg, #2E7D32 0%, #4CAF50 100%);
    color: white;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(46, 125, 50, 0.2);
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

.footer-subtitle {
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

.footer-links {
    display: flex;
    gap: 20px;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

.footer-links a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

.footer-links a:hover {
    color: #5a6fd8;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

.modal-header {
    background: #667eea;
    color: white;
    padding: 20px 30px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

.close {
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    user-select: none;
    position: relative;
    z-index: 1000;
    pointer-events: auto;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

.close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

.close:active {
    transform: scale(0.95);
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

.close:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

/* Button reset for close button */
.close {
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: inherit;
    font-size: 2rem;
    font-weight: bold;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

.close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

.modal-body {
    padding: 30px;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

.modal-body h4 {
    color: #333;
    margin: 20px 0 10px 0;
    font-size: 1.2rem;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

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

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

.modal-body li {
    margin-bottom: 8px;
    color: #666;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

/* About Modal Specific Styles */
#aboutModal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

#aboutModal .modal-content {
    background: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

#aboutModal .modal-header {
    background: #667eea;
    color: white;
    padding: 20px 30px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

#aboutModal .modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

#aboutModal .close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

#aboutModal .close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

#aboutModal .modal-body {
    padding: 30px;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

#aboutModal .modal-body h4 {
    color: #333;
    margin: 20px 0 10px 0;
    font-size: 1.2rem;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

#aboutModal .modal-body ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

#aboutModal .modal-body li {
    margin-bottom: 8px;
    color: #666;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
    
    .flag-container.left,
    .flag-container.right {
        order: unset;
    }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
    
    .header-content .logo {
        order: 1;
        margin: 10px 0;
    }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
    
    .header-content h1 {
        font-size: 2rem;
    }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
    
    .mauritania-flag {
        width: 60px;
        height: 45px;
    }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
    
    .nav-tabs {
        flex-direction: column;
    }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
    
    .controls {
        flex-direction: column;
    }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
    
    .search-container {
        min-width: auto;
    }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
    
    .stats-container {
        grid-template-columns: 1fr;
    }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
    
    .results-header {
        flex-direction: column;
        align-items: flex-start;
    }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
    
    .school-header {
        flex-direction: column;
        align-items: flex-start;
    }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
    
    .school-stats {
        grid-template-columns: repeat(2, 1fr);
    }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .school-stats {
        grid-template-columns: 1fr;
    }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
    
    .secondary-stats {
        grid-template-columns: repeat(2, 1fr);
    }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
    
    .pagination {
        flex-wrap: wrap;
    }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
    
    .pagination button {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

/* Animation for school cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
    to {
        opacity: 1;
        transform: translateY(0);
    }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

/* Mauritania-specific enhancements */
.mauritania-flag {
    animation: wave 3s ease-in-out infinite;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
    25% { transform: rotate(2deg); }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
    75% { transform: rotate(-2deg); }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

.header-content h1::after {
    content: " 🇲🇷";
    font-size: 0.8em;
    margin-left: 10px;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

/* Enhanced success rate colors with Mauritania theme */
.success-rate-excellent { 
    color: #2E7D32; 
    font-weight: bold;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

.success-rate-good { 
    color: #4CAF50; 
    font-weight: bold;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

.success-rate-average { 
    color: #FFD700; 
    font-weight: bold;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

.success-rate-poor { 
    color: #D32F2F; 
    font-weight: bold;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

.school-card {
    animation: fadeInUp 0.5s ease forwards;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

/* Success rate color coding */
.success-rate-excellent { color: #28a745; }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
.success-rate-good { color: #17a2b8; }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
.success-rate-average { color: #ffc107; }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
.success-rate-poor { color: #dc3545; }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

/* Ranking styles */
.ranking-national {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

.ranking-regional {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

/* Performance Chart Styles */
.performance-chart {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    padding: 25px;
    margin-top: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

.chart-container {
    width: 100%;
    height: 300px;
    position: relative;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

.chart-bars {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 100%;
    padding: 20px 0;
    gap: 15px;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

.chart-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    position: relative;
    max-width: 80px;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

.bar-fill {
    width: 100%;
    background: var(--bar-color);
    border-radius: 8px 8px 0 0;
    transition: all 0.8s ease;
    position: relative;
    min-height: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: barGrow 1.5s ease-out;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

.bar-fill::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 8px 8px 0 0;
    z-index: 1;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

.bar-label {
    margin-top: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 8px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    min-width: 40px;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

.chart-bar::after {
    content: attr(data-label);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    font-weight: 600;
    color: #666;
    text-align: center;
    white-space: nowrap;
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

/* Chart animations */
@keyframes barGrow {
    from {
        height: 0;
        opacity: 0;
    }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
    to {
        height: var(--target-height);
        opacity: 1;
    }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

/* Hover effects for chart bars */
.chart-bar:hover .bar-fill {
    transform: scaleY(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

.chart-bar:hover .bar-label {
    background: var(--bar-color);
    color: white;
    transform: scale(1.1);
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

/* Responsive chart */
@media (max-width: 768px) {
    .chart-bars {
        gap: 8px;
    }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
    
    .chart-bar {
        max-width: 60px;
    }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
    
    .bar-label {
        font-size: 0.7rem;
        padding: 2px 6px;
    }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
    
    .chart-bar::after {
        font-size: 0.6rem;
        bottom: -25px;
    }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .chart-bars {
        gap: 5px;
    }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
    
    .chart-bar {
        max-width: 45px;
    }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
    
    .bar-label {
        font-size: 0.6rem;
        padding: 2px 4px;
        min-width: 30px;
    }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
    
    .chart-bar::after {
        font-size: 0.5rem;
        bottom: -20px;
    }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
    
    .header {
        padding: 20px 15px;
        margin-bottom: 20px;
    }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
    
    .logo {
        flex-direction: column;
        gap: 10px;
        min-width: auto;
    }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
    
    .logo-text {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
    
    .mauritania-flag {
        width: 50px;
        height: 37px;
    }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
    
    .logo i {
        font-size: 2rem;
    }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
    
    .logo h1 {
        font-size: 1.8rem;
        line-height: 1.1;
    }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
    
    .subtitle {
        font-size: 1rem;
        margin-top: 15px;
        line-height: 1.4;
    }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
    
    .nav-tabs {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
    
    .nav-tab {
        padding: 15px 20px;
        font-size: 1rem;
        width: 100%;
    }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
    
    .controls {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
    
    .search-container {
        width: 100%;
    }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
    
    .search-box {
        width: 100%;
    }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
    
    .search-box input {
        font-size: 16px; /* Prevents zoom on iOS */
    }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
    
    .filter-container {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
    
    .filter-container select {
        width: 100%;
        font-size: 16px; /* Prevents zoom on iOS */
    }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
    
    .btn-refresh {
        width: 100%;
        padding: 12px;
    }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 15px;
    }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
    
    .stat-card {
        padding: 15px;
    }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
    
    .stat-icon {
        width: 40px;
        height: 40px;
    }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
    
    .stat-icon i {
        font-size: 1.2rem;
    }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
    
    .stat-number {
        font-size: 1.2rem;
    }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
    
    .stat-label {
        font-size: 0.8rem;
    }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
    
    .schools-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
    }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
    
    .school-card {
        padding: 15px;
    }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
    
    .school-header h3 {
        font-size: 1.1rem;
    }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
    
    .school-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
    
    .stat-item {
        padding: 8px;
    }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
    
    .stat-value {
        font-size: 1rem;
    }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
    
    .stat-label {
        font-size: 0.7rem;
    }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
    
    .pagination {
        padding: 15px;
        flex-direction: column;
        gap: 10px;
    }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
    
    .pagination-info {
        order: 2;
        text-align: center;
    }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
    
    .pagination-controls {
        order: 1;
        justify-content: center;
    }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
    
    .pagination button {
        padding: 8px 12px;
        font-size: 0.9rem;
    }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
    
    .footer {
        padding: 20px 15px;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
    
    .footer-links a {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 5px;
    }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
    
    .header {
        padding: 15px 10px;
        margin-bottom: 15px;
    }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
    
    .logo h1 {
        font-size: 1.5rem;
    }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
    
    .subtitle {
        font-size: 0.9rem;
    }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
    
    .nav-tab {
        padding: 12px 15px;
        font-size: 0.9rem;
    }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
    
    .stats-container {
        grid-template-columns: 1fr;
        gap: 8px;
    }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
    
    .stat-card {
        padding: 12px;
    }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
    
    .school-card {
        padding: 12px;
    }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
    
    .school-stats {
        grid-template-columns: 1fr;
        gap: 8px;
    }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
    
    .chart-bars {
        gap: 5px;
    }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
    
    .chart-bar {
        max-width: 45px;
    }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
    
    .bar-label {
        font-size: 0.6rem;
        padding: 2px 4px;
        min-width: 30px;
    }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
    
    .chart-bar::after {
        font-size: 0.5rem;
        bottom: -20px;
    }

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}
}

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .header-content {
    flex-direction: row-reverse;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    flex-direction: row-reverse;
}

body.rtl .nav-tabs {
    flex-direction: row-reverse;
}

body.rtl .controls {
    flex-direction: row-reverse;
}

body.rtl .search-box {
    text-align: right;
}

body.rtl .search-box i {
    left: auto;
    right: 20px;
}

body.rtl .search-box input {
    padding-left: 20px;
    padding-right: 40px;
}

body.rtl .school-header {
    flex-direction: row-reverse;
}

body.rtl .school-info {
    text-align: right;
}

body.rtl .school-stats {
    direction: ltr; /* Keep numbers LTR */
}

body.rtl .results-header {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-links {
    flex-direction: row-reverse;
}

body.rtl .modal-header {
    flex-direction: row-reverse;
}

body.rtl .detail-item {
    flex-direction: row-reverse;
}

body.rtl .chart-bars {
    direction: ltr; /* Keep charts LTR */
}

body.rtl .pagination {
    direction: ltr; /* Keep pagination LTR */
}

/* Arabic font support */
body.rtl {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

body.rtl .logo h1 {
    font-family: 'Segoe UI', 'Tahoma', 'Arial', 'Noto Sans Arabic', 'Cairo', sans-serif;
}

/* RTL responsive adjustments */
@media (max-width: 768px) {
    body.rtl .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .logo {
        flex-direction: column;
    }
    
    body.rtl .logo-text {
        flex-direction: column;
    }
    
    body.rtl .nav-tabs {
        flex-direction: column;
    }
    
    body.rtl .controls {
        flex-direction: column;
    }
    
    body.rtl .school-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .results-header {
        flex-direction: column;
        align-items: flex-end;
    }
    
    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    body.rtl .footer-links {
        flex-direction: column;
    }
}

 
 / *   F i x   f o r   d u p l i c a t e   t e x t   o n   l a n g u a g e   b u t t o n s   * / 
 
 . l a n g - b t n : : b e f o r e ,   . l a n g - b t n : : a f t e r   {   c o n t e n t :   n o n e   ! i m p o r t a n t ;   } 
 
 . l a n g - b t n   . l a n g - c o d e : : b e f o r e ,   . l a n g - b t n   . l a n g - c o d e : : a f t e r   {   c o n t e n t :   n o n e   ! i m p o r t a n t ;   } 
 
 
 
 / *   E s s e n t i a l   R T L   S u p p o r t   f o r   A r a b i c   * / 
 
 b o d y . r t l   {   d i r e c t i o n :   r t l ;   t e x t - a l i g n :   r i g h t ;   f o n t - f a m i l y :   ' S e g o e   U I ' ,   ' T a h o m a ' ,   ' A r i a l ' ,   ' N o t o   S a n s   A r a b i c ' ,   ' C a i r o ' ,   s a n s - s e r i f ;   } 
 
 b o d y . r t l   . h e a d e r - c o n t e n t   {   f l e x - d i r e c t i o n :   r o w - r e v e r s e ;   } 
 
 b o d y . r t l   . n a v - t a b s   {   f l e x - d i r e c t i o n :   r o w - r e v e r s e ;   } 
 
 b o d y . r t l   . c o n t r o l s   {   f l e x - d i r e c t i o n :   r o w - r e v e r s e ;   } 
 
 b o d y . r t l   . s e a r c h - b o x   {   t e x t - a l i g n :   r i g h t ;   } 
 
  
 / *   L a n g u a g e   T o g g l e   S t y l e s   * /  
 . l a n g u a g e - t o g g l e   {   p o s i t i o n :   a b s o l u t e ;   t o p :   1 r e m ;   r i g h t :   2 r e m ;   z - i n d e x :   1 0 ;   }  
 / *   L a n g u a g e   T o g g l e   S t y l e s   * /  
 . l a n g u a g e - t o g g l e   {  
         p o s i t i o n :   a b s o l u t e ;  
         t o p :   1 r e m ;  
         r i g h t :   2 r e m ;  
         z - i n d e x :   1 0 ;  
 }  
  
 . l a n g - b t n   {  
         b a c k g r o u n d :   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 2 ) ;  
         b o r d e r :   2 p x   s o l i d   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 3 ) ;  
         c o l o r :   w h i t e ;  
         p a d d i n g :   0 . 5 r e m   1 r e m ;  
         b o r d e r - r a d i u s :   2 5 p x ;  
         c u r s o r :   p o i n t e r ;  
         f o n t - s i z e :   0 . 9 r e m ;  
         f o n t - w e i g h t :   6 0 0 ;  
         d i s p l a y :   f l e x ;  
         a l i g n - i t e m s :   c e n t e r ;  
         g a p :   0 . 5 r e m ;  
         t r a n s i t i o n :   a l l   0 . 3 s   e a s e ;  
         b a c k d r o p - f i l t e r :   b l u r ( 1 0 p x ) ;  
         b o x - s h a d o w :   0   4 p x   1 5 p x   r g b a ( 0 ,   0 ,   0 ,   0 . 2 ) ;  
 }  
  
 . l a n g - b t n : h o v e r   {  
         b a c k g r o u n d :   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 3 ) ;  
         b o r d e r - c o l o r :   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 5 ) ;  
         t r a n s f o r m :   t r a n s l a t e Y ( - 2 p x ) ;  
         b o x - s h a d o w :   0   6 p x   2 0 p x   r g b a ( 0 ,   0 ,   0 ,   0 . 3 ) ;  
 }  
  
 . l a n g - b t n   i   {  
         f o n t - s i z e :   1 r e m ;  
 }  
  
 . l a n g - b t n   s p a n   {  
         f o n t - s i z e :   0 . 8 r e m ;  
         f o n t - w e i g h t :   7 0 0 ;  
         t e x t - s h a d o w :   1 p x   1 p x   2 p x   r g b a ( 0 ,   0 ,   0 ,   0 . 3 ) ;  
 }  
  
 / *   R T L   L a n g u a g e   T o g g l e   * /  
 b o d y . r t l   . l a n g u a g e - t o g g l e   {  
         r i g h t :   a u t o ;  
         l e f t :   2 r e m ;  
 }  
  
 / *   H e a d e r   c o n t e n t   a d j u s t m e n t   f o r   l a n g u a g e   t o g g l e   * /  
 . h e a d e r - c o n t e n t   {  
         p o s i t i o n :   r e l a t i v e ;  
         d i s p l a y :   f l e x ;  
         a l i g n - i t e m s :   c e n t e r ;  
         j u s t i f y - c o n t e n t :   s p a c e - b e t w e e n ;  
 }  
  
 . l o g o   {  
         d i s p l a y :   f l e x ;  
         a l i g n - i t e m s :   c e n t e r ;  
         g a p :   1 r e m ;  
 }  
  
 / *   R T L   a d j u s t m e n t s   f o r   h e a d e r   * /  
 b o d y . r t l   . h e a d e r - c o n t e n t   {  
         f l e x - d i r e c t i o n :   r o w - r e v e r s e ;  
 }  
  
 b o d y . r t l   . l o g o   {  
         f l e x - d i r e c t i o n :   r o w - r e v e r s e ;  
 }  
 