/* ===== شبکه تقویم ===== */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 10px;
}

.calendar-weekday {
    text-align: center;
    font-size: 11px;
    font-weight: bold;
    color: #86868b;
    padding: 8px 0;
}

.calendar-day {
    aspect-ratio: 1;
    background: #f8f9fc;
    border: 1px solid transparent;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #1d1d1f;
    transition: all 0.2s;
    position: relative;
}

.calendar-day:hover {
    background: #e8f0fe;
    border-color: #0071e3;
}

.calendar-day.empty {
    background: transparent;
    cursor: default;
    border: none;
}

.calendar-day.today {
    background: #0071e3;
    color: white;
    border-color: #0071e3;
}

.calendar-day.selected {
    border: 2px solid #34c759;
    background: #e8f8ed;
    color: #1d1d1f;
}

.calendar-day .dot {
    position: absolute;
    bottom: 4px;
    display: flex;
    gap: 3px;
}

.calendar-day .dot span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    display: inline-block;
}

.calendar-day .dot .dot-task { background: #0071e3; }
.calendar-day .dot .dot-expense { background: #34c759; }

/* اطلاعات روز */
.day-info-title {
    font-weight: 800;
    font-size: 16px;
    color: #1d1d1f;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e5ea;
}

/* ══════════════════════════════════════════ */
/* ═══════ حالت تاریک تقویم ═══════ */
/* ══════════════════════════════════════════ */

/* روزهای تقویم */
body.dark .calendar-day {
    background: #1e293b;
    border-color: #334155;
    color: #f8fafc;
}
body.dark .calendar-day:hover {
    background: #334155;
    border-color: #3b82f6;
}
body.dark .calendar-day.empty {
    background: transparent;
    border: none;
}

/* روز امروز */
body.dark .calendar-day.today {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

/* روز انتخاب‌شده */
body.dark .calendar-day.selected {
    background: #1e3a2e;
    border-color: #34c759;
    color: #f8fafc;
}

/* نام روزهای هفته */
body.dark .calendar-weekday {
    color: #94a3b8;
}

/* عنوان ماه */
body.dark .calendar-month-label {
    color: #f8fafc !important;
}

/* نقطه‌های رویداد */
body.dark .calendar-day .dot .dot-task { background: #60a5fa; }
body.dark .calendar-day .dot .dot-expense { background: #4ade80; }