* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Vazir', 'Tahoma', 'Arial', sans-serif;
}

body {
    background-color: #f5f5f5;
    padding: 16px;
    direction: rtl;
}

.container {
    max-width: 100%;
    margin: 0 auto;
}

.date {
    background: white;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
}

.header-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #D3D3D3;
    padding: 12px 0 5px 0;
}

.month {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 12px;
    font-size: 1.4rem;
    font-weight: bold;
    color: #333;
}

.month h6 {
    margin: 0 12px;
    white-space: nowrap;
}

.nav-month {
    font-weight: bold;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 50%;
    transition: background 0.2s;
}

.nav-month:hover {
    background: #bbb;
}

.week-days {
    width: 100%;
    display: flex;
    justify-content: space-around;
    background: #D3D3D3;
    padding: 8px 0;
    border-radius: 0;
}

.week-days span {
    font-size: 0.85rem;
    color: #555;
    font-weight: 500;
}

.container-day {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    background: #D3D3D3;
    padding: 0 8px 5px 8px;
}

/* روزهای کالندر */
.day {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: calc(100% / 7 - 8px);
    aspect-ratio: 1;
    margin: 4px;
    background: #F8FFF5;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #333;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
    padding: 8px 0;
}
/*
.day.active span {
    display: block;
    width: 80%;
    height: 2px;
    background-color: #4CAF50;
    border-radius: 1px;
    margin-top: auto;
}
*/
.day.active{
border:1.2px solid #A0FF3F;
}

.day:hover:not(.empty-day) {
    background: #e0f0d0;
    transform: scale(1.05);
}
.day.empty-day {
    background: #D3D3D3;
    visibility: hidden;
}

.day.today {
    background: #FF8E00;
    color: white;
    font-weight: bold;
}
/* ریسپانسیو برای موبایل */
@media (max-width: 480px) {
    .month {
        font-size: 1.2rem;
    }

    .week-days span,
    .day {
        font-size: 0.8rem;
    }

    .nav-month {
        padding: 2px 8px;
    }
}

/* نمایش بهتر در اندازه‌های بینی */
@media (min-width: 481px) and (max-width: 768px) {
    .month {
        font-size: 1.3rem;
    }
}