:root {
  --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --container-bg: rgba(255, 255, 255, 0.95);
  --text-main: #2d3748;
  --text-secondary: #718096;
  --button-bg: linear-gradient(to right, #667eea, #764ba2);
  --button-hover-shadow: rgba(102, 126, 234, 0.4);
  --row-bg: #fff;
  --row-border: #edf2f7;
  --shadow-color: rgba(0, 0, 0, 0.2);
  --input-bg: #fff;
  --input-border: #cbd5e0;
}

body.dark-mode {
  --bg-gradient: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
  --container-bg: rgba(30, 41, 59, 0.95);
  --text-main: #f1f5f9;
  --text-secondary: #94a3b8;
  --button-bg: linear-gradient(to right, #4facfe, #00f2fe);
  --button-hover-shadow: rgba(79, 172, 254, 0.4);
  --row-bg: #334155;
  --row-border: #475569;
  --shadow-color: rgba(0, 0, 0, 0.5);
  --input-bg: #1e293b;
  --input-border: #475569;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg-gradient);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  color: #333;
  transition: background 0.3s ease;
  padding: 20px 0; /* Add padding for small screens */
}

.container {
  background-color: var(--container-bg);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 25px var(--shadow-color);
  text-align: center;
  max-width: 550px;
  width: 90%;
  backdrop-filter: blur(10px);
  position: relative;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.theme-toggle {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px;
  margin: 0;
  box-shadow: none;
  color: var(--text-main);
  transition: transform 0.2s;
}

.theme-toggle:hover {
  transform: scale(1.1);
  background: none;
  box-shadow: none;
}

h1, h2 {
  color: var(--text-main);
  margin-bottom: 0.5rem;
  font-weight: 700;
  transition: color 0.3s ease;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; margin-top: 0; }

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

button {
  background: var(--button-bg);
  color: white;
  border: none;
  padding: 14px 28px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-bottom: 25px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px var(--button-hover-shadow);
}

button:active {
  transform: translateY(0);
}

.menu-result {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  background: var(--button-bg);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  margin-top: 20px;
  animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  opacity: 0;
  transform: scale(0.8);
}

@keyframes popIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Divider */
.divider {
  border: 0;
  height: 1px;
  background: var(--row-border);
  margin: 30px 0;
}

/* Contact Form */
.contact-section {
  text-align: left;
}

.contact-section h2 {
  text-align: center;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--input-border);
  border-radius: 8px;
  background-color: var(--input-bg);
  color: var(--text-main);
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  box-sizing: border-box; /* Important so padding doesn't affect width */
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

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

.contact-section button {
  width: 100%;
  margin-bottom: 10px;
}

.form-status {
  text-align: center;
  font-size: 0.9rem;
  min-height: 1.5em;
  margin: 0;
}

.form-status.success {
  color: #48bb78;
}

.form-status.error {
  color: #f56565;
}
