* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

.container { max-width: 800px; margin: 0 auto; background: #fff; border: 1px solid #ddd; }

header { background: #2c3e50; color: #fff; padding: 25px 30px; border-bottom: 3px solid #1a252f; }
h1 { font-size: 1.6rem; font-weight: 600; margin-bottom: 15px; }

.home-link { display: inline-block; color: #ecf0f1; text-decoration: none; font-size: 0.95rem; margin-bottom: 15px; opacity: 0.8; transition: opacity 0.2s; font-weight: 500; }
.home-link:hover { opacity: 1; color: #fff; }

.info-box { background: #34495e; padding: 12px 18px; display: inline-block; border-left: 3px solid #8e44ad; }
.info-box p { margin: 3px 0; font-size: 0.95rem; color: #ecf0f1; }
.info-box strong { color: #fff; font-weight: 600; }

main { padding: 30px; }
h2 { color: #333; margin-bottom: 20px; font-size: 1.2rem; font-weight: 600; }

/* Type Tabs */
.type-tabs { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 2px solid #eee; margin-bottom: 20px; }
.tab-btn {
    padding: 10px 16px; background: none; border: none; border-bottom: 3px solid transparent;
    font-size: 0.9rem; cursor: pointer; color: #666; transition: all 0.2s; font-weight: 500;
}
.tab-btn:hover { color: #8e44ad; }
.tab-btn.active { color: #8e44ad; border-bottom-color: #8e44ad; font-weight: 600; }

/* Input Section */
.input-section { margin-bottom: 20px; }
.input-panel { display: none; }
.input-panel.active { display: flex; flex-direction: column; gap: 10px; }
.input-panel textarea, .input-panel input, .input-panel select {
    width: 100%; padding: 10px 14px; border: 1px solid #ccc; border-radius: 4px;
    font-size: 0.95rem; font-family: inherit; transition: border-color 0.2s;
}
.input-panel textarea:focus, .input-panel input:focus, .input-panel select:focus {
    outline: none; border-color: #8e44ad;
}

/* Options */
.options-section {
    background: #f8f9fa; border: 1px solid #e0e0e0; border-radius: 6px;
    padding: 16px; margin-bottom: 20px;
}
.option-row { display: flex; gap: 20px; margin-bottom: 12px; flex-wrap: wrap; }
.option-row:last-child { margin-bottom: 0; }
.option-group { flex: 1; min-width: 120px; }
.option-group label { display: block; font-size: 0.85rem; font-weight: 600; color: #555; margin-bottom: 6px; }
.option-group select { width: 100%; padding: 8px 10px; border: 1px solid #ccc; border-radius: 4px; font-size: 0.9rem; background: #fff; }
.option-group input[type="color"] { width: 50px; height: 36px; border: 1px solid #ccc; border-radius: 4px; cursor: pointer; padding: 2px; }

/* Action */
.action-section { text-align: center; margin-bottom: 24px; }
.primary-btn {
    padding: 12px 28px; background: #8e44ad; color: #fff; border: none; border-radius: 6px;
    font-size: 1rem; font-weight: 600; cursor: pointer; transition: background 0.2s;
}
.primary-btn:hover { background: #7d3c98; }
.secondary-btn {
    padding: 12px 28px; background: #2c3e50; color: #fff; border: none; border-radius: 6px;
    font-size: 1rem; font-weight: 600; cursor: pointer; transition: background 0.2s;
}
.secondary-btn:hover { background: #34495e; }

/* Preview */
.preview-section { text-align: center; padding: 20px 0; border-top: 1px solid #eee; }
.qr-preview { display: inline-block; padding: 20px; background: #fff; border: 1px solid #eee; border-radius: 8px; margin-bottom: 20px; }
.qr-preview canvas, .qr-preview img { display: block; margin: 0 auto; }
.download-actions { display: flex; gap: 12px; justify-content: center; }

/* Notice */
.notice-section { background: #fffbe6; border: 1px solid #e6d8a8; border-left: 4px solid #d4a017; padding: 20px; margin: 0 30px 25px 30px; }
.notice-section h2 { color: #5d4e00; margin-bottom: 12px; font-size: 1.1rem; }
.notice-content p { color: #665500; margin: 8px 0; line-height: 1.6; font-size: 0.9rem; }
.notice-content strong { color: #4a4000; }

/* Footer */
footer { background: #f8f9fa; text-align: center; padding: 15px 20px; color: #777; font-size: 0.85rem; border-top: 1px solid #ddd; }
.footer-links { margin-top: 8px; }
.lang-select { padding: 4px 8px; border: 1px solid #ccc; border-radius: 4px; font-size: 0.85rem; background: #fff; color: #333; cursor: pointer; }

/* Toast */
.toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(100px); background: #2c3e50; color: #fff; padding: 12px 24px; border-radius: 4px; font-size: 0.9rem; opacity: 0; transition: all 0.3s ease; z-index: 1000; box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Responsive */
@media (max-width: 768px) {
    body { padding: 10px; }
    h1 { font-size: 1.3rem; }
    header { padding: 20px; }
    main { padding: 20px; }
    .notice-section { margin: 0 20px 20px 20px; }
    .type-tabs { gap: 0; }
    .tab-btn { padding: 8px 10px; font-size: 0.8rem; }
}
@media (max-width: 480px) {
    .option-row { flex-direction: column; gap: 12px; }
    .download-actions { flex-direction: column; }
    .primary-btn, .secondary-btn { width: 100%; }
}
