:root {
    --primary-color: #e67e22;
    --bg-color: #f8f9fa;
    --container-bg: white;
    --text-color: #2c3e50;
    --subtitle-color: #7f8c8d;
    --placeholder-bg: #ecf0f1;
    --placeholder-text: #bdc3c7;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --switch-bg: #ccc;
    --input-border: #ddd;
}

body.dark-mode {
    --bg-color: #121212;
    --container-bg: #1e1e1e;
    --text-color: #f0f0f0;
    --subtitle-color: #a0a0a0;
    --placeholder-bg: #2d2d2d;
    --placeholder-text: #4d4d4d;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    --switch-bg: #e67e22;
    --input-border: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

body {
    font-family: 'Pretendard', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    padding: 60px 0;
}

.main-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: 100%;
}

.theme-switch-wrapper {
    position: fixed;
    top: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
}

#theme-text { font-size: 0.9rem; font-weight: 600; }
.theme-switch { display: inline-block; height: 34px; position: relative; width: 60px; }
.theme-switch input { display: none; }
.slider { background-color: var(--switch-bg); bottom: 0; cursor: pointer; left: 0; position: absolute; right: 0; top: 0; transition: .4s; }
.slider:before { background-color: #fff; bottom: 4px; content: ""; height: 26px; left: 4px; position: absolute; transition: .4s; width: 26px; box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
input:checked + .slider { background-color: var(--primary-color); }
input:checked + .slider:before { transform: translateX(26px); }
.slider.round { border-radius: 34px; }
.slider.round:before { border-radius: 50%; }

.container, .contact-container {
    background: var(--container-bg);
    padding: 3rem;
    border-radius: 30px;
    box-shadow: var(--shadow);
    text-align: center;
    max-width: 500px;
    width: 90%;
}

h1 { font-size: 2.2rem; margin-bottom: 0.8rem; color: var(--primary-color); }
.subtitle { font-size: 1.1rem; color: var(--subtitle-color); margin-bottom: 2.5rem; }

.result-display {
    min-height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2.5rem;
}

.menu-card {
    background-color: var(--primary-color);
    color: white;
    padding: 20px 40px;
    border-radius: 20px;
    font-size: 2rem;
    font-weight: bold;
    box-shadow: 0 8px 20px rgba(230, 126, 34, 0.3);
    animation: pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.menu-placeholder {
    color: var(--placeholder-text);
    font-size: 1.2rem;
    font-style: italic;
}

.btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 16px 45px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.3);
}

.btn:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(230, 126, 34, 0.4); }
.btn:active { transform: translateY(0); }

.contact-container { padding: 2.5rem; }
.contact-container h3 { margin-bottom: 10px; color: var(--primary-color); font-size: 1.5rem; }
.contact-container p { font-size: 0.9rem; color: var(--subtitle-color); margin-bottom: 20px; }
.input-group { margin-bottom: 15px; }
.input-group input, .input-group textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid var(--input-border);
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: inherit;
    font-size: 0.95rem;
}
.input-group textarea { height: 100px; resize: none; }
.submit-btn { width: 100%; background-color: var(--text-color); color: var(--container-bg); border: none; padding: 12px; border-radius: 10px; font-weight: bold; cursor: pointer; transition: opacity 0.2s; }
.submit-btn:hover { opacity: 0.9; }

@keyframes pop {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
