.gpt-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 900px;
    display: flex;
    flex-direction: column;
}

.gpt-content {
    display: flex;
    gap: 20px;
    flex-grow: 1;
}

.input-section, .output-section {
    flex: 1;
    background-color: #1c2331;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group:last-of-type {
    flex-grow: 1;
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #ffffff;
    padding-left: 10px;
}

input[type="text"], textarea, .gpt-button {
    width: calc(100% - 20px);
    margin: 0 10px 15px;
    padding: 10px;
    background-color: #2c3e50;
    border: 1px solid #34495e;
    color: #ffffff;
    border-radius: 4px;
}

textarea {
    flex-grow: 1;
    resize: none;
}

#json-input {
    flex-grow: 1;
    min-height: 200px; /* 최소 높이 설정 */
}

.gpt-button {
    background-color: #3498db;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: auto; /* 버튼을 아래쪽으로 밀어냄 */
}

.gpt-button:hover {
    background-color: #2980b9;
}

h2 {
    color: #ffffff;
    margin-bottom: 20px;
    padding-left: 10px;
}

h3 {
    color: #ffffff;
    margin-bottom: 20px;
    padding-left: 10px;
}

.gpt-result {
    background-color: #2c3e50;
    border: 1px solid #34495e;
    color: #ffffff;
    border-radius: 4px;
    padding: 15px;
    max-height: 600px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: Arial, sans-serif;
    line-height: 1.5;
    font-size: 14px;
}.gpt-result {
    background-color: #2c3e50;
    border: 1px solid #34495e;
    color: #ffffff;
    border-radius: 4px;
    padding: 10px;
    flex-grow: 1;
    margin: 0 10px 15px;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: monospace;
    overflow-y: auto;
}

@media (max-width: 768px) {
    .gpt-content {
        flex-direction: column;
    }
}

/* 기존 스타일은 그대로 유지하고 아래 스타일을 추가합니다 */

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

.html-viewer-button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.html-viewer-button:hover {
    background-color: #2980b9;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #1c2331;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #34495e;
    width: 80%;
    height: 80%;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

#html-preview {
    width: 100%;
    height: calc(100% - 30px);
    border: none;
    background-color: white;
}

/* 기존 스타일은 그대로 유지하고 아래 스타일을 추가합니다 */

.loading-indicator {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(28, 35, 49, 0.8);
    z-index: 10;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #3498db;
    border-top: 5px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-indicator p {
    margin-top: 20px;
    color: #ffffff;
    font-size: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.gpt-result {
    position: relative;
    min-height: 100px;
}

/* 기존 스타일은 그대로 유지하고 아래 스타일을 추가합니다 */

.refresh-button {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.refresh-icon {
    margin-right: 5px;
}
/* JSON Viewer 버튼 스타일 수정 */
.json-viewer-button {
    padding: 8px 12px;
    font-size: 12px;
    width: 150px; /* 버튼 너비를 150px로 설정 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
