.is-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: #E4E4E7;
    background-color: #1A1B26;
}

.is-content {
    background-color: #24283B;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.is-input-panel {
    margin-bottom: 32px;
}

.engine-select-container {
    margin-bottom: 20px;
}

.input-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #9699B0;
    margin-bottom: 8px;
}

.engine-select {
    width: 200px;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #363B54;
    background-color: #1A1B26;
    color: #E4E4E7;
    font-size: 14px;
}

.content-input-container {
    width: 100%;
    padding: 0 24px;  /* 좌우 패딩 추가 */
    margin-bottom: 20px;
    box-sizing: border-box;
}

.content-input {
    width: 100%;
    height: 250px;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #363B54;
    background-color: #1A1B26;
    color: #E4E4E7;
    font-size: 14px;
    resize: vertical;
    box-sizing: border-box;  /* 박스 사이징 추가 */
    margin: 0;  /* 마진 리셋 */
}

.button-container {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.primary-button, .secondary-button {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.primary-button {
    background-color: #7B68EE;
    color: white;
    border: none;
}

.primary-button:hover {
    background-color: #6C5CE7;
}

.secondary-button {
    background-color: #363B54;
    color: #E4E4E7;
    border: 1px solid #4A5173;
}

.secondary-button:hover {
    background-color: #4A5173;
}

.is-output-panel {
    background-color: #1A1B26;
    border-radius: 8px;
    padding: 20px;
}

.output-section {
    margin-bottom: 24px;
}

.section-title {
    font-size: 16px;
    font-weight: 500;
    color: #9699B0;
    margin-bottom: 12px;
}

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

.header-copy-button {
    background-color: rgba(54, 59, 84, 0.5);
    border: 1px solid #4A5173;
    color: #9699B0;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.header-copy-button:hover {
    background-color: #4A5173;
    color: #E4E4E7;
}

/* 기존 output-container 스타일 수정 */
.output-container {
    background-color: #24283B;
    border-radius: 6px;
    padding: 16px;
    position: relative;
}

.output-content {
    min-height: 24px;
    color: #E4E4E7;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
}

.keywords-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.keyword-item {
    background-color: #24283B;
    border-radius: 6px;
    padding: 12px;
    position: relative;
}

.copy-button {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 6px 12px;
    border-radius: 4px;
    background-color: #363B54;
    border: 1px solid #4A5173;
    color: #9699B0;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.copy-button:hover {
    background-color: #4A5173;
    color: #E4E4E7;
}

.copy-icon {
    font-size: 14px;
}

.loading-indicator {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin: 32px 0;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #363B54;
    border-top: 3px solid #7B68EE;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

@media (max-width: 768px) {
    .is-container {
        padding: 12px;
    }

    .keywords-container {
        grid-template-columns: 1fr;
    }

    .button-container {
        flex-direction: column;
    }

    .copy-button {
        position: relative;
        top: auto;
        right: auto;
        margin-top: 8px;
        width: 100%;
        justify-content: center;
    }
}
