:root {
    --primary-color: #ff6b6b;
    --background-color: #f8f9fa;
    --text-color: #333;
    --container-bg: #fff;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --border-color: #dee2e6;
}

body.dark-mode {
    --background-color: #212529;
    --text-color: #f8f9fa;
    --container-bg: #343a40;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --border-color: #495057;
}

body {
    font-family: 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    transition: background-color 0.3s, color 0.3s;
}

.container {
    background-color: var(--container-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px var(--shadow-color);
    text-align: center;
    max-width: 400px;
    width: 90%;
    transition: background-color 0.3s;
}

h1 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.subtitle {
    margin-bottom: 2rem;
    color: #6c757d;
    font-size: 0.9rem;
}

body.dark-mode .subtitle {
    color: #adb5bd;
}

.food-result {
    font-size: 2.5rem;
    font-weight: bold;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
    border: 2px dashed var(--border-color);
    border-radius: 10px;
    transition: border-color 0.3s;
}

#recommend-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s;
    width: 100%;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

#recommend-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}

#recommend-btn:active {
    transform: translateY(0);
}

#recommend-btn:disabled {
    background-color: #adb5bd;
    cursor: not-allowed;
    transform: none;
}

.categories {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.categories label {
    font-size: 0.9rem;
    cursor: pointer;
    user-select: none;
    padding: 0.2rem 0.5rem;
}

.contact-section {
    margin-top: 3rem;
    padding-top: 1rem;
    text-align: left;
}

.contact-section hr {
    border: 0;
    height: 1px;
    background: var(--border-color);
    margin-bottom: 2rem;
}

.contact-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.contact-section form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-section input, 
.contact-section textarea {
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--container-bg);
    color: var(--text-color);
    font-family: inherit;
}

.contact-section textarea {
    min-height: 100px;
    resize: vertical;
}

.contact-section button[type="submit"] {
    background-color: #495057;
    color: white;
    border: none;
    padding: 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s;
}

body.dark-mode .contact-section button[type="submit"] {
    background-color: #6c757d;
}

.contact-section button[type="submit"]:hover {
    background-color: #212529;
}

body.dark-mode .contact-section button[type="submit"]:hover {
    background-color: #adb5bd;
}

.comments-section {
    margin-top: 3rem;
    padding-top: 1rem;
}

.comments-section hr {
    border: 0;
    height: 1px;
    background: var(--border-color);
    margin-bottom: 2rem;
}

#theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.3s;
}

#theme-toggle:hover {
    background-color: rgba(0,0,0,0.05);
}

body.dark-mode #theme-toggle:hover {
    background-color: rgba(255,255,255,0.1);
}