:root {
    --primary-color: #3498db;
    --primary-dark: #2980b9;
    --secondary-color: #e74c3c;
    --light-color: #f5f5f5;
    --dark-color: #34495e;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --info-color: #3498db;
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}









.calendar-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

@media (min-width: 540px) {

    .calendar-header {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        margin-bottom: 20px;
        margin-top: 40px;
    }
}

.month-selector {
    display: flex;
    align-items: center;
    gap: 20px;
}

.month-selector h2 {
    font-size: 28px;
    min-width: 200px;
    text-align: center;
}

.month-btn {
    background-color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

.month-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.view-options {
    display: flex;
    gap: 10px;
}

.view-btn {
    padding: 8px 16px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn.active,
.view-btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.calendar {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.calendar-day-header {
    text-align: center;
    padding: 15px;
    background-color: var(--primary-color);
    color: white;
    font-weight: 500;
}

.calendar-day {
    min-height: 120px;
    padding: 10px;
    border: 1px solid #eee;
    position: relative;
}

.calendar-date {
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 16px;
}

.calendar-day.current-month {
    background-color: white;
}

.calendar-day.other-month {
    background-color: #f8f9fa;
    color: #aaa;
}

.calendar-day.today {
    background-color: #e8f4ff;
}

.today .calendar-date {
    color: var(--primary-color);
}

.event {
    margin-bottom: 5px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event.academic {
    background-color: var(--primary-color);
}

.event.sports {
    background-color: var(--success-color);
}

.event.holiday {
    background-color: var(--secondary-color);
}

.event.meeting {
    background-color: var(--warning-color);
}

.event-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}

.event-legend {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 15px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.upcoming-events {
    margin-top: 30px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
}

.upcoming-events h3 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.event-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.event-item {
    display: flex;
    padding: 10px;
    border-radius: var(--border-radius);
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.event-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.event-date {
    min-width: 80px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--border-radius);
    padding: 8px;
    margin-right: 15px;
}

html[dir="rtl"] .event-date {
    margin-right: 0;
    margin-left: 15px;
}

.event-date .day {
    font-size: 20px;
    font-weight: bold;
}

.event-date .month {
    font-size: 14px;
}

.event-details h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.event-details p {
    font-size: 14px;
    color: #666;
}

.add-event {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

html[dir="rtl"] .add-event {

    right: 0;
    left: 30px;
}

.add-event:hover {
    background-color: var(--primary-dark);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .calendar-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .calendar-day-header {
        display: none;
    }

    .calendar-day {
        display: flex;
        flex-direction: column;
        min-height: auto;
        padding: 15px;
    }

    .calendar-date {
        display: flex;
        align-items: center;
        margin-bottom: 10px;
    }

    .calendar-date::before {
        content: attr(data-day);
        margin-right: 10px;
        font-weight: normal;
    }

    html[dir="rtl"] .calendar-date::before {

        margin-right: 0;
        margin-left: 10px;
    }

    .navigation {
        display: none;
    }

    .mobile-menu {
        display: block;
        font-size: 24px;
        cursor: pointer;
    }

    .month-selector h2 {
        font-size: 20px;
        min-width: 150px;
    }
}

@media (min-width: 769px) {
    .mobile-menu {
        display: none;
    }
}

.hover-image:hover {
    transform: scale(1.1);
    transition: transform 0.5s;
}
/* ممتاز */
.rate.excellent li i {
    color: gold !important;
}

/* جيد جدًا */
.rate.very-good li i {
    color: orange !important;
}

/* جيد */
.rate.good li i {
    color: #ffcc00 !important;
}

/* متوسط */
.rate.average li i {
    color: #ff9900 !important;
}

/* ضعيف */
.rate.poor li i {
    color: #ff3300 !important;
}