﻿/* ===========================
   PersianDatepicker Fix & Redesign
   =========================== */

/* جلوگیری از تمام‌صفحه شدن در موبایل */
.pdp-container,
.pdp-picker,
.persian-datepicker-container {
    position: fixed !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 90% !important;
    max-width: 320px !important;
    background: #fff !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.25) !important;
    z-index: 999999 !important;
}

/* بک‌گراند تار شونده */
.pdp-overlay {
    background: rgba(0,0,0,0.45) !important;
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    z-index: 999998 !important;
}

/* جلوگیری از حرکت‌های اضافی */
body.pdp-open {
    overflow: hidden !important;
}

/* متن ریسپانسیو‌تر */
.pdp-container * {
    font-size: 14px !important;
}

/* دکمه‌ها زیباتر */
.pdp-container .pdp-day,
.pdp-container .pdp-month,
.pdp-container .pdp-year {
    border-radius: 6px !important;
}

/* دکمه‌های انتخاب روز */
.pdp-day:not(.disabled) {
    transition: background 0.15s ease;
}

    .pdp-day:not(.disabled):hover {
        background: #f0f0f0 !important;
    }

/* روز انتخاب‌شده */
.pdp-selected {
    background: #28a745 !important;
    color: #fff !important;
    font-weight: bold !important;
    border-radius: 6px !important;
}

/* امروز */
.pdp-today {
    border: 1px solid #28a745 !important;
    border-radius: 6px !important;
}

/* ===========================
   موبایل بهینه‌تر
   =========================== */
@media (max-width: 480px) {
    .pdp-container,
    .pdp-picker {
        max-width: 280px !important;
        padding: 8px !important;
    }

        .pdp-container * {
            font-size: 13px !important;
        }
}
