﻿
.calendar-day { /*width: 48px;*/ width: 3%; margin-bottom: 10px; padding: 2px; text-align: center; font-size: 1.2rem; border-radius: 8px; display: flex; flex-direction: column; justify-content: center; align-items: center; }

.card { border: 0px; }


/*   ---------بعدا نیاز میشه برای تعطیلات--------
            .holiday {
            color: red;
            font-weight: bold;
        }*/
.card-body { padding-left: 0px !important; padding-right: 0px !important; }

.gregorian-date, .islamic-date { font-weight: 100; font-size: 7pt; color: #080808; display: inline-block; /* نمایش کنار هم */ }

.gregorian-date { font-family: auto; }

.current-day .gregorian-date,
.current-day .islamic-date { color: #fff !important; font-size: 7pt !important; }

/* استایل کلی */
.calendar-container { background: #fff; border-radius: 10px; box-shadow: 0 0 20px rgba(0, 0, 0, 0.1); padding: 15px; margin-bottom: 20px; }

/* عنوان تقویم */
.calendar-title { color: #333; font-size: 1.2rem; margin: 0 10px; padding: 5px 0; text-align: center; }

/* دکمه‌های ناوبری */
.nav-buttons { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; margin-bottom: 30px; }

.btn-calendar-nav { background-color: #0c9284; color: white; border: none; border-radius: 5px; padding: 7px 12px; font-size: 0.8rem; margin: 5px; transition: all 0.3s; }

/* تقویم */
.calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin: 15px auto; }

.day, .weekday { padding: 8px 5px; border-radius: 6px; text-align: center; min-height: 40px; display: flex; flex-direction: column; justify-content: space-between; font-size: 0.8rem; }

.weekday { font-weight: bold; background: #f5f5f5; color: #555; }

.day-number { font-size: 0.9rem; }

/* بخش رویدادها */
#events-container { background: #fff; border-radius: 10px; padding: 15px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); margin-top: 20px; }

#events-header { color: #333; font-size: 1.2rem; margin-bottom: 15px; padding-bottom: 8px; border-bottom: 1px solid #eee; text-align: center; }
.events-grid { display: flex; flex-direction: column; gap: 10px; }
.events-row { display: grid; grid-template-columns: 1fr; gap: 10px; }
.event-item { background: #f9f9f9; border-radius: 6px; padding: 10px; border-left: 4px solid #0c9284; transition: all 0.3s; }

    .event-item:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); }

.event-title { font-size: 0.8rem; margin-bottom: 5px; /* overflow: hidden; */ /* white-space: nowrap; */ overflow: hidden; text-overflow: ellipsis; /*max-width: 280px;*/ }
.no-events, .error-message { color: #666; text-align: center; padding: 20px; font-size: 1rem; }
.todayCalander .day-number { color: #0c9284; }
.event-day { font-size: 0.7rem; color: #9b9595; }

.more-events-btn { /*margin-top: 20px;*/ padding: 10px 20px; font-size: 0.9rem; border: none; border-radius: 8px; background-color: #0c9284; color: white; cursor: pointer; transition: background-color 0.3s ease; display: block; width: 100%; max-width: 250px; margin: 15px auto 0; padding: 8px 15px; }
    .more-events-btn:hover { color: #fff !important; background-color: #434343 !important }

    .day { background: #fff; border: 1px solid #ccc; cursor: pointer; transition: all 0.2s; }

    .day:hover { background: #f0f0f0; transform: translateY(-3px); box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1); }

.day-events-indicator { height: 10px; display: flex; justify-content: center; }

.event-dot { display: inline-block; width: 6px; height: 6px; background-color: #0c9284; border-radius: 50%; }

/* روزهای خاص */
.today { background-color: #e3f2fd; border: 1px solid #bbdefb; }

    .today .day-number { font-weight: bold; color: #0d47a1; }

.selected-day { background-color: #0c9284; color: white !important; }

    .selected-day .day-number { color: white; }

    .selected-day .event-dot { background-color: white; }

.has-event { border: 1.8px solid #0c9284; }

.row-caledar { display: flex; width: 100%; position: relative; top: -60px; }


/* تغییرات برای تبلت */
@media (min-width: 768px) {
    .calendar-title { font-size: 1.3rem; }

    .btn-calendar-nav { padding: 10px 15px; font-size: 0.9rem; }

    .calendar { gap: 8px; }

    .day, .weekday { padding: 10px; min-height: 45px; }

    .events-row { grid-template-columns: repeat(2, 1fr); }
}

/* تغییرات برای دسکتاپ */
@media (min-width: 992px) {
    .calendar-container { padding: 20px; }

    .calendar-title { font-size: 1.4rem; }

    .calendar { max-width: 500px; gap: 10px; }

    .day, .weekday { min-height: 50px; }

    #events-container { margin-top: 0; height: 100%; }

    .events-row { grid-template-columns: repeat(2, 1fr); }
}

/* تغییرات برای صفحه‌های بزرگ */
@media (min-width: 1200px) {
    .events-row { grid-template-columns: repeat(2, 1fr); /*grid-template-columns: repeat(3, 1fr);*/ }
}

/* استایل بهینه‌شده برای دسکتاپ */
@media (min-width: 992px) {
    .row.gx-lg-3 { --bs-gutter-x: 1rem; }

    .calendar-container { padding: 15px; margin-right: 0.5rem; }

    #events-container { padding: 15px; margin-left: 0.5rem; }

    .calendar { max-width: 450px; margin: 10px auto; }


    .events-grid { gap: 8px; }

    .event-item { padding: 8px; }
    .calendar-first-div { max-width: 40% !important; flex: 0 0 40%; }
    .calendar-second-div { max-width: 60% !important; flex: 0 0 60% !important; }
}

@media (min-width: 769px)and (max-width: 1200px) {
    .calendar-first-div { max-width: 52% !important; flex: 0 0 50%; }

    .calendar-second-div { max-width: 50% !important; flex: 0 0 50% !important; }
}

@media (min-width: 1200px) {
    .row.gx-lg-3 { --bs-gutter-x: 1.5rem; }
}

@media (max-width: 1000px) {
    .calendar-day { width: 48px; }
}

@media (max-width: 768px) {
    .calendar-first-div { max-width: initial !important; flex: 0 0 initial !important; }

    .calendar-second-div { max-width: initial !important; flex: 0 0 initial !important; }

    .row-caledar { display: flex; width: 100%; position: relative; top: -10px; }
}

@media (max-width: 768px) {


    .row-caledar { top: -50px; }
}


@media (max-width: 576px) {
    .row-caledar { top: 0px; }
    .current-month-year { font-size: 1.1rem; }
    .calendar-day { width: 30px; font-size: .8rem; }
    .gregorian-date, .islamic-date { font-size: 6pt; }
}

.current-day { background-color: #2a9284 !important; font-weight: bold; color: #fff; font-size: 19pt; }
    .current-day .gregorian-date { font-size: 9pt !important }
    .current-day .islamic-date { font-size: 9pt !important }
