/* ==================== تقویم شمسی سبک - وبسار ==================== */
.wob-pcal {
    position: absolute;
    background: #fff;
    border: 1px solid #e0e6ed;
    border-radius: 14px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    padding: 18px;
    width: 320px;
    font-family: 'Vazirmatn', 'IRANSans', Tahoma, sans-serif;
    direction: rtl;
    user-select: none;
    animation: wobPcalFadeIn 0.2s ease;
}

@keyframes wobPcalFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* هدر */
.wob-pcal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f3f7;
}
.wob-pcal-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a2a3a;
}
.wob-pcal-prev,
.wob-pcal-next {
    background: #f0f3f7;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    font-size: 20px;
    font-weight: 700;
    color: #5a6a7a;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wob-pcal-prev:hover,
.wob-pcal-next:hover {
    background: #50b738;
    color: #fff;
}

/* روزهای هفته */
.wob-pcal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
    margin-bottom: 8px;
}
.wob-pcal-weekday {
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: #7a8a9a;
    padding: 6px 0;
}

/* روزها */
.wob-pcal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}
.wob-pcal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #2a3a4a;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
    min-height: 36px;
}
.wob-pcal-day:hover:not(.empty):not(.disabled) {
    background: #f0fbf0;
    color: #50b738;
}
.wob-pcal-day.empty {
    cursor: default;
}
.wob-pcal-day.disabled {
    color: #ccc;
    cursor: not-allowed;
    text-decoration: line-through;
}
.wob-pcal-day.today {
    background: #fff3cd;
    color: #856404;
    font-weight: 800;
}
.wob-pcal-day.selected {
    background: linear-gradient(135deg, #50b738 0%, #3da52b 100%);
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(80, 183, 56, 0.4);
}

/* فوتر */
.wob-pcal-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid #f0f3f7;
    gap: 10px;
}
.wob-pcal-today,
.wob-pcal-clear {
    flex: 1;
    padding: 9px 12px;
    border-radius: 8px;
    border: none;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.wob-pcal-today {
    background: #e8f8e8;
    color: #2e7d32;
}
.wob-pcal-today:hover {
    background: #50b738;
    color: #fff;
}
.wob-pcal-clear {
    background: #fdecea;
    color: #c62828;
}
.wob-pcal-clear:hover {
    background: #f44336;
    color: #fff;
}

/* موبایل */
@media (max-width: 480px) {
    .wob-pcal {
        width: 290px;
        padding: 14px;
    }
    .wob-pcal-day {
        font-size: 13px;
        min-height: 32px;
    }
}