* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --success-color: #27ae60;
  --light-bg: #ecf0f1;
  --text-color: #2c3e50;
  --border-color: #bdc3c7;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: var(--text-color);
  line-height: 1.6;
  min-height: 100vh;
  padding: 20px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

header {
  background: var(--primary-color);
  color: white;
  padding: 40px 20px;
  text-align: center;
}

header h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

header p {
  font-size: 1.1em;
  opacity: 0.9;
}

.logo {
  display: inline-block;
  width: 50px;
  height: 50px;
  background: var(--secondary-color);
  border-radius: 50%;
  margin-right: 15px;
  vertical-align: middle;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
}

main {
  padding: 40px 20px;
}

.controls {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  align-items: center;
}

.controls label {
  font-weight: 600;
  color: var(--text-color);
}

select, input[type="text"] {
  padding: 10px 15px;
  border: 2px solid var(--border-color);
  border-radius: 5px;
  font-size: 1em;
  transition: border-color 0.3s;
}

select:focus, input[type="text"]:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

button {
  padding: 10px 25px;
  background: var(--secondary-color);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  font-weight: 600;
  transition: background 0.3s, transform 0.2s;
}

button:hover {
  background: #2980b9;
  transform: translateY(-2px);
}

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

.semana-info {
  background: var(--light-bg);
  padding: 20px;
  border-radius: 5px;
  margin-bottom: 30px;
  border-left: 5px solid var(--secondary-color);
}

.semana-info h2 {
  color: var(--primary-color);
  margin-bottom: 10px;
}

.dias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.dia-card {
  background: white;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  transition: all 0.3s;
  cursor: pointer;
}

.dia-card:hover {
  border-color: var(--secondary-color);
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.2);
  transform: translateY(-5px);
}

.dia-card h3 {
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-size: 1.3em;
  border-bottom: 2px solid var(--light-bg);
  padding-bottom: 10px;
}

.prato {
  margin-bottom: 12px;
  padding: 10px;
  background: var(--light-bg);
  border-radius: 5px;
  border-left: 4px solid var(--accent-color);
}

.prato-categoria {
  font-weight: 600;
  color: var(--accent-color);
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.prato-nome {
  color: var(--text-color);
  font-size: 1em;
}

.prato.indisponivel .prato-nome {
  color: #95a5a6;
  font-style: italic;
}

.search-results {
  background: var(--light-bg);
  padding: 20px;
  border-radius: 5px;
  margin-top: 20px;
}

.search-results h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

.resultado-item {
  background: white;
  padding: 15px;
  margin-bottom: 10px;
  border-radius: 5px;
  border-left: 4px solid var(--success-color);
}

.resultado-item strong {
  color: var(--secondary-color);
}

.hidden {
  display: none;
}

.info-box {
  background: #e8f4f8;
  border-left: 4px solid var(--secondary-color);
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
  color: #2c5aa0;
}

footer {
  background: var(--primary-color);
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  font-size: 0.9em;
}

.nota {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 15px;
  border-radius: 5px;
  margin-top: 20px;
  color: #856404;
}

/* Responsivo */
@media (max-width: 768px) {
  header h1 {
    font-size: 1.8em;
  }

  .controls {
    flex-direction: column;
    align-items: stretch;
  }

  select, input[type="text"], button {
    width: 100%;
  }

  .dias-grid {
    grid-template-columns: 1fr;
  }

  main {
    padding: 20px 10px;
  }
}

@media (max-width: 480px) {
  header {
    padding: 20px 10px;
  }

  header h1 {
    font-size: 1.5em;
  }

  .logo {
    width: 40px;
    height: 40px;
    font-size: 1.4em;
  }
}
