/* Custom Year & Date Pickers Styling */

.picker-container {
    position: absolute;
    z-index: 1060;
    background: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    padding: 15px;
    width: 280px;
    display: none;
    user-select: none;
    animation: pickerSlideIn 0.2s ease-out;
}

@keyframes pickerSlideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.picker-title {
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 4px;
}

.picker-title:hover { background: #f0f0f0; }

.picker-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.picker-item {
    padding: 8px 4px;
    text-align: center;
    cursor: pointer;
    border-radius: 8px;
    transition: 0.2s;
    font-size: 0.9rem;
}

.picker-item:hover { background: #e9ecef; color: #007bff; }
.picker-item.active { background: #007bff; color: white; font-weight: bold; }

/* Date Picker specific */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    font-size: 0.85rem;
}

.calendar-day:hover { background: #f0f0f0; }
.calendar-day.active { background: #007bff; color: white; }
.calendar-day.today { border: 1px solid #007bff; color: #007bff; }
.calendar-day.muted { color: #ccc; }

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: bold;
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 5px;
}

.picker-btn {
    background: none;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
}

.picker-btn:hover { background: #f0f0f0; }

input[data-picker] {
    cursor: pointer;
    caret-color: transparent;
}
