body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f4f8;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

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

.container {
    max-width: 800px;
    margin: 20px auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #007bff;
    text-align: center;
    margin-bottom: 5px;
}

h2 {
    color: #4a4a4a;
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
    margin-top: 30px;
}

.description {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

/* 파일 업로드 스타일 */
.file-input-group, .option-group {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
}

input[type="file"], select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

/* 미리보기 영역 */
.preview-area {
    text-align: center;
    margin-top: 20px;
    min-height: 50px;
}

#imagePreview {
    max-width: 150px;
    max-height: 150px;
    border: 2px dashed #007bff;
    padding: 5px;
    border-radius: 4px;
}

/* 버튼 스타일 */
#generateButton {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #28a745; /* 녹색 계열 */
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s;
}

#generateButton:hover {
    background-color: #1e7e34;
}

.related-sites ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.related-sites li a {
    text-decoration: none;
    background-color: #e9ecef;
    color: #495057;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.related-sites li a:hover {
    background-color: #007bff;
    color: #fff;
}

footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    background-color: #343a40;
    color: #f8f9fa;
    border-radius: 0 0 12px 12px;
    max-width: 880px; /* container width + padding */
    margin-left: auto;
    margin-right: auto;
}

footer p {
    margin: 5px 0;
    font-size: 14px;
    color: #ced4da;
}