/* 기간 검색 및 날짜 선택 컴포넌트 공통 스타일 */

/* 조회조건 영역 */
.period-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.period-button {
    flex: 1;
    padding: 10px;
    border: 1px solid #000;
    border-radius: 20px;
    background: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.period-button.active {
    background: #000;
    color: #fff;
}

/* 기간 검색 영역 */
.date-search {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 15px;
    background: #F8F8F8;
    border-radius: 8px;
}

.calendar-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-right: 5px;
}

.date-inputs {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

.date-input {
    padding: 10px 10px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    width: 120px;
    max-width: 45%;
    background: #fff;
    flex: 1;
}

.search-button {
    background: transparent;
    border: none;
    padding: 0 0 0 2px;
    margin-left: -5px;
    cursor: pointer;
    flex-shrink: 0;
    background-color: #F8F8F8;  /* 배경색을 container와 동일하게 설정 */
    border-radius: 50%;         /* 원형 버튼으로 변경 */
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;         /* 가상 요소 위치 기준점 설정 */
    transition: all 0.2s ease;
}

/* 터치 유도를 위한 시각적 요소 추가 */
.search-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(2, 163, 96, 0.1);  /* 매우 약한 녹색 배경 */
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-button:hover:before {
    opacity: 1;  /* 호버 시 배경 표시 */
}

.search-button:active {
    transform: scale(0.95);  /* 클릭 효과 */
}

img.calendar-icon { width: 20px; height: 20px; }
img.search-icon { width: 24px; height: 24px; }

.search-icon {
    width: 24px;
    height: 24px;
    filter: drop-shadow(0px 1px 2px rgba(0,0,0,0.2));  /* 아이콘에 약간의 그림자 효과 */
}

/* 반응형 스타일 */
@media screen and (max-width: 375px) {
    .period-buttons {
        gap: 5px;
    }

    .period-button {
        padding: 8px 5px;
        font-size: 13px;
    }

    .date-search {
        padding: 10px;
        gap: 4px;
    }

    .date-inputs {
        gap: 4px;
    }

    .date-input {
        padding: 8px 8px;
        width: 100px;
    }

    .search-button {
        margin-left: -2px;
    }

    .calendar-icon {
        margin-right: 5px;
    }

    .date-inputs span {
        font-size: 12px;
        margin: 0 2px;
    }
}

/* 작은 모바일 화면 (320px)에서만 폰트 크기 줄이기 */
@media screen and (max-width: 320px) {
    .period-button {
        font-size: 12px;
        padding: 7px 3px;
    }
    
    .date-input {
        font-size: 12px;
        padding: 7px 5px;
        width: 85px;
    }
    
    .date-inputs span {
        font-size: 11px;
        margin: 0 2px;
    }
    
    .calendar-icon {
        margin-right: 4px;
    }
    
    .date-search {
        padding: 8px;
        gap: 3px;
    }
}
