:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --accent-color: #e74c3c;
    --gold: #FFD700;
    --silver: #C0C0C0;
    --bronze: #CD7F32;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    transition: all 0.3s ease;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.logo {
    display: flex;
    align-items: center;
    animation: fadeIn 1s ease;
}

.logo i {
    font-size: 2.5rem;
    margin-left: 15px;
    color: var(--light-color);
}

.logo-text h1 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.logo-text p {
    font-size: 1rem;
    opacity: 0.9;
}

/* Navigation */
nav {
    position: relative;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    position: relative;
    margin: 0 10px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: block;
}

.nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* Mobile Menu Button */
.menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    position: absolute;
    left: 5%;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background-color: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 20px;
}

.sidebar.active {
    right: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.sidebar-header h3 {
    color: var(--dark-color);
    font-size: 1.3rem;
}

.close-btn {
    background: none;
    border: none;
    color: var(--dark-color);
    font-size: 1.5rem;
    cursor: pointer;
}

.sidebar-links {
    list-style: none;
}

.sidebar-links li {
    margin-bottom: 15px;
}

.sidebar-links a {
    color: var(--dark-color);
    text-decoration: none;
    font-size: 1.1rem;
    display: block;
    padding: 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.sidebar-links a:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Main Content */
.main-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    height: 70vh;
    background: url('gamh.jpg') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 50px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    animation: slideUp 1s ease;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* أيقونات الصفحة الرئيسية */
.home-icons {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.home-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 120px;
   
    text-align: center;
}

.home-icon:hover {
    transform: translateY(-10px);
}

.icon-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.icon-circle i {
    font-size: 2rem;
    color: white;
}

.icon-text {
    font-weight: bold;
    color: var(--dark-color);
}

/* Grade Selection */
.grade-selection {
    text-align: center;
    margin-bottom: 50px;
    display: none;
}

.grade-title {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.grade-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.grade-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.grade-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    width: 300px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.grade-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.grade-card i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.grade-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.grade-card p {
    color: #666;
    line-height: 1.6;
}

/* Branches Section */
.branches-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.section-title {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.back-btn {
    display: inline-block;
    background-color: var(--light-color);
    color: var(--dark-color);
    padding: 8px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.back-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.branch-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.branch-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.branch-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.branch-card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 20px;
    position: relative;
}

.branch-card-header h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.branch-card-header p {
    opacity: 0.9;
    font-size: 0.9rem;
}

.progress-container {
    width: 100%;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    margin-top: 15px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: white;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.branch-card-body {
    padding: 20px;
}

.branch-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.branch-info-item {
    text-align: center;
}

.branch-info-item i {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.branch-info-item span {
    display: block;
    font-size: 0.9rem;
    color: #666;
}

.branch-info-item strong {
    color: var(--dark-color);
    font-size: 1.1rem;
}

.unavailable-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--accent-color);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Branch Details Section */
.branch-details {
    display: none;
    animation: fadeIn 0.5s ease;
}

.branch-details-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.branch-details-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
}

.branch-details-header h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    position: relative;
}

.branch-details-header p {
    opacity: 0.9;
    margin-bottom: 15px;
    position: relative;
}

.branch-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    position: relative;
}

.stat-item {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 8px;
    min-width: 150px;
}

.stat-item i {
    font-size: 1.5rem;
    margin-bottom: 10px;
    display: block;
}

.stat-item span {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
}

.stat-item strong {
    font-size: 1.3rem;
    display: block;
    margin-top: 5px;
}

/* Top Students */
.top-students {
    margin-top: 40px;
}

.top-students-title {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 20px;
    text-align: center;
}

.students-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.student-card {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    width: 250px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.student-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.student-rank {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    color: white;
}

.rank-1 {
    background-color: var(--gold);
    box-shadow: 0 0 0 5px rgba(255, 215, 0, 0.3);
}

.rank-2 {
    background-color: var(--silver);
    box-shadow: 0 0 0 5px rgba(192, 192, 192, 0.3);
}

.rank-3 {
    background-color: var(--bronze);
    box-shadow: 0 0 0 5px rgba(205, 127, 50, 0.3);
}

.student-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--light-color);
    margin-bottom: 15px;
}

.student-name {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.student-grade {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 10px;
}

.student-achievements {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

/* Students List */
.students-list {
    margin-top: 40px;
}

.students-list-title {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 20px;
    text-align: center;
}

.students-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.students-table th {
    background-color: var(--primary-color);
    color: white;
    padding: 15px;
    text-align: right;
}

.students-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    text-align: right;
}

.students-table tr:last-child td {
    border-bottom: none;
}

.students-table tr:hover {
    background-color: #f9f9f9;
}

/* About Section */
.about-section {
    background-color: white;
    padding: 80px 0;
    margin: 50px 0;
    display: none;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.about-content {
    flex: 1;
    min-width: 300px;
}

.about-content h2 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 20px;
    position: relative;
}

.about-content h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.about-content p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.mission-vision {
    margin-top: 30px;
}

.mission-vision h3 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.mission-vision ul {
    list-style: none;
    margin-bottom: 30px;
}

.mission-vision ul li {
    margin-bottom: 10px;
    padding-right: 20px;
    position: relative;
}

.mission-vision ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 0;
    top: 0;
    color: var(--secondary-color);
}

/* Contact Section */
.contact-section {
    background-color: var(--light-color);
    padding: 80px 0;
    margin: 50px 0;
    display: none;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-title {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.contact-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.contact-info {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-info h3 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 20px;
}

.contact-info ul {
    list-style: none;
}

.contact-info ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.contact-info ul li i {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-left: 10px;
    margin-top: 3px;
}

.contact-form {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--dark-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.submit-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding: 0 20px;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.footer-column p {
    margin-bottom: 15px;
    line-height: 1.6;
    opacity: 0.8;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-color);
    transform: translateX(-5px);
}

.footer-links a i {
    margin-left: 8px;
}

.social-links {
    display: flex;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-left: 10px;
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* Responsive Design */
@media (max-width: 992px) {
    .nav-links {
        display: none;
    }

    .menu-btn {
        display: block;
    }

    .hero h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 0 15px;
    }

    .logo-text h1 {
        font-size: 1.5rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .grade-cards {
        flex-direction: column;
        align-items: center;
    }

    .grade-card {
        width: 100%;
        max-width: 400px;
    }

    .branch-cards {
        grid-template-columns: 1fr;
    }

    .students-container {
        flex-direction: column;
        align-items: center;
    }

    .student-card {
        width: 100%;
        max-width: 300px;
    }

    .about-container {
        flex-direction: column;
    }

    .about-image {
        order: -1;
    }

    .home-icons {
        gap: 20px;
    }
    
    .home-icon {
        width: 100px;
    }
    
    .icon-circle {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .logo i {
        font-size: 2rem;
        margin-left: 10px;
    }

    .logo-text h1 {
        font-size: 1.3rem;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .section {
        padding: 60px 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .home-icons {
        flex-direction: column;
        gap: 30px;
    }
}

.icon-text {
font-weight: bold;
color: var(--dark-color);
font-size: 1.1rem; /* زيادة حجم الخط */
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1); /* إضافة ظل للنص */
}


:root {
--light-bg: #ffffff;
--light-text: #2c3e50;
--dark-bg: #1a1a1a;
--dark-text: #f8f9fa;
--primary-color: #3498db;
--secondary-color: #2ecc71;
--accent-color: #e74c3c;
}

body.dark-mode {
background-color: var(--dark-bg);
color: var(--dark-text);
}

body.dark-mode .content-box,
body.dark-mode .price-card,
body.dark-mode .condition-card {
background: #2d2d2d;
border: 1px solid #404040;
color: var(--dark-text);
}

body.dark-mode .price-header,
body.dark-mode .condition-icon {
background: rgba(255, 255, 255, 0.1);
}

body.dark-mode .price {
color: var(--secondary-color);
}

/* تنسيقات زر التبديل */
.theme-toggle {
background: none;
border: none;
color: var(--light-text);
font-size: 1.5rem;
cursor: pointer;
transition: all 0.3s ease;
}

body.dark-mode .theme-toggle {
color: var(--dark-text);
}

/* تحسينات تنسيقات الرسوم الدراسية */
.pricing-cards {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 30px;
margin-top: 30px;
}

.price-card {
background: var(--light-bg);
border-radius: 15px;
padding: 25px;
box-shadow: 0 5px 20px rgba(0,0,0,0.1);
transition: transform 0.3s ease;
}

.price-card:hover {
transform: translateY(-5px);
}

.price-header {
text-align: center;
padding: 20px;
border-radius: 10px;
background: rgba(52, 152, 219, 0.1);
margin-bottom: 25px;
}

.price-header i {
font-size: 2.5rem;
color: var(--primary-color);
}

.price-body {
display: flex;
flex-direction: column;
gap: 15px;
}

.price-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px;
background: rgba(52, 152, 219, 0.05);
border-radius: 8px;
}

.price {
font-weight: bold;
color: var(--primary-color);
}

/* تحسينات شروط القبول */
.conditions-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 25px;
margin-top: 30px;
}

.condition-card {
background: var(--light-bg);
padding: 25px;
border-radius: 15px;
text-align: center;
transition: all 0.3s ease;
}

.condition-card:hover {
box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.condition-icon {
width: 60px;
height: 60px;
background: rgba(46, 204, 113, 0.1);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 20px;
}

.condition-icon i {
font-size: 1.8rem;
color: var(--secondary-color);
}

/* تحسينات عامة */
.section-title {
text-align: center;
margin-bottom: 30px;
position: relative;
padding-bottom: 15px;
}

.section-title::after {
content: '';
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
width: 80px;
height: 3px;
background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

:root {
/* ألوان الوضع النهاري */
--light-bg: #ffffff;
--light-text: #2c3e50;
--light-card-bg: #f8f9fa;

/* ألوان الوضع الليلي */
--dark-bg: #121212; /* خلفية أغمق لراحة العين */
--dark-text: #e0e0e0; /* نص أكثر إشراقًا */
--dark-card-bg: #1e1e1e; /* خلفية العناصر */

/* ألوان مشتركة */
--primary-color: #4a90e2; /* أزرق أكثر نعومة */
--secondary-color: #34c759; /* أخضر Apple */
--accent-color: #ff453a; /* أحمر مميز */
}

body.dark-mode {
background-color: var(--dark-bg);
color: var(--dark-text);
}

/* تحسينات النصوص */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3 {
color: #ffffff !important; /* عناوين بيضاء للوضوح */
}

body.dark-mode p {
color: #cccccc !important; /* نص رمادي فاتح */
}

/* تحسينات البطاقات */
body.dark-mode .content-box,
body.dark-mode .price-card,
body.dark-mode .condition-card {
background: var(--dark-card-bg);
border: 1px solid #2e2e2e; /* حدود أكثر وضوحًا */
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* تحسينات الأزرار */
body.dark-mode .section-toggle {
background: linear-gradient(135deg, #5e5ce6, #32d74b);
color: #ffffff !important;
}

body.dark-mode .close-btn {
color: #ffffff !important;
}

body.dark-mode .close-btn:hover {
color: var(--accent-color) !important;
}

/* تحسينات الجداول */
body.dark-mode .students-table {
background: #1e1e1e;
}

body.dark-mode .students-table th {
background: #2c2c2c;
color: #ffffff;
}

body.dark-mode .students-table td {
border-color: #3a3a3a;
color: #e0e0e0;
}

/* تحسينات الأيقونات */
body.dark-mode .condition-icon {
background: rgba(255, 255, 255, 0.1);
}

body.dark-mode .condition-icon i {
color: var(--secondary-color) !important;
}

/* تحسينات القوائم */
body.dark-mode .footer-links li::before {
color: var(--secondary-color) !important;
}

body.dark-mode .footer-links a {
color: #cccccc !important;
}

/* تحسينات التقدم الدراسي */
body.dark-mode .progress-container {
background: rgba(255, 255, 255, 0.1);
}

body.dark-mode .progress-bar {
background: var(--secondary-color);
}

/* تحسينات خاصة بالرسوم */
body.dark-mode .price-item {
background: rgba(255, 255, 255, 0.05) !important;
}

body.dark-mode .price {
color: var(--secondary-color) !important;
}
.collapsible-sections {
margin: 2rem auto;
max-width: 1200px;
padding: 0 20px;
}

.section-toggle {
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
color: white;
border: none;
padding: 15px 30px;
border-radius: 50px;
font-size: 1.1rem;
cursor: pointer;
margin: 10px;
display: flex;
align-items: center;
gap: 10px;
transition: all 0.3s ease;
}

.section-toggle:hover {
transform: translateY(-3px);
box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.section-toggle i {
font-size: 1.2rem;
}

.section-content {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0,0,0,0.7);
z-index: 1000;
justify-content: center;
align-items: center;
}

.content-box {
background: white;
padding: 40px;
border-radius: 20px;
position: relative;
max-width: 600px;
width: 90%;
box-shadow: 0 10px 30px rgba(0,0,0,0.3);
animation: slideIn 0.3s ease;
}

.close-btn {
position: absolute;
top: 15px;
left: 15px;
background: none;
border: none;
font-size: 1.5rem;
color: var(--dark-color);
cursor: pointer;
transition: all 0.3s ease;
}

.close-btn:hover {
color: var(--accent-color);
transform: rotate(90deg);
}

.fee-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px;
margin: 10px 0;
background: #f8f9fa;
border-radius: 10px;
}

.prices {
display: flex;
flex-direction: column;
align-items: flex-end;
gap: 5px;
}

.conditions-list li {
padding: 12px;
margin: 10px 0;
background: #f8f9fa;
border-radius: 8px;
display: flex;
align-items: center;
gap: 10px;
}

@keyframes slideIn {
from {
transform: translateY(-50px);
opacity: 0;
}
to {
transform: translateY(0);
opacity: 1;
}
}

@media (max-width: 768px) {
.content-box {
padding: 25px;
}

.section-toggle {
font-size: 1rem;
padding: 12px 25px;
}
}

/* CSS */
.registration-section {
background: var(--light-color);
padding: 50px 20px;
margin: 40px 0;
border-radius: 15px;
box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.registration-cards {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 30px;
margin: 40px 0;
}

.registration-card {
background: white;
border-radius: 15px;
padding: 25px;
box-shadow: 0 5px 15px rgba(0,0,0,0.1);
transition: transform 0.3s ease;
position: relative;
overflow: hidden;
}

.registration-card:hover {
transform: translateY(-10px);
}

.registration-card::before {
content: '';
position: absolute;
top: 0;
right: 0;
width: 100%;
height: 5px;
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.course-title {
color: var(--dark-color);
margin-bottom: 15px;
font-size: 1.4rem;
}

.countdown-timer {
display: flex;
gap: 15px;
margin: 20px 0;
justify-content: center;
}

.timer-item {
text-align: center;
background: rgba(52, 152, 219, 0.1);
padding: 15px;
border-radius: 10px;
min-width: 70px;
}

.timer-number {
font-size: 1.8rem;
font-weight: bold;
color: var(--primary-color);
}

.timer-label {
font-size: 0.9rem;
color: #666;
}

.course-fees {
display: flex;
justify-content: space-between;
margin: 15px 0;
padding: 15px;
background: #f8f9fa;
border-radius: 10px;
}

.fee-currency {
display: flex;
flex-direction: column;
align-items: center;
}

.currency-amount {
font-size: 1.3rem;
font-weight: bold;
}

.currency-code {
color: #666;
font-size: 0.9rem;
}

.registration-conditions {
background: white;
padding: 30px;
border-radius: 15px;
margin-top: 40px;
}

.conditions-list li {
display: flex;
align-items: center;
gap: 10px;
margin: 15px 0;
padding: 15px;
background: #f8f9fa;
border-radius: 8px;
}

/* الوضع الليلي */
body.dark-mode .registration-section {
background: var(--dark-card-bg);
}

body.dark-mode .registration-card {
background: #2d2d2d;
}

body.dark-mode .course-title {
color: white;
}

body.dark-mode .conditions-list li {
background: rgba(255,255,255,0.05);
}

.registration-cards {
display: grid;
gap: 20px;
margin: 25px 0;
}

.registration-card {
background: #f8f9fa;
border-radius: 10px;
padding: 20px;
position: relative;
overflow: hidden;
border: 2px solid var(--primary-color);
}

.registration-card::before {
content: '';
position: absolute;
top: 0;
right: 0;
width: 100%;
height: 4px;
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.countdown-timer {
display: flex;
gap: 15px;
margin: 15px 0;
justify-content: center;
}

.timer-item {
background: rgba(52, 152, 219, 0.1);
padding: 12px;
border-radius: 8px;
min-width: 80px;
text-align: center;
}

.timer-number {
font-size: 1.8rem;
font-weight: bold;
color: var(--primary-color);
}

.registration-details {
margin-top: 15px;
padding: 15px;
background: rgba(0,0,0,0.03);
border-radius: 8px;
}

.registration-steps {
margin-top: 30px;
padding: 20px;
background: #f8f9fa;
border-radius: 10px;
}

.steps-list {
padding-right: 20px;
margin-top: 15px;
}

.steps-list li {
margin: 15px 0;
padding: 10px;
background: white;
border-radius: 8px;
transition: transform 0.3s ease;
}

.steps-list li:hover {
transform: translateX(10px);
}

/* الوضع الليلي */
body.dark-mode .registration-card {
background: rgba(255,255,255,0.05);
border-color: var(--secondary-color);
}

body.dark-mode .steps-list li {
background: rgba(255,255,255,0.1);
}

body.dark-mode .registration-steps {
background: rgba(255,255,255,0.05);
}


.share-section {
margin-top: 30px;
padding-top: 20px;
border-top: 1px solid #eee;
}

.share-title {
color: var(--dark-color);
font-weight: bold;
margin-bottom: 15px;
display: flex;
align-items: center;
gap: 10px;
font-size: 1.1rem;
}

.social-share {
display: flex;
gap: 15px;
justify-content: center;
}

.social-share a {
width: 40px;
height: 40px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s ease;
color: white;
font-size: 1.2rem;
}

.social-share .facebook { background: #1877f2; }
.social-share .twitter { background: #1da1f2; }
.social-share .whatsapp { background: #25d366; }
.social-share .telegram { background: #0088cc; }

.social-share a:hover {
transform: translateY(-3px);
box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* الوضع الليلي */
body.dark-mode .share-section {
border-color: rgba(255,255,255,0.1);
}

body.dark-mode .share-title {
color: var(--dark-text);
}

.whatsapp-cards {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 25px;
margin: 40px 0;
}

.whatsapp-card {
background: white;
border-radius: 15px;
padding: 25px;
display: flex;
align-items: center;
gap: 20px;
cursor: pointer;
transition: all 0.3s ease;
border: 2px solid #25D366;
position: relative;
overflow: hidden;
}

.whatsapp-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
}

.whatsapp-card::before {
content: '';
position: absolute;
top: 0;
right: 0;
width: 100%;
height: 4px;
background: #25D366;
}

.whatsapp-icon {
width: 60px;
height: 60px;
background: #25D366;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}

.whatsapp-icon i {
color: white;
font-size: 2rem;
}

.whatsapp-info h3 {
color: var(--dark-color);
margin-bottom: 5px;
font-size: 1.2rem;
}

.whatsapp-info p {
color: #666;
font-size: 0.9rem;
margin-bottom: 3px;
}

.whatsapp-number {
color: #25D366;
font-weight: bold;
font-size: 0.95rem;
}

/* الوضع الليلي */
body.dark-mode .whatsapp-card {
background: var(--dark-card-bg);
border-color: #128C7E;
}

body.dark-mode .whatsapp-info h3 {
color: var(--dark-text);
}

body.dark-mode .whatsapp-card::before {
background: #128C7E;
}

body.dark-mode .whatsapp-icon {
background: #128C7E;
}




.location-card {
background: white;
border-radius: 15px;
padding: 25px;
margin: 30px 0;
box-shadow: 0 5px 15px rgba(0,0,0,0.1);
border: 2px solid var(--primary-color);
}

.location-content {
display: flex;
justify-content: space-between;
align-items: center;
gap: 20px;
}

.location-info {
display: flex;
align-items: center;
gap: 20px;
flex-grow: 1;
}

.fa-map-marker-alt {
font-size: 2.5rem;
color: var(--primary-color);
min-width: 50px;
}

.address h3 {
color: var(--dark-color);
margin-bottom: 8px;
}

.address p {
color: #666;
line-height: 1.6;
}

.map-button {
background: var(--primary-color);
color: white;
border: none;
padding: 12px 25px;
border-radius: 30px;
cursor: pointer;
display: flex;
align-items: center;
gap: 10px;
transition: all 0.3s ease;
font-size: 1.1rem;
}

.map-button:hover {
background: var(--secondary-color);
transform: translateY(-3px);
box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.map-button i {
font-size: 1.2rem;
}

/* الوضع الليلي */
body.dark-mode .location-card {
background: var(--dark-card-bg);
border-color: var(--secondary-color);
}

body.dark-mode .address h3 {
color: var(--dark-text);
}

body.dark-mode .address p {
color: #aaa;
}




/* Teachers Section */
.teachers-section {
    padding: 60px 20px;
   
}

.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.teacher-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.teacher-card:hover {
    transform: translateY(-5px);
}

.teacher-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--primary-color);
}

.teacher-name {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.teacher-subject {
    color: var(--secondary-color);
    font-weight: bold;
}

/* Teacher Modal */
.teacher-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    overflow-y: auto;
}

.modal-content {
    background: white;
    max-width: 600px;
    margin: 50px auto;
    padding: 30px;
    border-radius: 20px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 30px;
    cursor: pointer;
    color: var(--dark-color);
}

.teacher-info {
    background: var(--light-color);
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
    text-align: right;
}

.teacher-info p {
    margin: 10px 0;
    font-size: 1.1rem;
}

body.dark-mode .teacher-card {
    background: var(--dark-card-bg);
}

body.dark-mode .modal-content {
    background: var(--dark-card-bg);
    color: var(--dark-text);
}
#resa{
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    position: fixed;
    z-index: 10000;
    left: 3%;
    top: 90%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
#reas i{
    font-size: 2rem;
    color: white;
   

}


/* تنسيق عام لجميع صناديق المحتوى */
.content-box {
    max-height: 80vh; /* ارتفاع أقصى 80% من ارتفاع الشاشة */
    overflow-y: auto; /* تمكين التمرير الرأسي عند الحاجة */
    padding: 20px;
    margin: 20px 0;
}

/* تحسينات خاصة للهواتف */
@media (max-width: 768px) {
    .content-box {
        max-height: 70vh; /* تقليل الارتفاع قليلاً للهواتف */
        padding: 15px;
    }

    /* تنسيق خاص للبطاقات الداخلية */
    .price-card, .condition-card, .registration-card {
        margin: 10px 0;
        padding: 15px;
        min-height: auto; /* إزالة أي ارتفاع ثابت مسبق */
    }

    /* تحسين عناصر القوائم */
    .conditions-list li, .steps-list li {
        padding: 12px;
        margin: 8px 0;
    }

    /* تعديل حجم الخطوط للقراءة الأفضل */
    .section-title {
        font-size: 1.4rem;
    }

    .price-item, .conditions-list li {
        font-size: 10.9rem;
    }
}

/* إصلاح التمرير السلس */
.content-box::-webkit-scrollbar {
    width: 5px;
}

.content-box::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.content-box::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

body.dark-mode .content-box::-webkit-scrollbar-track {
    background: #2c2c2c;
}

body.dark-mode .content-box::-webkit-scrollbar-thumb {
    background: #555;
}
/* تحسين أزرار الإغلاق */
.close-btn, .close-modal {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
}

.close-btn:hover, .close-modal:hover {
    color: var(--accent-color);
    transform: rotate(90deg);
}

/* تأكد من ظهور الأزرار فوق المحتوى */
.content-box, .modal-content {
    position: relative;
}
/* التنسيق العام للأيقونات */
.home-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.home-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 140px;
    
    text-align: center;
}

.icon-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.icon-circle i {
    font-size: 2rem;
    color: white;
}

.icon-text {
    font-size: 1.2rem;
    font-weight: 600;
    color:rgb(12, 12, 12) ;
    background-color: #eeeded;
    line-height: 1.4;
    border-radius: 8%;
    text-transform: uppercase; /* تحويل النص إلى أحرف كبيرة */
    letter-spacing: 1px; /* تباعد بين الحروف */
}

/* تأثيرات ال hover */
.home-icon:hover {
    transform: translateY(-10px);
}

.home-icon:hover .icon-text {
    color: var(--primary-color);
}

/* للوضع الليلي */
body.dark-mode .icon-text {
    color: var(--light-color);
    background:black ;
}

body.dark-mode .home-icon:hover .icon-text {
    color: var(--secondary-color);
}

/* تعديلات للهواتف */
@media (max-width: 768px) {
    .home-icon {
        width: 110px;
    }
    
    .icon-circle {
        width: 60px;
        height: 60px;
    }
    
    .icon-circle i {
        font-size: 1.5rem;
    }
    
    .icon-text {
        font-size: 1rem;
    }
}

.advanced-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(248, 248, 248);
    z-index:    11111;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Tajawal', sans-serif;
}

body.dark-mode .advanced-loader {
    background: rgb(0, 0, 0);
}

/* تصميم سداسي متحرك */
.hexagon-spinner {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #3498db, #2ecc71);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation: 
        rotate 2s linear infinite,
        colorShift 3s ease-in-out infinite;
}

/* جسيمات متحركة */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    background: #3498db;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: float 3s infinite;
}

.particle:nth-child(1) {
    top: 20%;
    left: 30%;
    animation-delay: 0.2s;
}

.particle:nth-child(2) {
    top: 60%;
    left: 50%;
    animation-delay: 0.5s;
}

.particle:nth-child(3) {
    top: 40%;
    left: 70%;
    animation-delay: 0.8s;
}

/* النص المتحرك */
.loading-text {
    margin-top: 30px;
    font-size: 1.2rem;
    color: #2c3e50;
    animation: textPulse 1.5s ease-in-out infinite;
}

body.dark-mode .loading-text {
    color: #ecf0f1;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.1rem;
    font-weight: bold;
    color: white;
}

/* الأنيميشنات */
@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes colorShift {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes textPulse {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}


.night-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Tajawal', sans-serif;
}

/* جسيمات نجمية */
.stellar-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.star {
    position: absolute;
    background: var(--secondary-color);
    width: 3px;
    height: 3px;
    border-radius: 50%;
    animation: twinkle 2s infinite;
}

.star:nth-child(1) { top: 20%; left: 15%; animation-delay: 0.2s; }
.star:nth-child(2) { top: 65%; left: 80%; animation-delay: 0.5s; }
.star:nth-child(3) { top: 40%; left: 45%; animation-delay: 0.8s; }

/* تصميم المجرة الدوارة */
.galaxy-spinner {
    position: relative;
    width: 120px;
    height: 120px;
}

.orbit {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(46, 204, 113, 0.3);
    border-radius: 50%;
    animation: spin 8s linear infinite;
}

.core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, #2ecc71, #27ae60);
    border-radius: 50%;
    box-shadow: 0 0 20px #2ecc71;
}

/* حالة التحميل */
.loading-status {
    text-align: center;
    margin-top: 30px;
}

.percentage {
    font-size: 1.8rem;
    color: #2ecc71;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(46, 204, 113, 0.5);
}

.loading-message {
    color: #bdc3c7;
    font-size: 1.1rem;
    margin-top: 10px;
    animation: text-glow 1.5s ease-in-out infinite;
}

/* أنيميشنات */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

@keyframes text-glow {
    0%, 100% { text-shadow: 0 0 5px rgba(189, 195, 199, 0.3); }
    50% { text-shadow: 0 0 15px rgba(189, 195, 199, 0.7); }
}

/* تحويل للوضع النهاري */
body:not(.dark-mode) .night-loader {
    background: rgba(255, 255, 255, 0.98);
}

body:not(.dark-mode) .star {
    background: var(--primary-color);
}

body:not(.dark-mode) .orbit {
    border-color: rgba(52, 152, 219, 0.3);
}

body:not(.dark-mode) .core {
    background: radial-gradient(circle, #3498db, #2980b9);
    box-shadow: 0 0 20px #3498db;
}

body:not(.dark-mode) .percentage {
    color: #3498db;
    text-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
}

body:not(.dark-mode) .loading-message {
    color: #2c3e50;
}
/* تنسيقات زر التفعيل */
.section-toggle {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px;
}

.section-toggle:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.section-toggle i {
    font-size: 1.2rem;
}

/* تنسيقات نافذة المحتوى */
.section-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.content-box {
    background: white;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    position: relative;
    animation: slideIn 0.3s ease;
}

/* تنسيقات البطاقات السعرية */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.price-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    transition: transform 0.3s ease;
}

.price-card:hover {
    transform: translateY(-5px);
}

.price-header {
    text-align: center;
    padding: 15px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 8px;
    margin-bottom: 20px;
}

.price-header i {
    font-size: 2rem;
    color: #3498db;
    margin-bottom: 10px;
}

.price-header h4 {
    color: #2c3e50;
    margin: 0;
}

.price-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.price {
    color: #27ae60;
    font-weight: bold;
    direction: ltr;
}

/* زر الإغلاق */
.close-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-btn:hover {
    color: #e74c3c;
    transform: rotate(90deg);
}

/* أنيميشن الدخول */
@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* تنسيقات الوضع الليلي */
body.dark-mode .content-box {
    background: #2d2d2d;
}

body.dark-mode .price-header {
    background: rgba(255, 255, 255, 0.1);
}

body.dark-mode .price-header h4 {
    color: #ecf0f1;
}

body.dark-mode .price-item {
    background: #363636;
}

body.dark-mode .price {
    color: #2ecc71;
}

/* تجاوبية للهواتف */
@media (max-width: 768px) {
    .content-box {
        padding: 20px;
    }
    
    .pricing-cards {
        grid-template-columns: 1fr;
    }
    
    .price-header i {
        font-size: 1.8rem;
    }
}



.fees-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.fees-main-title {
    text-align: center;
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 40px;
    position: relative;
}

.fees-main-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
}

.fees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
}

.fee-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.fee-card:hover {
    transform: translateY(-5px);
}

.card-header {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 25px;
    text-align: center;
}

.card-header i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.card-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.card-body {
    padding: 25px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.price-row.highlight {
    background: #e3f2fd;
    border: 2px solid #3498db;
}

.price-row span:first-child {
    color: #34495e;
    font-weight: 600;
}

.price {
    color: #27ae60;
    font-weight: bold;
    direction: ltr;
}

.card-footer {
    padding: 15px;
    background: #f8f9fa;
    text-align: center;
}

.discount-badge {
    background: #e74c3c;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.payment-notes {
    margin-top: 30px;
    padding: 20px;
    background: #fff3e0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 2px solid #ffe0b2;
}

.payment-notes i {
    color: #f39c12;
    font-size: 1.5rem;
}

/* الوضع الليلي */
body.dark-mode .fee-card {
    background: #2d2d2d;
}

body.dark-mode .card-header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
}

body.dark-mode .price-row {
    background: #363636;
}

body.dark-mode .price-row.highlight {
    background: #1e3a5a;
    border-color: #3498db;
}

body.dark-mode .payment-notes {
    background: #333300;
    border-color: #666633;
}

/* تجاوبية الهواتف */
@media (max-width: 768px) {
    .fees-main-title {
        font-size: 1.6rem;
    }
    
    .price-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .price {
        direction: ltr;
    }
}



.show-fees-btn {
    padding: 12px 25px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
    margin: 20px;
}

.show-fees-btn:hover {
    transform: translateY(-2px);
}

/* طبقة الخلفية الشفافة */
.fees-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* نافذة الرسوم الدراسية */
.fees-modal {
    background: white;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    position: relative;
    animation: modalIn 0.3s ease-out;
}

@keyframes modalIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* زر الإغلاق */
.close-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 1.8rem;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #e74c3c;
}

/* تنسيق البطاقات */
.fees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.fee-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #eee;
}

.fee-card h3 {
    color: #2c3e50;
    margin: 0 0 15px 0;
}

.fee-item {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
    padding: 10px;
    background: white;
    border-radius: 8px;
}

.price {
    color: #27ae60;
    font-weight: bold;
    direction: ltr;
}

/* الوضع الليلي */
body.dark-mode .fees-modal {
    background: #2d2d2d;
}

body.dark-mode .fee-card {
    background: #363636;
    border-color: #444;
}

body.dark-mode .fee-item {
    background: #2d2d2d;
}

body.dark-mode .price {
    color: #2ecc71;
}

@media (max-width: 768px) {
    .fees-modal {
        padding: 20px;
    }
    
    .close-btn {
        top: 10px;
        left: 10px;
        
    }
}


.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Tajawal', sans-serif;
    color: #333;
    line-height: 1.8;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  }
  
  .article-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
  }
  
  .title {
    color: #2c3e50;
    font-size: 2em;
    margin-bottom: 10px;
  }
  
  .decoration {
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, #3498db, #9b59b6);
    margin: 15px auto;
  }
  
  .intro-section {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.1em;
    color: #555;
  }
  
  .main-content {
    margin: 40px 0;
  }
  
  .journey-section {
    margin-bottom: 50px;
  }
  
  .phase {
    display: flex;
    margin-bottom: 30px;
    align-items: center;
  }
  
  .phase-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3498db, #9b59b6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    margin-left: 20px;
    flex-shrink: 0;
  }
  
  .phase-content {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    flex-grow: 1;
    border-right: 3px solid #3498db;
  }
  
  .life-lessons {
    display: flex;
    gap: 20px;
    margin-top: 40px;
  }
  
  .lesson-card {
    flex: 1;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    border-top: 3px solid #e74c3c;
    transition: transform 0.3s;
  }
  
  .lesson-card:hover {
    transform: translateY(-5px);
  }
  
  .lesson-icon {
    color: #e74c3c;
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  
  .hidden-message {
    background: #f9f0ff;
    padding: 30px;
    margin: 40px 0;
    text-align: center;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
  }
  
  .message-box {
    position: relative;
    z-index: 2;
  }
  
  .flower-decoration {
    position: absolute;
    font-size: 3em;
    opacity: 0.1;
    right: 20px;
    bottom: 10px;
    color: #9b59b6;
  }
  
  .article-footer {
    margin-top: 50px;
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #eee;
  }
  
  .prayer-box {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 30px;
    max-width: 600px;
  }
  
  .signature {
    font-style: italic;
    color: #7f8c8d;
    margin-top: 20px;
  }
  
  .institute {
    font-weight: bold;
    color: #2c3e50;
    margin-top: 5px;
  }
  
  @media (max-width: 768px) {
    .phase {
      flex-direction: column;
    }
    
    .phase-icon {
      margin: 0 auto 20px;
    }
    
    .life-lessons {
      flex-direction: column;
    }
    
    .lesson-card {
      margin-bottom: 20px;
    }
  }


  :root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --accent-color: #e74c3c;
    --gold: #FFD700;
    --silver: #C0C0C0;
    --bronze: #CD7F32;
    --light-bg: #ffffff;
    --light-text: #2c3e50;
    --dark-bg: #121212;
    --dark-text: #e0e0e0;
    --dark-card-bg: #1e1e1e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    transition: all 0.3s ease;
    overflow-x: hidden;
}

/* تحسينات التحميل */
.advanced-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(248, 248, 248);
    z-index: 11111;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

body.dark-mode .advanced-loader {
    background: rgb(0, 0, 0);
}

.hexagon-spinner {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #3498db, #2ecc71);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation: rotate 2s linear infinite, colorShift 3s ease-in-out infinite;
}

.loading-text {
    margin-top: 20px;
    font-size: 1rem;
    color: #2c3e50;
    animation: textPulse 1.5s ease-in-out infinite;
}

body.dark-mode .loading-text {
    color: #ecf0f1;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.9rem;
    font-weight: bold;
    color: white;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes colorShift {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

@keyframes textPulse {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

/* تحسينات الهيدر */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.8rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    z-index: 2;
}

.logo {
    display: flex;
    align-items: center;
    animation: fadeIn 1s ease;
}

.logo i {
    font-size: 2rem;
    margin-left: 10px;
    color: var(--light-color);
}

.logo-text h1 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.logo-text p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* تحسينات القائمة الجانبية */
.sidebar {
    width: 280px;
}

/* تحسينات الصفحة الرئيسية */
.hero {
    height: auto;
    min-height: 60vh;
    padding: 40px 20px;
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1rem;
    margin-bottom: 20px;
}

.home-icons {
    gap: 10px;
    margin-top: 30px;
}

.home-icon {
    width: 100px;
}

.icon-circle {
    width: 60px;
    height: 60px;
}

.icon-circle i {
    font-size: 1.5rem;
}

.icon-text {
    font-size: 0.9rem;
    padding: 5px;
}

/* تحسينات بطاقات المراحل */
.grade-cards {
    flex-direction: column;
    align-items: center;
}

.grade-card {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

/* تحسينات الجداول للهواتف */
.students-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
}

/* تحسينات صفحة المعلمين */
.teachers-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.teacher-card {
    padding: 15px;
}

.teacher-avatar {
    width: 100px;
    height: 100px;
}

/* تحسينات الوضع الليلي */
body.dark-mode {
    background-color: var(--dark-bg);
    color: var(--dark-text);
}

body.dark-mode .content-box,
body.dark-mode .price-card,
body.dark-mode .condition-card {
    background: var(--dark-card-bg);
    border: 1px solid #404040;
    color: var(--dark-text);
}

body.dark-mode .price-header,
body.dark-mode .condition-icon {
    background: rgba(255, 255, 255, 0.1);
}

body.dark-mode .price {
    color: var(--secondary-color);
}

/* تحسينات عامة للهواتف */
@media (max-width: 480px) {
    .logo i {
        font-size: 1.8rem;
    }

    .logo-text h1 {
        font-size: 1.2rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .home-icons {
        flex-direction: column;
    }

    .home-icon {
        width: 100%;
        margin-bottom: 15px;
    }

    .modal-content {
        width: 95%;
        padding: 15px;
    }

    .teacher-modal {
        padding: 10px;
    }

    .teacher-avatar {
        width: 80px;
        height: 80px;
    }
}

/* تحسينات التمرير السلس */
.content-box {
    max-height: 70vh;
    overflow-y: auto;
    padding: 15px;
}

.content-box::-webkit-scrollbar {
    width: 5px;
}

.content-box::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.content-box::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

body.dark-mode .content-box::-webkit-scrollbar-track {
    background: #2c2c2c;
}

body.dark-mode .content-box::-webkit-scrollbar-thumb {
    background: #555;
}

/* تحسينات الأداء */
.hidden {
    display: none !important;
}

/* تحسينات الصور */
img {
    max-width: 100%;
    height: auto;
}

/* تحسينات الأحجام النسبية */
h1 { font-size: 1.8rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.3rem; }
p, li { font-size: 1rem; }

@media (max-width: 768px) {
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.3rem; }
    h3 { font-size: 1.1rem; }
    p, li { font-size: 0.9rem; }
}


/* Exams Section */
.exams-section {
    padding: 60px 0;
}

.exams-filter, .subject-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 30px 0;
}

.filter-btn {
    padding: 8px 20px;
    background: #f0f0f0;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.filter-btn:hover {
    background: #ddd;
}

.filter-btn.active:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.exams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.exam-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.exam-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.exam-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.exam-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.exam-badge {
    background: white;
    color: var(--primary-color);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.exam-body {
    padding: 15px;
}

.exam-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #666;
}

.exam-download {
    display: block;
    text-align: center;
    background: var(--light-color);
    color: var(--dark-color);
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.exam-download:hover {
    background: var(--primary-color);
    color: white;
}

/* Dark Mode */
body.dark-mode .exam-card {
    background: var(--dark-card-bg);
}

body.dark-mode .exam-header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
}

body.dark-mode .exam-badge {
    color: var(--dark-text);
}

body.dark-mode .exam-download {
    background: rgba(255,255,255,0.1);
    color: var(--dark-text);
}

body.dark-mode .exam-download:hover {
    background: var(--secondary-color);
}

/* PDF Viewer Styles */


/* نافذة الانتظار أثناء التحميل */
.download-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 8px;
}

.download-popup {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    max-width: 80%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.download-popup .loading-icon {
    font-size: 2rem;
    color: #3498db;
    margin-bottom: 10px;
    animation: pulse 1.5s infinite;
}

.download-popup p {
    margin: 10px 0;
    color: #333;
}

.cancel-download {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.cancel-download:hover {
    background-color: #c0392b;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.exam-card {
    position: relative; /* مهم لعمل overlay داخله */
    overflow: hidden; /* لمنع تجاوز overlay لحدود الكارت */
}

/* قسم المعلمين */
.teachers-section {
    padding: 2rem 0;
}

.teachers-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.teachers-filter .filter-btn {
    background: #f5f5f5;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.teachers-filter .filter-btn.active {
    background: #3498db;
    color: white;
}

.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.teacher-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.teacher-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.teacher-avatar-container {
    height: 200px;
    overflow: hidden;
}

.teacher-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.teacher-card:hover .teacher-avatar {
    transform: scale(1.05);
}

.teacher-info-container {
    padding: 15px;
}

.teacher-name {
    margin: 0 0 5px 0;
    color: #2c3e50;
}

.teacher-subject {
    margin: 0 0 10px 0;
    color: #3498db;
    font-weight: bold;
}

.teacher-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* نافذة تفاصيل المعلم */
.teacher-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    overflow-y: auto;
}

.modal-content {
    background: white;
    margin: 50px auto;
    max-width: 600px;
    border-radius: 10px;
    padding: 20px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 25px;
    cursor: pointer;
}

.teacher-modal .teacher-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto 20px;
    border: 5px solid #f5f5f5;
}

.teacher-info {
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

.teacher-info p {
    margin: 8px 0;
}

.teacher-bio {
    line-height: 1.6;
    margin-bottom: 20px;
}

.teacher-contact {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.contact-methods {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.contact-methods a {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 5px;
    color: white;
    text-decoration: none;
}

.whatsapp-contact {
    background: #25D366;
}

.phone-contact {
    background: #3498db;
}

.no-teachers {
    text-align: center;
    grid-column: 1 / -1;
    padding: 40px 0;
    color: #7f8c8d;
}

.no-teachers i {
    font-size: 50px;
    margin-bottom: 15px;
    color: #bdc3c7;
}
/* تنسيقات التحميل */
.loading-branches, .loading-students {
    text-align: center;
    padding: 30px;
    grid-column: 1 / -1;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

.loader.small {
    width: 30px;
    height: 30px;
    border-width: 3px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* الرسائل التحذيرية */
.error-message, .no-branches, .no-students {
    text-align: center;
    padding: 30px;
    color: #666;
    grid-column: 1 / -1;
}

.error-message i, .no-branches i, .no-students i {
    font-size: 2rem;
    color: #e74c3c;
    margin-bottom: 15px;
    display: block;
}

/* البطاقات غير المتاحة */
.branch-card.unavailable {
    opacity: 0.7;
    position: relative;
    cursor: not-allowed;
}

.branch-card.unavailable::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.7);
    z-index: 1;
}

.unavailable-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #e74c3c;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 2;
}

/* تنسيقات الطلاب */
.student-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.student-avatar-small {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

/* الوضع الليلي */
body.dark-mode .branch-card.unavailable::after {
    background: rgba(0,0,0,0.7);
}

body.dark-mode .error-message,
body.dark-mode .no-branches,
body.dark-mode .no-students {
    color: #ccc;
}

/* نظام التحميل */
.teachers-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    flex-direction: column;
}

.loader-content {
    text-align: center;
}

.loader-spinner {
    position: relative;
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
}

.spinner-circle {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    width: 100%;
    height: 100%;
    animation: spin 1.5s linear infinite;
}

.institute-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.loader-text {
    font-size: 1.2rem;
    color: #333;
    margin-top: 15px;
}

/* بطاقات الأساتذة */
.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
}

.teacher-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.teacher-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.teacher-avatar {
    height: 180px;
    background: #f5f7fa;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.teacher-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.teacher-avatar .default-avatar {
    font-size: 60px;
    color: #3498db;
}

.teacher-info {
    padding: 15px;
}

.teacher-info h3 {
    margin: 0 0 5px 0;
    color: #2c3e50;
    font-size: 1.2rem;
}

.teacher-subject {
    color: #3498db;
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
}

.teacher-meta {
    display: flex;
    justify-content: space-between;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.teacher-meta span {
    display: flex;
    align-items: center;
}

.teacher-meta i {
    margin-left: 5px;
}

/* نافذة التفاصيل */
.teacher-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    overflow-y: auto;
}

.modal-content {
    background: white;
    margin: 50px auto;
    max-width: 600px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 25px;
    cursor: pointer;
    color: #7f8c8d;
    z-index: 1;
}

.close-modal:hover {
    color: #333;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* أنماط قسم الإدارة */


/* تنسيقات قسم الإدارة */

/* نظام الألوان */
:root {
    --primary-color: #3498db;
    --secondary-color: #2980b9;
    --success-color: #2ecc71;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --sidebar-width: 280px;
  }
  
  /* التنسيقات العامة */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
  }
  
  body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
  }
  
  /* نظام الكروت */
  .card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
  }
  
  .card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-3px);
  }
  
  .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
  }
  
  /* الأزرار */
  .btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    text-align: center;
  }
  
  .btn-primary {
    background-color: var(--primary-color);
    color: white;
  }
  
  .btn-primary:hover {
    background-color: var(--secondary-color);
  }
  
  .btn-danger {
    background-color: var(--danger-color);
    color: white;
  }
  
  .btn-danger:hover {
    background-color: #c0392b;
  }
  
  .btn-sm {
    padding: 5px 10px;
    font-size: 12px;
  }
  
  /* الجداول */
  .table {
    width: 100%;
    border-collapse: collapse;
  }
  
  .table th, .table td {
    padding: 12px 15px;
    text-align: right;
    border-bottom: 1px solid #eee;
  }
  
  .table th {
    background-color: #f8f9fa;
    color: var(--dark-color);
    font-weight: 600;
  }
  
  .table tr:hover {
    background-color: #f8f9fa;
  }
  
  /* نظام التبويبات */
  .tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
  }
  
  .tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    transition: all 0.3s;
  }
  
  .tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: 600;
  }
  
  .tab-content {
    display: none;
  }
  
  .tab-content.active {
    display: block;
  }
  
  /* النماذج */
  .form-group {
    margin-bottom: 15px;
  }
  
  .form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
  }
  
  .form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
  }
  
  /* الرسائل */
  .alert {
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: none;
  }
  
  .alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
  }
  
  .alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
  }
  
  /* نظام التحميل */
  .loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,0.8);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }
  
  .spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
 
  





/* نظام ألوان الوضع الداكن الفاخر */
:root {
    --dark-bg: #121212; /* خلفية داكنة */
    --dark-card-bg: #1e1e1e; /* خلفية العناصر */
    --dark-text: #e0e0e0; /* نص رئيسي */
    --dark-text-secondary: #b0b0b0; /* نص ثانوي */
    --dark-border: #333333; /* حدود */
    --dark-accent: #4a90e2; /* لون مميز */
    --dark-accent-hover: #3a7bc8; /* لون مميز عند hover */
    --dark-shadow: rgba(0, 0, 0, 0.3); /* ظلال */
    --dark-success: #2ecc71; /* نجاح */
    --dark-warning: #f39c12; /* تحذير */
    --dark-danger: #e74c3c; /* خطأ */
}

/* تنسيقات الوضع الداكن */
body.dark-mode {
    background-color: var(--dark-bg);
    color: var(--dark-text);
}

/* تحسينات النصوص والعناوين */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

body.dark-mode p,
body.dark-mode span {
    color: var(--dark-text-secondary) !important;
}

/* البطاقات */
body.dark-mode .card,
body.dark-mode .content-box,
body.dark-mode .price-card,
body.dark-mode .condition-card,
body.dark-mode .registration-card,
body.dark-mode .branch-card,
body.dark-mode .student-card,
body.dark-mode .teacher-card,
body.dark-mode .exam-card {
    background-color: var(--dark-card-bg) !important;
    border-color: var(--dark-border) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
    color: var(--dark-text) !important;
}

/* العناوين داخل البطاقات */
body.dark-mode .card-header,
body.dark-mode .price-header,
body.dark-mode .branch-card-header,
body.dark-mode .exam-header {
    background: linear-gradient(135deg, #2c3e50, #34495e) !important;
    border-bottom-color: var(--dark-border) !important;
}

/* الأزرار */
body.dark-mode .btn,
body.dark-mode .section-toggle,
body.dark-mode .exam-download,
body.dark-mode .submit-btn,
body.dark-mode .map-button {
    background: linear-gradient(135deg, var(--dark-accent), #3a7bc8) !important;
    color: white !important;
    box-shadow: 0 2px 10px rgba(74, 144, 226, 0.3) !important;
}

body.dark-mode .btn:hover,
body.dark-mode .section-toggle:hover,
body.dark-mode .exam-download:hover,
body.dark-mode .submit-btn:hover,
body.dark-mode .map-button:hover {
    background: linear-gradient(135deg, var(--dark-accent-hover), #2a6ab3) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4) !important;
}

/* الجداول */
body.dark-mode .students-table,
body.dark-mode .table {
    background-color: var(--dark-card-bg) !important;
    color: var(--dark-text) !important;
}

body.dark-mode .students-table th,
body.dark-mode .table th {
    background-color: #2c3e50 !important;
    color: white !important;
}

body.dark-mode .students-table td,
body.dark-mode .table td {
    border-color: var(--dark-border) !important;
    color: var(--dark-text-secondary) !important;
}

body.dark-mode .students-table tr:hover,
body.dark-mode .table tr:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

/* القوائم */
body.dark-mode .footer-links a,
body.dark-mode .sidebar-links a,
body.dark-mode .nav-links a {
    color: var(--dark-text-secondary) !important;
}

body.dark-mode .footer-links a:hover,
body.dark-mode .sidebar-links a:hover,
body.dark-mode .nav-links a:hover {
    color: var(--dark-accent) !important;
}

/* شريط التقدم */
body.dark-mode .progress-container {
    background: rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode .progress-bar {
    background: var(--dark-success) !important;
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.3) !important;
}

/* الأيقونات */
body.dark-mode .icon-circle,
body.dark-mode .condition-icon,
body.dark-mode .whatsapp-icon {
    box-shadow: 0 0 15px rgba(74, 144, 226, 0.3) !important;
}

body.dark-mode .teacher-avatar {
    border-color: var(--dark-accent) !important;
}

/* الرسائل والتنبيهات */
body.dark-mode .alert-success {
    background-color: rgba(46, 204, 113, 0.15) !important;
    border-color: rgba(46, 204, 113, 0.3) !important;
    color: #2ecc71 !important;
}

body.dark-mode .alert-danger {
    background-color: rgba(231, 76, 60, 0.15) !important;
    border-color: rgba(231, 76, 60, 0.3) !important;
    color: #e74c3c !important;
}

/* تأثيرات خاصة للوضع الداكن */
body.dark-mode {
    --glow-effect: 0 0 15px rgba(74, 144, 226, 0.3);
}

body.dark-mode .card:hover,
body.dark-mode .branch-card:hover,
body.dark-mode .teacher-card:hover,
body.dark-mode .exam-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), var(--glow-effect) !important;
}

/* التمرير */
body.dark-mode ::-webkit-scrollbar {
    width: 8px;
}

body.dark-mode ::-webkit-scrollbar-track {
    background: var(--dark-card-bg);
}

body.dark-mode ::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

body.dark-mode ::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* تأثيرات النص */
body.dark-mode .icon-text,
body.dark-mode .teacher-name,
body.dark-mode .student-name {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* تأثيرات التدرج اللوني للوضع الداكن */
body.dark-mode .hero::before,
body.dark-mode .branch-details-header::before {
    background: rgba(0, 0, 0, 0.7) !important;
}

body.dark-mode .grade-title::after,
body.dark-mode .section-title::after,
body.dark-mode .contact-title::after {
    background: linear-gradient(to right, var(--dark-accent), var(--dark-success)) !important;
}

/* الأقسام الخاصة */
body.dark-mode .developer-section {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d) !important;
}

body.dark-mode .developer-card {
    background: #252525 !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3) !important;
}

body.dark-mode .developer-skills li {
    background: #333 !important;
    color: var(--dark-text) !important;
}

/* التبديل بين الأوضاع */
.theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(30deg);
}

body.dark-mode .theme-toggle {
    color: var(--dark-accent);
}

/* تأثيرات خاصة للعناصر المميزة */
body.dark-mode .rank-1 {
    box-shadow: 0 0 0 5px rgba(255, 215, 0, 0.5) !important;
}

body.dark-mode .rank-2 {
    box-shadow: 0 0 0 5px rgba(192, 192, 192, 0.5) !important;
}

body.dark-mode .rank-3 {
    box-shadow: 0 0 0 5px rgba(205, 127, 50, 0.5) !important;
}

/* تأثيرات الـ hover الفاخرة */
body.dark-mode .home-icon:hover .icon-circle {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(74, 144, 226, 0.5) !important;
}

body.dark-mode .grade-card:hover,
body.dark-mode .branch-card:hover,
body.dark-mode .teacher-card:hover {
    transform: translateY(-8px) !important;
}

/* التألق عند التركيز */
body.dark-mode input:focus,
body.dark-mode textarea:focus,
body.dark-mode select:focus {
    border-color: var(--dark-accent) !important;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.3) !important;
}

/* تخصيصات للهواتف في الوضع الداكن */
@media (max-width: 768px) {
    body.dark-mode .content-box {
        background: #1a1a1a !important;
    }
    
    body.dark-mode .modal-content {
        background: #252525 !important;
    }
    
    body.dark-mode .menu-btn,
    body.dark-mode .close-btn {
        color: var(--dark-text) !important;
    }
}

/* أنماط مؤشر التحميل */
.teachers-loader {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.teachers-loader .loader-content {
    text-align: center;
}

.teachers-loader .spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* أنماط رسالة الخطأ */
.error-message {
    text-align: center;
    padding: 20px;
    color: #d9534f;
}

.error-message i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.retry-btn {
    background: #5bc0de;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    margin-top: 10px;
    cursor: pointer;
}

.retry-btn:hover {
    background: #31b0d5;
}

/* أنماط مؤشر تحميل الامتحانات */
.exams-loader {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.exams-loader .loader-content {
    text-align: center;
}

.exams-loader .spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

/* يمكنك استخدام نفس أنماط spin و error-message السابقة */

/* تنسيقات قسم المطور */
.developer-section {
    padding: 2rem;
    background-color: #f9f9f9;
    min-height: 100vh;
}

.dark-mode .developer-section {
    background-color: #1a1a1a;
    color: #f0f0f0;
}

.developer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.developer-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    border-radius: 15px;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.developer-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 1.5rem;
}

.developer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.developer-intro h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.developer-title {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.developer-social {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-link {
    color: white;
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.social-link:hover {
    transform: translateY(-5px);
}

.developer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.developer-about, .developer-skills, .developer-projects, .developer-stats, .developer-contact {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.dark-mode .developer-about, 
.dark-mode .developer-skills, 
.dark-mode .developer-projects, 
.dark-mode .developer-stats, 
.dark-mode .developer-contact {
    background-color: #2a2a2a;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.developer-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dark-mode .developer-content h2 {
    color: #f0f0f0;
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.skill-item {
    margin-bottom: 1rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.skill-bar {
    height: 10px;
    background-color: #eee;
    border-radius: 5px;
    overflow: hidden;
}

.dark-mode .skill-bar {
    background-color: #444;
}

.skill-level {
    height: 100%;
    background: linear-gradient(90deg, #6e8efb, #a777e3);
    border-radius: 5px;
    transition: width 1.5s ease-in-out;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.dark-mode .project-card {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.project-image {
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-info {
    padding: 1.5rem;
    background-color: white;
}

.dark-mode .project-info {
    background-color: #2a2a2a;
}

.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.dark-mode .project-info h3 {
    color: #f0f0f0;
}

.project-info p {
    color: #666;
    margin-bottom: 1rem;
}

.dark-mode .project-info p {
    color: #aaa;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #6e8efb;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s;
}

.project-link:hover {
    color: #a777e3;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background-color: #f5f5f5;
    border-radius: 10px;
    transition: transform 0.3s;
}

.dark-mode .stat-card {
    background-color: #333;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2rem;
    color: #6e8efb;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
}

.dark-mode .stat-number {
    color: #f0f0f0;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

.dark-mode .stat-label {
    color: #aaa;
}

.contact-content {
    text-align: center;
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-email:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* تأثيرات الحركة */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.developer-about, .developer-skills, .developer-projects, .developer-stats, .developer-contact {
    animation: fadeInUp 0.8s ease-out forwards;
}

.developer-skills {
    animation-delay: 0.1s;
}

.developer-projects {
    animation-delay: 0.2s;
}

.developer-stats {
    animation-delay: 0.3s;
}

.developer-contact {
    animation-delay: 0.4s;
}

/* تأثيرات العد للإحصائيات */
.stat-number {
    transition: all 1s ease-out;
}
.social-icons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 30px 0;
  }
  
  .social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    color: white;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
  }
  
  .social-icons a:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  }
  
  .tiktok-icon {
    background: linear-gradient(45deg, #25F4EE, #000000);
  }
  
  .instagram-icon {
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D, #F56040, #F77737, #FCAF45, #FFDC80);
  }
  
  .telegram-icon {
    background: #0088cc;
  }

/* نمط عارض PDF */
.pdf-viewer-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow: auto;
}

.pdf-viewer-container {
    background-color: #fff;
    margin: 20px auto;
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.pdf-viewer-header {
    background-color: #2c3e50;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.pdf-viewer-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0 10px;
}

.pdf-viewer-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.pdf-control-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.pdf-control-btn:hover {
    background-color: #2980b9;
}

.pdf-viewer-content {
    overflow: auto;
    padding: 20px;
    text-align: center;
    flex-grow: 1;
}

#pdfCanvas {
    border: 1px solid #ddd;
    max-width: 100%;
    margin: 0 auto;
}

/* تعديلات للهواتف */
@media (max-width: 768px) {
    .pdf-viewer-container {
        max-width: 95%;
        max-height: 95vh;
    }
    
    .pdf-viewer-header {
        flex-direction: column;
        text-align: center;
    }
    
    .pdf-viewer-controls {
        width: 100%;
    }
    
    .pdf-control-btn {
        padding: 5px 8px;
        font-size: 12px;
    }
    
    #pdfCanvas {
        max-width: 95%;
    }
}

/* نمط بطاقات الامتحانات */
.exam-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.exam-view {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    font-size: 14px;
}

.exam-view:hover {
    background-color: #2980b9;
}



/* أنماط عرض الامتحان */
.exam-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.exam-modal-content {
    background-color: white;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.exam-modal-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.exam-modal-body {
    padding: 15px;
}

.exam-modal-footer {
    padding: 15px;
    border-top: 1px solid #eee;
    text-align: center;
}

.exam-details {
    margin-bottom: 20px;
}

.exam-details p {
    margin: 8px 0;
}

.exam-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-download {
    background-color: #28a745;
    color: white;
}

.btn-view {
    background-color: #17a2b8;
    color: white;
}

.btn-close {
    background-color: #dc3545;
    color: white;
}

/* أنماط قائمة الامتحانات في لوحة التحكم */
.exam-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.exam-info {
    flex: 1;
}

.exam-meta {
    display: flex;
    gap: 15px;
    margin-top: 8px;
    color: #666;
    font-size: 14px;
}

.exam-file-info {
    margin-top: 8px;
    color: #444;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.exam-actions {
    display: flex;
    gap: 8px;
}

.btn-view {
    background-color: #17a2b8;
    color: white;
}

/* أنماط نموذج الامتحان */
.file-upload-wrapper {
    margin-top: 8px;
}

#filePreview {
    background-color: #f8f9fa;
    padding: 8px;
    border-radius: 4px;
    margin-top: 8px;
    border: 1px dashed #ddd;
}

#filePreview span {
    display: block;
    font-size: 14px;
}

#fileName {
    font-weight: bold;
}

#fileSize {
    color: #666;
    font-size: 13px;
}
  /* تنسيقات إدارة الطلاب المتميزين */
.manage-distinguished {
    padding: 20px;
}

.distinguished-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.distinguished-students, 
.regular-students {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.student-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #eee;
    border-radius: 5px;
    transition: all 0.3s;
}

.student-card.distinguished {
    border-left: 4px solid #ffc107;
    background-color: #fffae6;
}

.student-info {
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.student-info .avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    overflow: hidden;
}

.student-info .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.student-info .avatar i {
    font-size: 24px;
    color: #666;
}

.student-info .details {
    flex-grow: 1;
}

.student-info .details h4 {
    margin: 0;
    font-size: 16px;
}

.student-info .details p {
    margin: 5px 0 0;
    font-size: 13px;
    color: #666;
}

.distinguished-rules {
    margin-top: 30px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.distinguished-rules h3 {
    margin-top: 0;
    color: #333;
}

.distinguished-rules ul {
    padding-right: 20px;
}

.distinguished-rules li {
    margin-bottom: 8px;
}

.no-items {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}

.btn-distinguished {
    background-color: #ffc107;
    color: #333;
    margin: 0 5px;
}

.btn-distinguished:hover {
    background-color: #e0a800;
    color: #333;
}



/* تنسيقات قسم المطور */
.developer-section {
    padding: 20px;
    background-color: #f9f9f9;
    color: #333;
    direction: rtl;
    overflow-x: hidden;
}

.developer-container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* قسم الصورة والمقدمة */
.developer-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    text-align: center;
}

.developer-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

.developer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.developer-intro h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.developer-title {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.social-icons a {
    color: white;
    font-size: 24px;
    transition: transform 0.3s;
}

.social-icons a:hover {
    transform: translateY(-3px);
}

/* المحتوى الرئيسي */
.developer-content {
    padding: 20px;
}

.developer-about, 
.developer-skills, 
.developer-projects, 
.developer-stats, 
.developer-contact {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.developer-content h2 {
    font-size: 22px;
    color: #444;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.developer-content h2 i {
    color: #6e8efb;
}

.about-content p {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* مهارات */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.skill-item {
    margin-bottom: 10px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 14px;
}

.skill-bar {
    height: 8px;
    background-color: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.skill-level {
    height: 100%;
    background: linear-gradient(90deg, #6e8efb, #a777e3);
    border-radius: 4px;
    transition: width 1s ease-in-out;
}

/* المشاريع */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.project-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.project-image {
    height: 180px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-info {
    padding: 15px;
}

.project-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #444;
}

.project-info p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #6e8efb;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s;
}

.project-link:hover {
    color: #a777e3;
}

/* الإحصائيات */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.stat-card {
    background-color: #f5f7fa;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 30px;
    color: #6e8efb;
    margin-bottom: 10px;
}

.stat-number {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    display: block;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #666;
}

/* التواصل */
.contact-content p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background-color: #f5f7fa;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s;
}

.contact-email:hover {
    background-color: #eef2f7;
}

/* تأثيرات الحركة */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.developer-section > * {
    animation: fadeIn 0.5s ease-out forwards;
}

/* تعديلات للهواتف */
@media (max-width: 768px) {
    .developer-hero {
        padding: 30px 20px;
    }
    
    .developer-image {
        width: 120px;
        height: 120px;
    }
    
    .developer-intro h1 {
        font-size: 24px;
    }
    
    .developer-title {
        font-size: 16px;
    }
    
    .developer-content {
        padding: 15px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .project-image {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .developer-section {
        padding: 10px;
    }
    
    .developer-container {
        border-radius: 8px;
    }
    
    .developer-hero {
        padding: 25px 15px;
    }
    
    .developer-image {
        width: 100px;
        height: 100px;
        border-width: 3px;
    }
    
    .developer-intro h1 {
        font-size: 22px;
    }
    
    .developer-content h2 {
        font-size: 20px;
    }
    
    .skill-info {
        font-size: 13px;
    }
    
    .project-info h3 {
        font-size: 16px;
    }
    
    .project-info p {
        font-size: 13px;
    }
    
    .stat-number {
        font-size: 22px;
    }
    
    .contact-email {
        font-size: 14px;
        padding: 8px 12px;
    }
}


/* قسم الامتحانات السريعة */
.quick-exams-section {
    padding: 2rem 0;
    background-color: #f8f9fa;
}

.quick-exams-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.quick-exams-filter .filter-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 30px;
    background-color: #e9ecef;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.quick-exams-filter .filter-btn.active {
    background-color: #4e73df;
    color: white;
}

.quick-exams-filter .filter-btn:hover {
    background-color: #d1d7e0;
}

.quick-exams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.quick-exam-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.quick-exam-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.quick-exam-header {
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
    color: white;
    padding: 1.2rem;
}

.quick-exam-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.quick-exam-body {
    padding: 1.2rem;
}

.quick-exam-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    color: #6c757d;
}

.quick-exam-meta i {
    margin-left: 5px;
    color: #4e73df;
}

.quick-exam-actions {
    margin-top: 1.2rem;
}

.start-quiz-btn {
    width: 100%;
    padding: 0.7rem;
    background-color: #4e73df;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.start-quiz-btn:hover {
    background-color: #3a5bbf;
}

/* نافذة الامتحان */
.quiz-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    box-sizing: border-box;
}

.quiz-modal-content {
    background-color: white;
    border-radius: 10px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.quiz-header {
    padding: 1.2rem;
    background-color: #4e73df;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quiz-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.quiz-progress {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.quiz-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex-grow: 1;
}

.question-text {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: #343a40;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.option-btn {
    padding: 0.8rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background-color: white;
    text-align: right;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
    color: #495057;
}

.option-btn:hover {
    border-color: #c5ccd6;
    background-color: #f8f9fa;
}

.option-btn.selected {
    border-color: #4e73df;
    background-color: rgba(78, 115, 223, 0.1);
    color: #4e73df;
}

.option-btn.correct {
    border-color: #28a745;
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.option-btn.incorrect {
    border-color: #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.explanation-container {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-right: 4px solid #4e73df;
}

.explanation-container h4 {
    margin-top: 0;
    color: #4e73df;
}

.quiz-footer {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.quiz-btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 5px;
    background-color: #e9ecef;
    color: #495057;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quiz-btn:hover {
    background-color: #d1d7e0;
}

.quiz-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.reveal-btn {
    background-color: #ffc107;
    color: #343a40;
}

.reveal-btn:hover {
    background-color: #e0a800;
}

.submit-btn {
    background-color: #28a745;
    color: white;
}

.submit-btn:hover {
    background-color: #218838;
}

/* نافذة النتائج */
.results-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    box-sizing: border-box;
}

.results-modal-content {
    background-color: white;
    border-radius: 10px;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.results-header {
    padding: 1.2rem;
    background-color: #4e73df;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.results-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.results-header .close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.2rem;
}

.results-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.score-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.circle-progress {
    position: relative;
    width: 120px;
    height: 120px;
}

.progress-ring circle {
    stroke: #e9ecef;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

.progress-ring-circle {
    stroke: #4e73df;
    stroke-dasharray: 326.56;
    stroke-dashoffset: 326.56;
    transition: stroke-dashoffset 1s ease;
}

.circle-progress span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.8rem;
    font-weight: bold;
    color: #4e73df;
}

.score-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    background-color: #f8f9fa;
    padding: 1.2rem;
    border-radius: 8px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item span {
    color: #6c757d;
}

.detail-item strong {
    color: #4e73df;
    font-size: 1.1rem;
}

.feedback-message {
    grid-column: span 2;
    padding: 1rem;
    background-color: #e9ecef;
    border-radius: 5px;
    text-align: center;
    font-size: 1rem;
    color: #495057;
}

.wrong-answers-section {
    margin-top: 1rem;
}

.wrong-answers-section h4 {
    margin-bottom: 1rem;
    color: #4e73df;
    font-size: 1.1rem;
}

.wrong-answers-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.wrong-answer-item {
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #dc3545;
}

.wrong-answer-question {
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #343a40;
}

.results-footer {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.results-footer .btn {
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.retry-btn {
    background-color: #4e73df;
    color: white;
}

.retry-btn:hover {
    background-color: #3a5bbf;
}

.close-results-btn {
    background-color: #6c757d;
    color: white;
}

.close-results-btn:hover {
    background-color: #5a6268;
}

/* التكيف مع الشاشات الصغيرة */
@media (max-width: 768px) {
    .quick-exams-grid {
        grid-template-columns: 1fr;
    }
    
    .quiz-modal-content {
        max-height: 95vh;
    }
    
    .quiz-footer {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .quiz-btn {
        flex-grow: 1;
    }
    
    .score-details {
        grid-template-columns: 1fr;
    }
    
    .feedback-message {
        grid-column: span 1;
    }
}



/* بطاقة الامتحانات السريعة */
.quick-exam-promo {
    background: var(--light-bg);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 20px auto;
    max-width: 500px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.dark-mode .quick-exam-promo {
    background: var(--dark-card-bg);
    border-color: rgba(255, 255, 255, 0.1);
}

.quick-exam-promo:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.quick-exam-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.quick-exam-header i {
    font-size: 1.5rem;
}

.quick-exam-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.quick-exam-image {

    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
   

}

.dark-mode .quick-exam-image {
    background: #2a2a2a;
}

.quick-exam-image img {
    width: 100%;
    height: 150%;
    object-fit: contain;
    transform: scale(1.3);
}

.quick-exam-footer {
    padding: 15px;
    text-align: center;
    background: var(--light-bg);
}

.dark-mode .quick-exam-footer {
    background: var(--dark-card-bg);
}

.quick-exam-footer p {
    margin: 0 0 10px;
    color: var(--dark-color);
    font-weight: bold;
}

.dark-mode .quick-exam-footer p {
    color: var(--dark-text);
}

.quick-exam-btn {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.quick-exam-btn:hover {
    background: #27ae60;
}

/* للهواتف */
@media (max-width: 768px) {
    .quick-exam-promo {
        margin: 15px;
        
    }
    
    .quick-exam-image {
        height: 490px;
    }
    
    .quick-exam-header {
        padding: 12px;
    }
    
    .quick-exam-header h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .quick-exam-image {
        height: 200px;
    }
}

/* أنماط النوافذ الحية */
.quiz-modal, .results-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.quiz-modal-content, .results-modal-content {
    background: white;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

.close-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #333;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}


.close-btn-qouq {
    position: relative;
    top: -15px;
    right: -15px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1000;
    color: #666;
    transition: color 0.3s;
}

:root {
    /* ألوان الوضع الفاتح (الافتراضي) */
    --light-bg: #ffffff;
    --light-text: #2c3e50;
    --light-card-bg: #f8f9fa;
    --light-border: #e0e0e0;
    --light-accent: #4a90e2;
    
    /* ألوان الوضع الداكن الجديدة */
    --dark-bg: #121212; /* خلفية داكنة */
    --dark-card-bg: #1e1e1e; /* خلفية البطاقات */
    --dark-text: #e0e0e0; /* نص رئيسي */
    --dark-text-secondary: #b0b0b0; /* نص ثانوي */
    --dark-border: #333333; /* حدود */
    --dark-accent: #6c8efb; /* لون مميز أزرق فاتح */
    --dark-accent-hover: #5a7ce8; /* لون مميز عند hover */
    --dark-success: #4caf50; /* نجاح */
    --dark-warning: #ff9800; /* تحذير */
    --dark-danger: #f44336; /* خطأ */
    --dark-shadow: rgba(0, 0, 0, 0.4); /* ظلال */
    
    /* ألوان التدرج الجديدة */
    --gradient-primary: linear-gradient(135deg, #6c8efb, #a777e3);
    --gradient-success: linear-gradient(135deg, #4caf50, #8bc34a);
    --gradient-warning: linear-gradient(135deg, #ff9800, #ffc107);
    --gradient-danger: linear-gradient(135deg, #f44336, #e91e63);
}
:root {
    /* ألوان الوضع الليلي الجديدة */
    --dark-bg: #121826; /* خلفية داكنة زرقاء/رمادية */
    --dark-card-bg: #1E2130; /* خلفية العناصر */
    --darker-card-bg: #191C28; /* خلفية أغمق للعناصر */
    --dark-text: #E0E6FF; /* نص رئيسي */
    --dark-text-secondary: #B8C2E0; /* نص ثانوي */
    --dark-border: #2A2F42; /* حدود */
    --dark-accent: #7B4DFF; /* لون مميز أرجواني */
    --dark-accent-hover: #6A3DF0; /* لون مميز عند hover */
    --dark-success: #4ADE80; /* نجاح */
    --dark-warning: #FACC15; /* تحذير */
    --dark-danger: #F87171; /* خطأ */
    --dark-gold: #FFD700; /* ذهبي */
    --dark-silver: #C0C0C0; /* فضي */
    --dark-bronze: #CD7F32; /* برونزي */
    --dark-shadow: rgba(0, 0, 0, 0.4); /* ظلال */
}

body.dark-mode {
    background-color: var(--dark-bg);
    color: var(--dark-text);
}

/* تحسينات النصوص والعناوين */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
    color: var(--dark-text) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

body.dark-mode p,
body.dark-mode span,
body.dark-mode li {
    color: var(--dark-text-secondary) !important;
}

/* البطاقات والعناصر */
body.dark-mode .card,
body.dark-mode .content-box,
body.dark-mode .price-card,
body.dark-mode .condition-card,
body.dark-mode .registration-card,
body.dark-mode .branch-card,
body.dark-mode .student-card,
body.dark-mode .teacher-card,
body.dark-mode .exam-card,
body.dark-mode .quick-exam-card,
body.dark-mode .project-card,
body.dark-mode .stat-card {
    background-color: var(--dark-card-bg) !important;
    border-color: var(--dark-border) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
    color: var(--dark-text) !important;
}

/* العناوين داخل البطاقات */
body.dark-mode .card-header,
body.dark-mode .price-header,
body.dark-mode .branch-card-header,
body.dark-mode .exam-header,
body.dark-mode .quick-exam-header,
body.dark-mode .quiz-header,
body.dark-mode .pdf-viewer-header {
    background: linear-gradient(135deg, var(--dark-accent), #5A3BC8) !important;
    border-bottom-color: var(--dark-border) !important;
}

/* الأزرار */
body.dark-mode .btn,
body.dark-mode .section-toggle,
body.dark-mode .exam-download,
body.dark-mode .submit-btn,
body.dark-mode .map-button,
body.dark-mode .start-quiz-btn,
body.dark-mode .quiz-btn,
body.dark-mode .pdf-control-btn {
    background: linear-gradient(135deg, var(--dark-accent), var(--dark-accent-hover)) !important;
    color: white !important;
    box-shadow: 0 2px 10px rgba(123, 77, 255, 0.3) !important;
}

body.dark-mode .btn:hover,
body.dark-mode .section-toggle:hover,
body.dark-mode .exam-download:hover,
body.dark-mode .submit-btn:hover,
body.dark-mode .map-button:hover,
body.dark-mode .start-quiz-btn:hover,
body.dark-mode .quiz-btn:hover {
    background: linear-gradient(135deg, var(--dark-accent-hover), #4A2DBF) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(123, 77, 255, 0.4) !important;
}

/* الجداول */
body.dark-mode .students-table,
body.dark-mode .table {
    background-color: var(--dark-card-bg) !important;
    color: var(--dark-text) !important;
}

body.dark-mode .students-table th,
body.dark-mode .table th {
    background-color: #2A2F42 !important;
    color: white !important;
}

body.dark-mode .students-table td,
body.dark-mode .table td {
    border-color: var(--dark-border) !important;
    color: var(--dark-text-secondary) !important;
}

body.dark-mode .students-table tr:hover,
body.dark-mode .table tr:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

/* القوائم */
body.dark-mode .footer-links a,
body.dark-mode .sidebar-links a,
body.dark-mode .nav-links a {
    color: var(--dark-text-secondary) !important;
}

body.dark-mode .footer-links a:hover,
body.dark-mode .sidebar-links a:hover,
body.dark-mode .nav-links a:hover {
    color: var(--dark-accent) !important;
    transform: translateX(-5px) !important;
}

/* شريط التقدم */
body.dark-mode .progress-container {
    background: rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode .progress-bar {
    background: var(--dark-success) !important;
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.3) !important;
}

/* الأيقونات والديكور */
body.dark-mode .icon-circle,
body.dark-mode .condition-icon,
body.dark-mode .whatsapp-icon,
body.dark-mode .teacher-avatar,
body.dark-mode .student-avatar,
body.dark-mode .project-image {
    box-shadow: 0 0 15px rgba(123, 77, 255, 0.3) !important;
    border-color: var(--dark-accent) !important;
}

/* القائمة الجانبية */
body.dark-mode .sidebar {
    background-color: var(--darker-card-bg) !important;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3) !important;
}

body.dark-mode .sidebar-links a {
    color: var(--dark-text-secondary) !important;
}

body.dark-mode .sidebar-links a:hover {
    background-color: rgba(123, 77, 255, 0.1) !important;
    color: var(--dark-accent) !important;
}

/* قسم المعلمين */
body.dark-mode .teacher-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 30px rgba(123, 77, 255, 0.3) !important;
}

body.dark-mode .teacher-modal .modal-content {
    background-color: var(--darker-card-bg) !important;
}

/* قسم الامتحانات */
body.dark-mode .exam-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 30px rgba(123, 77, 255, 0.3) !important;
}

body.dark-mode .quiz-modal-content {
    background-color: var(--darker-card-bg) !important;
}

body.dark-mode .option-btn {
    background-color: var(--dark-card-bg) !important;
    border-color: var(--dark-border) !important;
    color: var(--dark-text) !important;
}

body.dark-mode .option-btn:hover {
    background-color: rgba(123, 77, 255, 0.1) !important;
}

/* قسم المطور */
body.dark-mode .developer-section {
    background-color: var(--dark-bg) !important;
}

body.dark-mode .developer-hero {
    background: linear-gradient(135deg, #5A3BC8, #7B4DFF) !important;
}

body.dark-mode .developer-about,
body.dark-mode .developer-skills,
body.dark-mode .developer-projects,
body.dark-mode .developer-stats,
body.dark-mode .developer-contact {
    background-color: var(--dark-card-bg) !important;
    border-bottom-color: var(--dark-border) !important;
}

body.dark-mode .skill-bar {
    background-color: #2A2F42 !important;
}

body.dark-mode .project-card {
    border-color: var(--dark-border) !important;
}

body.dark-mode .stat-card {
    background-color: #2A2F42 !important;
}

/* تأثيرات خاصة */
body.dark-mode .rank-1 {
    background-color: var(--dark-gold) !important;
    box-shadow: 0 0 0 5px rgba(255, 215, 0, 0.3) !important;
}

body.dark-mode .rank-2 {
    background-color: var(--dark-silver) !important;
    box-shadow: 0 0 0 5px rgba(192, 192, 192, 0.3) !important;
}

body.dark-mode .rank-3 {
    background-color: var(--dark-bronze) !important;
    box-shadow: 0 0 0 5px rgba(205, 127, 50, 0.3) !important;
}

/* التمرير */
body.dark-mode ::-webkit-scrollbar {
    width: 8px;
}

body.dark-mode ::-webkit-scrollbar-track {
    background: var(--dark-card-bg);
}

body.dark-mode ::-webkit-scrollbar-thumb {
    background: var(--dark-accent);
    border-radius: 4px;
}

body.dark-mode ::-webkit-scrollbar-thumb:hover {
    background: var(--dark-accent-hover);
}

/* تأثيرات إضافية */
body.dark-mode .home-icon:hover .icon-circle {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(123, 77, 255, 0.5) !important;
}

body.dark-mode .grade-card:hover,
body.dark-mode .branch-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3) !important;
}

/* التألق عند التركيز */
body.dark-mode input:focus,
body.dark-mode textarea:focus,
body.dark-mode select:focus {
    border-color: var(--dark-accent) !important;
    box-shadow: 0 0 0 3px rgba(123, 77, 255, 0.3) !important;
}

/* تأثيرات النص */
body.dark-mode .icon-text,
body.dark-mode .teacher-name,
body.dark-mode .student-name {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* تأثيرات التدرج اللوني */
body.dark-mode .hero::before,
body.dark-mode .branch-details-header::before {
    background: rgba(0, 0, 0, 0.7) !important;
}

body.dark-mode .grade-title::after,
body.dark-mode .section-title::after,
body.dark-mode .contact-title::after {
    background: linear-gradient(to right, var(--dark-accent), var(--dark-success)) !important;
}

/* التبديل بين الأوضاع */
.theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(30deg);
}

body.dark-mode .theme-toggle {
    color: var(--dark-accent);
}

/* تعديلات للهواتف */
@media (max-width: 768px) {
    body.dark-mode .content-box {
        background: var(--darker-card-bg) !important;
    }
    
    body.dark-mode .modal-content {
        background: var(--darker-card-bg) !important;
    }
    
    body.dark-mode .menu-btn,
    body.dark-mode .close-btn {
        color: var(--dark-text) !important;
    }
}

/* تنسيقات الوضع الليلي لصفحة "من نحن" */
body.dark-mode .about-section {
    background-color: var(--dark-bg);
    color: var(--dark-text);
}

body.dark-mode .about-container {
    background-color: var(--dark-card-bg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

body.dark-mode .about-content h2 {
    color: var(--dark-text) !important;
}

body.dark-mode .about-content h2::after {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

body.dark-mode .about-content p {
    color: var(--dark-text-secondary) !important;
}

body.dark-mode .mission-vision h3 {
    color: var(--dark-text) !important;
}

body.dark-mode .mission-vision ul li::before {
    color: var(--secondary-color);
}

/* تنسيقات الوضع الليلي لصفحة "اتصل بنا" */
body.dark-mode .contact-section {
    background-color: var(--dark-bg);
    color: var(--dark-text);
}

body.dark-mode .contact-title {
    color: var(--dark-text) !important;
}

body.dark-mode .contact-title::after {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

body.dark-mode .contact-info {
    background-color: var(--dark-card-bg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

body.dark-mode .contact-info h3 {
    color: var(--dark-text) !important;
}

body.dark-mode .contact-form {
    background-color: var(--dark-card-bg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

body.dark-mode .form-group label {
    color: var(--dark-text) !important;
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--dark-border);
    color: var(--dark-text);
}

body.dark-mode .form-group input:focus,
body.dark-mode .form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3);
}

body.dark-mode .contact-info ul li i {
    color: var(--primary-color);
}

/* تحسينات إضافية للوضوح */
body.dark-mode .about-image {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--dark-border);
}

body.dark-mode .submit-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

body.dark-mode .submit-btn:hover {
    background: linear-gradient(135deg, #2980b9, #27ae60);
}



/* تنسيقات عامة للطلاب المميزين */
.students-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 15px;
    margin-top: 20px;
}

.student-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border: 2px solid #f5f5f5;
}

.student-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* بطاقات الطلاب المميزين */
.student-card.distinguished {
    border: 2px solid #ffc107;
    background: linear-gradient(135deg, #fff 0%, #fff9e6 100%);
}

.student-card.distinguished::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    background: #ffc107;
    clip-path: polygon(0 0, 100% 0, 100% 100%);
    z-index: 1;
}

.student-card.distinguished::after {
    content: '\f005';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 5px;
    right: 5px;
    color: #fff;
    z-index: 2;
    font-size: 14px;
}

/* رأس البطاقة */
.student-card-header {
    display: flex;
    align-items: center;
    padding: 15px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
}

.student-card.distinguished .student-card-header {
    background: linear-gradient(135deg, #f83600 0%, #f9d423 100%);
}

.student-rank {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-left: 15px;
    flex-shrink: 0;
}

.student-card.distinguished .student-rank {
    background: #ffc107;
    color: #333;
    font-weight: bold;
}

.rank-1 {
    background: #ffd700 !important;
    color: #333 !important;
}

.rank-2 {
    background: #c0c0c0 !important;
    color: #333 !important;
}

.rank-3 {
    background: #cd7f32 !important;
    color: #333 !important;
}

.student-avatar-container {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid white;
    overflow: hidden;
    flex-shrink: 0;
}

.student-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.default-avatar {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    color: #666;
    font-size: 24px;
}

.student-info {
    flex-grow: 1;
    padding: 0 15px;
}

.student-name {
    margin: 0;
    font-size: 1.2rem;
    font-weight: bold;
}

.student-subject {
    margin: 5px 0 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* جسم البطاقة */
.student-card-body {
    padding: 15px;
}

.student-stats {
    display: flex;
    justify-content: space-around;
    margin: 15px 0;
    flex-wrap: wrap;
    gap: 10px;
}

.stat-item {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 8px;
    min-width: 100px;
}

.stat-item i {
    margin-left: 8px;
    color: #4e73df;
}

.student-achievements {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    margin-top: 10px;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* شارة المميز */
.distinguished-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ffc107;
    color: #333;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    z-index: 2;
}

.distinguished-badge i {
    margin-left: 5px;
}

/* تنسيقات للهواتف */
@media (max-width: 768px) {
    .student-card {
        border-radius: 12px;
    }
    
    .student-card-header {
        padding: 12px;
        flex-direction: column;
        text-align: center;
    }
    
    .student-rank {
        margin-left: 0;
        margin-bottom: 10px;
    }
    
    .student-avatar-container {
        width: 80px;
        height: 80px;
        margin-bottom: 10px;
    }
    
    .student-info {
        padding: 0;
        text-align: center;
    }
    
    .student-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .stat-item {
        width: 100%;
        justify-content: center;
    }
    
    .distinguished-badge {
        top: 10px;
        left: 10px;
        font-size: 10px;
    }
}

/* تأثيرات الحركة */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.student-card.distinguished {
    animation: pulse 2s infinite;
}

/* تأثيرات اللمس للهواتف */
@media (hover: none) {
    .student-card {
        transform: none !important;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
    }
    
    .student-card:active {
        transform: scale(0.98) !important;
    }
}

/* تنسيقات عامة للقسم في الوضع الليلي */
body.dark-mode .grade-selection,
body.dark-mode .branches-section,
body.dark-mode .branch-details {
    background-color: var(--dark-bg);
    color: var(--dark-text);
}

/* بطاقات المراحل الدراسية */
body.dark-mode .grade-card {
    background-color: var(--dark-card-bg);
    border: 1px solid var(--dark-border);
    box-shadow: 0 4px 12px var(--dark-shadow);
    color: var(--dark-text);
}

body.dark-mode .grade-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(123, 77, 255, 0.2);
}

body.dark-mode .grade-card i {
    color: var(--dark-accent);
}

/* قسم تفاصيل الشعبة */
body.dark-mode .branch-details {
    background-color: var(--dark-bg);
}

body.dark-mode .branch-details-header {
    background-color: var(--darker-card-bg);
    border-bottom: 1px solid var(--dark-border);
}

body.dark-mode .branch-stats .stat-item {
    background-color: var(--dark-card-bg);
    border: 1px solid var(--dark-border);
}

body.dark-mode .stat-item i {
    color: var(--dark-accent);
}

body.dark-mode .progress-container {
    background-color: var(--darker-card-bg);
}

body.dark-mode .progress-bar {
    background: linear-gradient(90deg, var(--dark-accent), var(--dark-accent-hover));
}

/* جدول الطلاب */
body.dark-mode .students-table {
    background-color: var(--dark-card-bg);
    border: 1px solid var(--dark-border);
}

body.dark-mode .students-table th {
    background-color: var(--darker-card-bg);
    color: var(--dark-text);
    border-bottom: 2px solid var(--dark-accent);
}

body.dark-mode .students-table td {
    border-bottom: 1px solid var(--dark-border);
}

body.dark-mode .students-table tr:hover {
    background-color: rgba(123, 77, 255, 0.1);
}

/* بطاقات الطلاب المميزين */
body.dark-mode .student-card.distinguished {
    background: linear-gradient(135deg, var(--darker-card-bg) 0%, rgba(30, 33, 48, 0.8) 100%);
    border: 1px solid var(--dark-accent);
    box-shadow: 0 4px 20px rgba(123, 77, 255, 0.15);
}

body.dark-mode .distinguished-badge {
    background: linear-gradient(135deg, var(--dark-gold), #FFC107);
    color: #121826;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

body.dark-mode .student-rank.rank-1 {
    background: linear-gradient(135deg, var(--dark-gold), #FFC107);
    color: #121826;
}

body.dark-mode .student-rank.rank-2 {
    background: linear-gradient(135deg, var(--dark-silver), #C0C0C0);
    color: #121826;
}

body.dark-mode .student-rank.rank-3 {
    background: linear-gradient(135deg, var(--dark-bronze), #CD7F32);
    color: #121826;
}

/* بطاقة الطالب المميز بشكل خاص */
body.dark-mode .top-student-card {
    background: linear-gradient(135deg, #1E2130 0%, #2A2F42 100%);
    border: 2px solid var(--dark-accent);
    box-shadow: 0 8px 32px rgba(123, 77, 255, 0.2);
}

body.dark-mode .top-student-card .student-avatar {
    border: 3px solid var(--dark-accent);
    box-shadow: 0 4px 12px rgba(123, 77, 255, 0.3);
}

body.dark-mode .top-student-card .crown-icon {
    color: var(--dark-gold);
    text-shadow: 0 2px 8px rgba(255, 215, 0, 0.5);
}

body.dark-mode .top-student-card .student-name {
    color: var(--dark-accent);
}

body.dark-mode .top-student-card .student-stats .stat-item {
    background-color: rgba(123, 77, 255, 0.1);
    border: 1px solid rgba(123, 77, 255, 0.3);
}

/* أزرار العودة */
body.dark-mode .back-btn {
    background-color: var(--dark-card-bg);
    color: var(--dark-text);
    border: 1px solid var(--dark-border);
}

body.dark-mode .back-btn:hover {
    background-color: var(--dark-accent);
    color: white;
}

/* رسائل الخطأ والتحميل */
body.dark-mode .error-message,
body.dark-mode .loading-students {
    background-color: var(--dark-card-bg);
    color: var(--dark-text);
}

body.dark-mode .no-students {
    background-color: var(--dark-card-bg);
    color: var(--dark-text-secondary);
}

/* تأثيرات خاصة للوضع الليلي */
body.dark-mode .student-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(123, 77, 255, 0.2);
}

body.dark-mode .distinguished .student-avatar {
    box-shadow: 0 0 0 3px var(--dark-gold), 0 0 20px rgba(255, 215, 0, 0.3);
}

/* تنسيقات للهواتف في الوضع الليلي */
@media (max-width: 768px) {
    body.dark-mode .mobile-row .mobile-student-card {
        background-color: var(--dark-card-bg);
        border: 1px solid var(--dark-border);
    }
    
    body.dark-mode .mobile-distinguished-badge {
        background: linear-gradient(135deg, var(--dark-gold), #FFC107);
        color: #121826;
    }
}

/* تحسينات للطلاب المميزين */
.top-students-title {
    text-align: center;
    margin: 30px 0 20px;
    color: #2c3e50;
    font-size: 1.5rem;
  }
  
  .students-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
  }
  
  .student-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
  }
  
  .student-card:hover {
    transform: translateY(-5px);
  }
  
  .student-rank {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #3498db;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    margin-left: 15px;
    flex-shrink: 0;
  }
  
  .student-rank.rank-1 {
    background: linear-gradient(135deg, #f39c12, #e74c3c);
  }
  
  .student-rank.rank-2 {
    background: linear-gradient(135deg, #3498db, #9b59b6);
  }
  
  .student-rank.rank-3 {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
  }
  
  .student-avatar-container {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #f1f1f1;
    flex-shrink: 0;
  }
  
  .student-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .student-info {
    flex-grow: 1;
  }
  
  .student-name {
    margin: 0 0 5px;
    color: #2c3e50;
    font-size: 1.2rem;
  }
  
  .student-stats {
    display: flex;
    gap: 15px;
    margin: 10px 0;
  }
  
  .stat-item {
    display: flex;
    align-items: center;
    color: #555;
  }
  
  .stat-item i {
    margin-left: 5px;
    color: #3498db;
  }
  
  .student-achievements {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
  }
  
  /* للهواتف */
  @media (max-width: 768px) {
    .students-container {
      grid-template-columns: 1fr;
    }
    
    .student-card {
      flex-direction: column;
      text-align: center;
      padding: 15px;
    }
    
    .student-rank {
      margin-left: 0;
      margin-bottom: 10px;
    }
    
    .student-avatar-container {
      margin-bottom: 10px;
    }
    
    .student-stats {
      justify-content: center;
      flex-wrap: wrap;
    }
  }

  /* تحسينات لجداول الطلاب */
.students-list {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-top: 30px;
  }
  
  .students-list-title {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.5rem;
    text-align: center;
  }
  
  .students-table {
    width: 100%;
    border-collapse: collapse;
  }
  
  .students-table th {
    background: #3498db;
    color: white;
    padding: 12px;
    text-align: right;
  }
  
  .students-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    text-align: right;
  }
  
  .students-table tr:last-child td {
    border-bottom: none;
  }
  
  .students-table tr:hover {
    background: #f8f9fa;
  }
  
  /* للهواتف - تحويل الجدول إلى بطاقات */
  @media (max-width: 768px) {
    .students-table thead {
      display: none;
    }
    
    .students-table tr {
      display: block;
      margin-bottom: 15px;
      border-radius: 8px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
      overflow: hidden;
    }
    
    .students-table td {
      display: flex;
      justify-content: space-between;
      padding: 10px 15px;
      border-bottom: 1px solid #eee;
    }
    
    .students-table td:before {
      content: attr(data-label);
      font-weight: bold;
      color: #555;
      margin-left: 10px;
    }
    
    .students-table td:last-child {
      border-bottom: none;
    }
  }

  /* أنماط بطاقات الطلاب */
.students-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 15px;
}

.student-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.student-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.student-card.distinguished {
    border-top: 4px solid var(--warning-color);
}

.student-card-header {
    display: flex;
    align-items: center;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.student-card.distinguished .student-card-header {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.student-card-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid white;
    margin-left: 15px;
    object-fit: cover;
}

.student-card-avatar.default {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 20px;
}

.student-card-title {
    flex: 1;
}

.student-card-title h4 {
    margin: 0;
    font-size: 1.1rem;
}

.distinguished-badge {
    background: white;
    color: var(--warning-color);
    padding: 3px 8px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
}

.student-card-body {
    padding: 15px;
}

.student-stat {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.student-stat i {
    width: 25px;
    color: var(--primary-color);
    margin-left: 10px;
}

.student-stat strong {
    color: var(--secondary-color);
}

.student-card-footer {
    padding: 10px 15px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
    font-size: 0.85rem;
    color: #666;
}

.join-date {
    display: flex;
    align-items: center;
}

.join-date::before {
    content: "•";
    margin-left: 5px;
    margin-right: 5px;
    color: var(--primary-color);
}

/* للهواتف */
@media (max-width: 768px) {
    .students-cards-container {
        grid-template-columns: 1fr;
    }
    
    .student-card {
        margin-bottom: 15px;
    }
}




/* أنماط نافذة التحديثات */
.update-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.update-content {
    background: white;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.update-header {
    background: #4e73df;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.update-header h3 {
    margin: 0;
}

.close-update {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.update-body {
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.update-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 5px;
    margin-bottom: 15px;
}

.update-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.update-info h4 {
    margin: 0 0 10px;
    color: #333;
}

.update-info p {
    margin: 0 0 15px;
    color: #666;
    line-height: 1.5;
}

.update-timer {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #e74a3b;
    font-weight: bold;
}

.update-footer {
    display: flex;
    border-top: 1px solid #eee;
}

.update-btn {
    flex: 1;
    padding: 15px;
    border: none;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.yes-btn {
    background: #1cc88a;
    color: white;
}

.yes-btn:hover {
    background: #17a673;
}

.no-btn {
    background: #e74a3b;
    color: white;
}

.no-btn:hover {
    background: #c23a2d;
}

/* أنماط للهواتف */
@media (max-width: 768px) {
    .update-content {
        width: 95%;
    }
    
    .update-body {
        padding: 15px;
    }
    
    .update-image {
        height: 150px;
    }
}




/* أنماط الجداول الدراسية */
.schedules-section {
    padding: 20px;
    background-color: #f9f9f9;
}

.grade-selector {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    gap: 10px;
}

.grade-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 30px;
    background-color: #e0e0e0;
    color: #555;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.grade-btn.active {
    background-color: #4e73df;
    color: white;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.schedule-table th {
    background-color: #4e73df;
    color: white;
    padding: 15px;
    text-align: center;
}

.schedule-table td {
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.schedule-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.schedule-table tr:hover {
    background-color: #f1f1f1;
}

.day-name {
    font-weight: bold;
    color: #4e73df;
}

/* أنماط الجداول للهواتف */
.mobile-schedule {
    display: none;
}

.mobile-day {
    background: white;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.day-header {
    background-color: #4e73df;
    color: white;
    padding: 12px 15px;
    font-weight: bold;
}

.day-periods {
    padding: 10px;
}

.period {
    display: flex;
    justify-content: space-between;
    padding: 10px 5px;
    border-bottom: 1px solid #eee;
}

.period:last-child {
    border-bottom: none;
}

.period-number {
    font-weight: bold;
    color: #555;
}

.period-subject {
    color: #4e73df;
}

/* للشاشات الصغيرة */
@media (max-width: 768px) {
    .schedule-table {
        display: none;
    }
    
    .mobile-schedule {
        display: block;
    }
    
    .grade-btn {
        padding: 8px 15px;
        font-size: 14px;
    }
}

/* رسالة عدم وجود جداول */
.no-schedules {
    text-align: center;
    padding: 30px;
    color: #666;
}

.no-schedules i {
    font-size: 50px;
    color: #ddd;
    margin-bottom: 15px;
}

.no-schedules p {
    margin-top: 10px;
    font-size: 16px;
}
/* زر عرض التحديثات */
.updates-toggle-container {
    display: flex;
    justify-content: center;
    margin: 25px 0;
}

.updates-toggle-btn {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(106, 17, 203, 0.4);
    transition: all 0.3s ease;
    position: relative;
}

.updates-toggle-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(106, 17, 203, 0.6);
}

.updates-badge {
    background-color: #ff4757;
    color: white;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    position: absolute;
    top: -8px;
    right: -8px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* قسم التحديثات */
.updates-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e8ed;
}

.updates-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #6a11cb;
}

.updates-header h3 {
    color: #2d3436;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-updates {
    background: none;
    border: none;
    font-size: 20px;
    color: #6a11cb;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.3s;
}

.close-updates:hover {
    background: rgba(106, 17, 203, 0.1);
}

.updates-container {
    display: grid;
    gap: 20px;
}

.update-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    border-left: 4px solid #6a11cb;

}

.update-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.update-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-radius: 10px;
     background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);

}

.update-header h4 {
    margin: 0;
    color: #2d3436;
    font-size: 18px;
}

.update-date {
    color: white;
    font-size: 14px;
}

.update-content p {
    margin: 0 0 15px;
    color: #2d3436;
    line-height: 1.6;
    font-size: 17px;
}

.update-image {
    width: 100%;
    border-radius: 8px;
    margin-top: 10px;
}

.update-poll {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e1e8ed;
}

.poll-question {
    font-weight: bold;
    margin-bottom: 10px;
    color: #2d3436;
}

.poll-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.poll-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.yes-btn {
    background: #2ecc71;
    color: white;
}

.yes-btn:hover:not(:disabled) {
    background: #27ae60;
}

.no-btn {
    background: #e74c3c;
    color: white;
}

.no-btn:hover:not(:disabled) {
    background: #c0392b;
}

.poll-buttons.disabled .poll-btn {
    opacity: 0.6;
    cursor: not-allowed;
}

.poll-results {
    display: grid;
    gap: 10px;
}

.result-bar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.result-fill {
    height: 20px;
    border-radius: 10px;
    position: relative;
    transition: width 1s ease-in-out;
}

.yes-fill {
    background: linear-gradient(90deg, #2ecc71, #27ae60);
}

.no-fill {
    background: linear-gradient(90deg, #e74c3c, #c0392b);
}

.result-text {
    min-width: 120px;
    font-size: 14px;
    color: #636e72;
}

.no-updates {
    text-align: center;
    padding: 40px;
    color: #636e72;
}

.no-updates i {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
    color: #b2bec3;
}

/* تأثيرات للعرض على الجوال */
@media (max-width: 768px) {
    .updates-toggle-btn {
        padding: 12px 25px;
        font-size: 16px;
    }
    
    .update-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .poll-buttons {
        flex-direction: column;
    }
    
    .result-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .result-fill {
        width: 100% !important;
    }


}

/* للشاشات الصغيرة (الهواتف) */
@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }
    
    .student-data {
        display: block;
        width: 100%;
    }
    
    .mobile-student-details {
        display: block;
        margin-top: 10px;
    }
    
    .mobile-student-details .detail-item {
        display: flex;
        justify-content: space-between;
        margin-bottom: 5px;
        padding: 5px 0;
        border-bottom: 1px solid #eee;
    }
}

/* للشاشات الكبيرة */
@media (min-width: 769px) {
    .mobile-student-details {
        display: none;
    }
    
    .desktop-only {
        display: table-cell;
    }
}




.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification {
    background: white;
    color: #333;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 350px;
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-left: 4px solid #4e73df;
    background-color: #1cc88a;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.hide {
    transform: translateX(100%);
    opacity: 0;
}

.notification.success {
    border-left-color: #28a745;
}

.notification.error {
    border-left-color: #dc3545;
}

.notification.warning {
    border-left-color: #ffc107;
}

.notification.info {
    border-left-color: #17a2b8;
}

.notification-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.notification-content {
    flex-grow: 1;
}

.notification-close {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close:hover {
    color: #666;
}

/* تأثيرات للوضع الداكن */
.dark-mode .notification {
    background: #2d3748;
    color: #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* تصميم متجاوب */
@media (max-width: 768px) {
    .notification-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .notification {
        max-width: 100%;
    }
}




/* أنماط الوضع الليلي لنافذة التحديثات */
.dark-mode .updates-section {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border: 1px solid #475569;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.dark-mode .updates-header {
  background: #1e293b;
  border-bottom: 1px solid #475569;
}

.dark-mode .updates-header h3 {
  color: #e2e8f0;
}

.dark-mode .close-updates {
  color: #94a3b8;
  background: #475569;
}

.dark-mode .close-updates:hover {
  color: #e2e8f0;
  background: #64748b;
}

.dark-mode .update-card {
  background: #1e293b;
  border: 1px solid #475569;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.dark-mode .update-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.dark-mode .update-header h4 {
  color: #e2e8f0;
}

.dark-mode .update-date {
  color: #94a3b8;
  background: #475569;
}

.dark-mode .update-content p {
  color: #cbd5e1;
}

.dark-mode .update-image {
  border: 1px solid #475569;
}

.dark-mode .update-poll {
  border-top: 1px solid #475569;
}

.dark-mode .poll-question {
  color: #e2e8f0;
}

.dark-mode .poll-btn {
  background: #475569;
  color: #e2e8f0;
  border: 1px solid #64748b;
}

.dark-mode .poll-btn:hover:not(:disabled) {
  background: #64748b;
}

.dark-mode .poll-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.dark-mode .poll-results {
  border-top: 1px solid #475569;
}

.dark-mode .result-bar {
  background: #475569;
}

.dark-mode .result-text {
  color: #cbd5e1;
}

.dark-mode .no-updates {
  color: #94a3b8;
}

.dark-mode .no-updates i {
  color: #64748b;
}



.dark-mode .updates-toggle-btn:hover {
  background: linear-gradient(135deg, #64748b 0%, #94a3b8 100%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.dark-mode .updates-badge {

  color: #1e293b;
}






