/* 기본 설정 */
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #f0f2f5;
    padding-top: 65px;
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 25px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

/* ... .header, .btn-selector 등 다른 스타일은 이전과 동일 ... */

.controls-panel {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-apply {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}

#global-stats-container, #results-container {
    margin-bottom: 20px;
}

/* 결과 아이템 컨테이너 */
.result-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #dee2e6;
    border-left-width: 5px;
    border-radius: 5px;
    margin-bottom: 12px;
    background-color: #fff;
    transition: box-shadow 0.2s;
}
.result-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

.result-item.has-error { border-left-color: #dc3545; }
.result-item.is-ok { border-left-color: #28a745; }

.item-info {
    flex: 0 0 180px;
}
.item-info .item-id {
    font-weight: bold;
    display: block;
    font-size: 1.1em;
}
.item-info .item-date {
    font-size: 14px;
    color: #6c757d;
}

.item-errors {
    flex-grow: 1;
    padding: 0 20px;
}
.item-errors .error-list {
    margin: 0;
    padding-left: 20px;
    color: #c0392b;
}
.item-errors .ok-message {
    margin: 0;
    color: #28a745;
    font-weight: bold;
}

.item-actions {
    flex-shrink: 0;
    display: flex;
    gap: 8px;
}

.btn-view-json, .btn-delete {
    padding: 8px 12px;
    border: 1px solid #6c757d;
    background-color: #fff;
    cursor: pointer;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-view-json:hover {
    background-color: #f0f2f5;
    border-color: #34495e;
}

.btn-delete {
    border-color: #dc3545;
    color: #dc3545;
}

.btn-delete:hover {
    background-color: #dc3545;
    color: #fff;
}

/* master_style.css 파일에 추가 */
.btn-selector.active {
    background-color: #007bff;
    color: white;
    font-weight: bold;
    border-color: #007bff;
}

/* [오류 수정] 불필요한 닫는 괄호 '}'를 여기서 제거했습니다. */

/* [정상 적용될 모달 스타일] */
.modal {
    display: none; /* 평소에는 숨김 */
    position: fixed; /* 화면에 고정 */
    z-index: 2000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
}
.modal-content {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}
.modal-header {
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px; margin-bottom: 15px;
}
.modal-body { overflow-y: auto; }
.modal-body pre {
    background-color: #f8f9fa; padding: 15px;
    border-radius: 4px; font-family: monospace;
    white-space: pre-wrap;
}
.btn-close-modal { font-size: 24px; background: none; border: none; cursor: pointer; }

.error-highlight { color: #d93025; font-weight: bold; }

/* master_style.css 파일에 추가 */

/* 모달 탭 스타일 */
.modal-tabs {
    display: flex;
    gap: 5px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.tab-btn {
    padding: 6px 12px;
    border: 1px solid #ccc;
    background-color: #f0f0f0;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
}
.tab-btn.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}
.modal-header {
    position: relative;
}