/* ===========================
   Container كامل التقويم
=========================== */
.afb-calendar-shortcode-container {
    margin: 20px auto;
    padding: 25px;
    width: 100%;
    max-width: 100%;
    background: #f9f9f9;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ===========================
   Filters: Academic Year + Semester
=========================== */
.afb-calendar-filters {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 20px;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 25px;
}

.afb-calendar-filters > .col-md-6 {
    flex: 1 1 0;
    max-width: none !important;
}

.afb-calendar-filters select.form-select {
    width: 100%;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #3F51B5;
    transition: all 0.3s ease;
}

.afb-calendar-filters select.form-select:focus {
    border-color: #5875AB;
    box-shadow: 0 0 8px rgba(26,35,126,0.3);
    outline: none;
}

/* دعم RTL */
.afb-calendar-shortcode-container.rtl .afb-calendar-filters {
    direction: rtl;
}
.afb-calendar-shortcode-container.rtl .afb-calendar-filters > .col-md-6 {
    text-align: right;
}

/* ===========================
   الجدول
=========================== */
.table-responsive {
    margin-top: 20px;
}

#calendar-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    table-layout: fixed;
}

#calendar-table th {
    background-color: #5875AB;
    color: #FFC107;
    font-weight: 600;
    padding: 12px 8px;
    border-radius: 8px 8px 0 0;
    text-align: center;
}

#calendar-table td {
    background-color: #E8EAF6;
    color: #5875AB;
    cursor: pointer;
    padding: 14px 0;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
}

/* Hover تأثير */
#calendar-table td:hover {
    background-color: #3F51B5;
    color: #FFC107;
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* اليوم الحالي */
#calendar-table td.afb-calendar-today {
    background-color: #FFC107 !important;
    font-weight: bold;
    color: #5875AB;
    box-shadow: 0 0 10px rgba(255,193,7,0.5);
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 576px) {
    .afb-calendar-filters {
        flex-direction: column !important;
        gap: 12px;
    }
}
