:root {
    --bg-color: #f0f0f0;
    --container-bg: white;
    --text-color: #333;
    --number-bg: #eee;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --btn-bg: #4CAF50;
    --btn-shadow: rgba(76, 175, 80, 0.4);
}

body.dark-mode {
    --bg-color: #1a1a1a;
    --container-bg: #2d2d2d;
    --text-color: #f0f0f0;
    --number-bg: #444;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --btn-bg: #45a049;
    --btn-shadow: rgba(69, 160, 73, 0.4);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
                      url('https://images.unsplash.com/photo-1477959858617-67f85cf4f1df?q=80&w=2113&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    transition: background-color 0.3s ease;
}

.container {
    background-color: var(--container-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: 2rem;
    box-shadow: 0 2rem 3rem rgba(0, 0, 0, 0.3);
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    max-width: 500px;
    width: 90%;
}

body:not(.dark-mode) .container {
    background-color: rgba(255, 255, 255, 0.85);
}

body.dark-mode .container {
    background-color: rgba(45, 45, 45, 0.85);
}

h1 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
}

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

#theme-toggle:hover {
    background-color: var(--number-bg);
}

#generate-btn {
    background-color: var(--btn-bg);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
    box-shadow: 0 0.5rem 1rem var(--btn-shadow);
}

#generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.7rem 1.2rem var(--btn-shadow);
}

#numbers-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.number {
    width: 3rem;
    height: 3rem;
    background-color: var(--number-bg);
    color: var(--text-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    font-weight: bold;
    box-shadow: 0 0.2rem 0.5rem var(--shadow-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Contact form styles */
.contact-section {
    margin-top: 3rem;
    text-align: left;
}

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

h3 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--shadow-color);
    border-radius: 0.5rem;
    background-color: var(--number-bg);
    color: var(--text-color);
    font-family: inherit;
    box-sizing: border-box;
    transition: all 0.2s;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--btn-bg);
    box-shadow: 0 0 0 2px var(--btn-shadow);
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

#submit-btn {
    width: 100%;
    background-color: #2196F3;
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.2s ease;
    box-shadow: 0 0.5rem 1rem rgba(33, 150, 243, 0.4);
    margin-top: 1rem;
}

/* Food Test Section Styles */
#food-test-section {
    margin-bottom: 2rem;
}

.upload-container {
    margin: 1.5rem 0;
}

#upload-btn {
    background-color: #FF9800;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.2s ease;
    box-shadow: 0 0.5rem 1rem rgba(255, 152, 0, 0.4);
}

#upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.7rem 1.2rem rgba(255, 152, 0, 0.4);
}

#image-preview-container {
    margin: 1.5rem auto;
    max-width: 300px;
}

#label-container {
    margin-top: 1rem;
    font-size: 1.1rem;
    color: var(--text-color);
}

#result-message {
    font-size: 1.2rem;
    min-height: 1.5rem;
    margin-bottom: 1rem;
}
