/* 🗓️ دیتپیکر شمسی ساده و فشرده */
.persian-datepicker-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.persian-datepicker-input {
    width: 100%;
    padding: 8px 35px 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
}

/* سازگاری با Bootstrap modal */
.modal .persian-datepicker-calendar {
    z-index: 1060;
}

.modal-open .persian-datepicker-calendar {
    z-index: 1060;
}

.persian-datepicker-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.persian-datepicker-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 14px;
    pointer-events: none;
}

.persian-datepicker-calendar {
    position: fixed;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 999999;
    width: 280px;
    font-family: 'Vazirmatn', sans-serif;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.15s ease;
}

.persian-datepicker-calendar.show {
    opacity: 1;
    transform: scale(1);
}

/* هدر */
.datepicker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    border-radius: 8px 8px 0 0;
}

.nav-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: none;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6b7280;
    font-size: 12px;
    transition: all 0.1s;
}

.nav-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.month-year-display {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

/* روزهای هفته */
.week-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.week-day {
    padding: 8px 4px;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
}

/* شبکه روزها */
.days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 8px;
    gap: 2px;
}

.day {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.1s;
    color: #374151;
}

.day:hover {
    background: #e5e7eb;
}

.day.selected {
    background: #3b82f6;
    color: #fff;
}

.day.today {
    background: #fef3c7;
    color: #92400e;
    font-weight: 600;
}

.day.selected.today {
    background: #3b82f6;
    color: #fff;
}

.day.friday {
    color: #dc2626;
}

.day.empty {
    cursor: default;
}

/* فوتر */
.datepicker-footer {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    border-top: 1px solid #e5e7eb;
    background: #f8fafc;
    border-radius: 0 0 8px 8px;
}

.btn-today, .btn-clear {
    padding: 4px 12px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.1s;
}

.btn-today {
    background: #3b82f6;
    color: #fff;
}

.btn-today:hover {
    background: #2563eb;
}

.btn-clear {
    background: #e5e7eb;
    color: #6b7280;
}

.btn-clear:hover {
    background: #d1d5db;
    color: #374151;
}

/* ریسپانسیو */
@media (max-width: 480px) {
    .persian-datepicker-calendar {
        width: 260px;
    }
    
    .day {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
}