﻿@font-face {
    font-family: 'Vazirmatn';
    src: url('/fonts/Vazirmatn-Light.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'Vazirmatn', sans-serif;
}

#datepicker {
    position: absolute;
    background: white;
    border: 1px solid #ccc;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 10501 !important;
    font-family: 'Vazirmatn', sans-serif;
}

.datepicker-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

    .datepicker-header select {
        padding: 5px;
        border-radius: 5px;
        border: 1px solid #ccc;
    }

.datepicker-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    text-align: center;
}

    .datepicker-body div {
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-family: 'Vazirmatn', sans-serif;
        cursor: pointer;
        border-radius: 50%;
        transition: background-color 0.2s ease;
    }

        .datepicker-body div:hover {
            background-color: #f0f0f0;
        }

.today {
    background-color: #add8e6; /* آبی روشن */
    color: black;
    border-radius: 50%;
}

/* روز انتخاب‌شده (غیر از امروز) */
.selected {
    background-color: #ccc; /* خاکستری روشن */
    color: black;
    border-radius: 50%;
}


.weekday-header {
    font-weight: bold;
    background-color: #f0f0f0;
    border-radius: 5px;
    margin: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px; /* برای وسط‌چین شدن دقیق */
    font-family: 'Vazirmatn', sans-serif;
}

.datepicker-footer {
    margin-top: 10px;
    text-align: center;
}

#todayButton {
    padding: 5px 10px;
    background-color: #add8e6; /* آبی روشن */
    color: black;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

    #todayButton:hover {
        background-color: #0056b3;
    }






/* دکمه‌های ناوبری */
.nav-button {
    cursor: pointer;
    user-select: none;
    font-size: 1.2em;
    padding: 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#yearDisplay {
    width: 80px; /* عرض کمتر */
    padding: 5px;
    border-radius: 5px; /* گرد بودن کناره‌ها */
    border: 1px solid #ccc;
    background-color: #f9f9f9; /* کمی خاکستری */
    text-align: center;
    cursor: pointer;
}


/* ساختار year-picker */
.year-picker {
    position: absolute;
    background: white;
    border: 1px solid #ccc;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 10502 !important;
    width: 80px;
    max-height: 200px;
    overflow: hidden;
    border-radius: 5px; /* گرد بودن کل پنجره */
}

    /* لیست داخلی */
    .year-picker ul {
        list-style: none;
        margin: 0;
        padding: 0;
        text-align: center;
        line-height: 2;
        overflow-y: auto;
        scroll-behavior: smooth;
    }

    /* سال‌های اطراف */
    .year-picker li.neighbor {
        color: #888;
    }


    /* سال انتخاب‌شده: مستطیل خاکستری با گوشه‌های فید */
    .year-picker li.selected {
        background: linear-gradient(white, #ccc, white);
        border-radius: 0px;
        padding: 7px 0;
        font-weight: bold;
        color: #000;
        margin: 2px 0;
    }

        /* سال‌های اطراف */
        .year-picker li.neighbor {
            color: #888;
        }

    /* رفتار اسکرول */
    .year-picker ul {
        scroll-behavior: smooth;
    }
