/* Date Picker 공통 스타일 */

/* 기본 date input 스타일 */
input[type="date"] {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Noto Sans KR', sans-serif;
    color: #333;
    background-color: #fff;
    transition: all 0.2s ease;
    cursor: pointer;
}

input[type="date"]:hover {
    border-color: #bbb;
}

input[type="date"]:focus {
    outline: none;
    border-color: #089ABB;
    box-shadow: 0 0 0 3px rgba(8, 154, 187, 0.1);
}

input[type="date"]:disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
    border-color: #e0e0e0;
}

/* 캘린더 아이콘 커스터마이징 */
input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Date Picker 그룹 스타일 */
.date-picker-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.date-picker-group label {
    font-size: 14px;
    font-weight: 500;
    color: #555;
    white-space: nowrap;
}

.date-picker-group input[type="date"] {
    min-width: 150px;
}

/* Date Range Picker (범위 선택) */
.date-range-picker {
    display: flex;
    align-items: center;
    gap: 12px;
}

.date-range-picker input[type="date"] {
    flex: 1;
    min-width: 140px;
}

.date-range-picker .separator {
    font-size: 16px;
    font-weight: 600;
    color: #666;
}

/* Date Picker with Label (라벨 포함) */
.date-picker-with-label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.date-picker-with-label label {
    font-size: 13px;
    font-weight: 500;
    color: #555;
}

.date-picker-with-label input[type="date"] {
    width: 100%;
}

/* Inline Date Picker (검색 필터용) */
.inline-date-picker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.inline-date-picker input[type="date"] {
    width: auto;
}

/* Date Picker Error State */
input[type="date"].error {
    border-color: #dc3545;
}

input[type="date"].error:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Date Picker Success State */
input[type="date"].success {
    border-color: #28a745;
}

input[type="date"].success:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

/* Date Picker 크기 변형 */
input[type="date"].date-picker-sm {
    padding: 6px 10px;
    font-size: 13px;
}

input[type="date"].date-picker-lg {
    padding: 10px 14px;
    font-size: 15px;
}

/* Date Picker with Icon */
.date-picker-with-icon {
    position: relative;
    display: inline-block;
}

.date-picker-with-icon input[type="date"] {
    padding-left: 36px;
}

.date-picker-with-icon::before {
    content: "📅";
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .date-range-picker {
        flex-direction: column;
        align-items: stretch;
    }

    .date-range-picker .separator {
        display: none;
    }

    .date-picker-group {
        flex-direction: column;
        align-items: stretch;
    }
}
