@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

.fclt-search-container * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Pretendard', sans-serif;
}
.fclt-search-container {
    color: #212529;
    width: 100%;
    max-width: 800px;
    overflow: hidden;
    margin: 20px auto;
    border-radius: 8px;
}
/* 헤더 */
.fclt-search-header {
    padding: 24px 30px;
    border-bottom: 1px solid #e9ecef;
}
.fclt-search-header h1 {
    font-size: 26px;
    font-weight: 800;
}
.fclt-search-header-description {
    margin-top: 8px;
    font-size: 15px;
    color: #495057;
}
/* 메인 컨텐츠 영역 */
.fclt-search-main-content {
    padding: 30px;
}
/* 공통 섹션 제목 */
.fclt-search-input-section h3,
.fclt-search-result-section h3,
.fclt-search-reference-section h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}
/* 입력 영역 */
.fclt-search-input-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 12px;
}
.fclt-search-input-group {
    display: flex;
    flex-direction: column;
}
.fclt-search-input-group label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #495057;
}
.fclt-search-input-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.2s ease;
    appearance: none;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 12px;
    padding-right: 40px;
}
.fclt-search-input-group select:focus {
    outline: none;
    border-color: #4c6ef5;
    box-shadow: 0 0 0 2px rgba(76, 110, 245, 0.2);
}
.fclt-search-input-group select:disabled {
    background-color: #f1f3f5;
    color: #868e96;
    cursor: not-allowed;
}
.fclt-search-error-message {
    color: #fa5252;
    font-size: 14px;
    font-weight: 500;
    margin-top: 8px;
    min-height: 1.2em;
}
/* 버튼 */
.fclt-search-btn {
    padding: 14px;
    border-radius: 6px;
    border: none;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.fclt-search-action-buttons {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}
.fclt-search-btn-query {
    background-color: #4c6ef5;
    color: #ffffff;
    flex: 2;
}
.fclt-search-btn-query:hover {
    background-color: #364fc7;
}
.fclt-search-btn-reset {
    background-color: #f1f3f5;
    color: #495057;
    flex: 1;
}
.fclt-search-btn-reset:hover {
    background-color: #e9ecef;
}
/* 구분선 */
.fclt-search-divider {
    border: 0;
    height: 1px;
    background-color: #e9ecef;
    margin: 32px 0;
}
/* 결과 영역 */
.fclt-search-result-section {
    display: none;
}
.fclt-search-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.fclt-search-result-summary {
    font-size: 15px;
    color: #343a40;
    font-weight: 600;
}
#fclt-search-result-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
.fclt-search-no-result,
.fclt-search-result-item {
    padding: 24px;
    border-radius: 8px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    font-size: 15px;
}
.fclt-search-no-result {
    text-align: center;
    color: #495057;
}
/* 참고사항 섹션 */
.fclt-search-reference-section ul {
    list-style: none;
    padding-left: 0;
}
.fclt-search-reference-section li {
    font-size: 14px;
    color: #868e96;
    line-height: 1.6;
}
.fclt-search-reference-section li a {
    color: #4c6ef5;
    text-decoration: none;
}
.fclt-search-reference-section li a:hover {
    text-decoration: underline;
}
/* 로더 */
.fclt-search-loader {
    display: none;
    margin: 40px auto;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4c6ef5;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: fclt-search-spin 1s linear infinite;
}
@keyframes fclt-search-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* 상세 정보 섹션 스타일 */
.fclt-search-info-section h4 {
    font-size: 18px;
    font-weight: 700;
    color: #343a40;
    margin-bottom: 16px;
}
.fclt-info-grid {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 10px 12px;
    align-items: center;
}
.fclt-info-grid .label {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}
.fclt-info-grid .value {
    font-weight: 500;
    color: #212529;
    font-size: 15px;
}

/* ——— 에러 로그 영역 스타일 ——— */
.fclt-search-log-section {
    margin-top: 20px;
    padding: 16px;
    border: 1px solid #fa5252;
    border-radius: 6px;
    background-color: #fff5f5;
}
.fclt-search-log-section h3 {
    font-size: 16px;
    font-weight: 700;
    color: #c92a2a;
    margin-bottom: 8px;
}
.fclt-search-log-content {
    white-space: pre-wrap;
    font-family: monospace;
    font-size: 13px;
    color: #212529;
    max-height: 200px;
    overflow-y: auto;
}
.fclt-search-detail-btn {
    margin-top: 12px;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    background-color: #f1f3f5;
    color: #495057;
    font-size: 14px;
    cursor: pointer;
}
.fclt-search-detail-btn:hover {
    background-color: #e9ecef;
}
.fclt-search-detail-container {
    margin-top: 16px;
    padding: 16px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
}
.fclt-search-detail-container h4 {
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 700;
}
.fclt-search-detail-container .fclt-info-grid:not(:last-of-type) {
    margin-bottom: 24px;
}
