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

.html-preview-container * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Pretendard', sans-serif;
}

.html-preview-container {
    color: #212529;
    width: 100%;
    max-width: 700px;
    overflow: hidden;
    margin: 20px auto;
    border-radius: 8px;
}

.html-preview-header {
    padding: 0px 0px 24px;
    border-bottom: 1px solid #e9ecef;
}
.html-preview-header h1 {
    font-size: 24px;
    font-weight: 800;
    text-align: left;
    line-height: 1.2;
}
.html-preview-header-description {
    margin-top: 8px;
    font-size: 15px;
    color: #495057;
}

.html-preview-main-content {
    padding: 30px 0px 30px;
}

/* 섹션 제목 */
.html-preview-input-section h3,
.html-preview-result-section h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

/* 라벨 */
.html-preview-input-section label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

/* 텍스트 영역 */
.html-preview-textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.2s ease;
    background-color: #ffffff;
    min-height: 240px;
    white-space: pre;
}
.html-preview-textarea:focus {
    outline: none;
    border-color: #4c6ef5;
    box-shadow: 0 0 0 3px rgba(76, 110, 245, 0.2);
}

/* 버튼들 */
.html-preview-action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: 12px;
    margin-top: 16px;
}
.html-preview-btn {
    padding: 14px;
    border-radius: 6px;
    border: none;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.html-preview-btn-reset {
    background-color: #f1f3f5;
    color: #495057;
}
html .html-preview-btn-reset:hover { background-color: #e9ecef; }

.html-preview-btn-copy {
    background-color: #15aabf;
    color: #ffffff;
}
html .html-preview-btn-copy:hover { background-color: #1098ad; }

.html-preview-btn-preview {
    background-color: #4c6ef5;
    color: #ffffff;
}
html .html-preview-btn-preview:hover { background-color: #364fc7; }

/* 구분선 */
.html-preview-divider {
    border: 0;
    height: 1px;
    background-color: #e9ecef;
    margin: 32px 0;
}

/* 안내 */
.html-preview-result-section ul {
    list-style: none;
    padding-left: 0;
}
.html-preview-result-section li {
    font-size: 14px;
    color: #495057;
    line-height: 1.6;
    margin-bottom: 4px;
}
