/* 기본 스타일 초기화 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f7f9;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

header {
    text-align: center;
    margin-bottom: 40px;
}

header h1 {
    color: #2c3e50;
    margin-bottom: 10px;
}

header p {
    color: #7f8c8d;
    font-size: 0.95rem;
}

.tool-section {
    margin-bottom: 40px;
}

h2 {
    color: #3498db;
    margin-bottom: 15px;
    border-left: 5px solid #3498db;
    padding-left: 15px;
}

.description {
    margin-bottom: 20px;
    color: #555;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

/* 파일 업로드 버튼 커스텀 */
.file-label {
    display: inline-block;
    padding: 8px 20px;
    background-color: #ecf0f1;
    border: 1px solid #bdc3c7;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.file-label:hover {
    background-color: #dfe6e9;
}

input[type="file"] {
    display: none;
}

.options {
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
}

.options label {
    cursor: pointer;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

button {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.primary-btn {
    background-color: #3498db;
    color: white;
}

.primary-btn:hover {
    background-color: #2980b9;
}

.secondary-btn {
    background-color: #2ecc71;
    color: white;
}

.secondary-btn:hover {
    background-color: #27ae60;
}

button:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}

/* 미리보기 영역 */
.preview-area h3 {
    margin-bottom: 10px;
    font-size: 1rem;
    color: #7f8c8d;
}

.preview-box {
    width: 100%;
    height: 200px;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    padding: 15px;
    overflow-y: auto;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    white-space: pre-wrap;
    border-radius: 6px;
}

.canvas-container {
    width: 100%;
    border: 1px solid #eee;
    background-color: #f9f9f9;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    border-radius: 6px;
    overflow: hidden;
}

canvas {
    max-width: 100%;
    height: auto;
}

hr {
    border: 0;
    border-top: 1px solid #eee;
    margin: 40px 0;
}

footer {
    text-align: center;
    margin-top: 20px;
    color: #bdc3c7;
    font-size: 0.85rem;
}
