/* Modern Light Theme for Macros Calculator */
:root {
  --primary-color: #4CAF50;
  --primary-hover: #3e8e41;
  --secondary-color: #f8f9fa;
  --text-color: #333333;
  --border-color: #e0e0e0;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --success-color: #28a745;
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #f5f7fa;
  margin: 0;
  padding: 20px;
}

h1 {
  color: var(--primary-color);
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.wrapper {
  max-width: 600px;
  margin: 0 auto 2rem;
  background-color: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

#calories-from-macros-calculator {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.macro {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.dpb {
  width: 100%;
}

input[type="text"] {
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
  width: 100px;
  margin-right: 10px;
}

input[type="text"]:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

label {
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  font-weight: 500;
}

button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 20px;
  font-size: 1.1rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  width: 100%;
}

button:hover {
  background-color: var(--primary-hover);
}

.result {
  background-color: var(--secondary-color);
  padding: 15px;
  border-radius: var(--border-radius);
  font-size: 1.5rem;
  text-align: center;
  font-weight: bold;
  margin-top: 1rem;
  border: 2px solid var(--primary-color);
}

#kcal {
  color: var(--primary-color);
  font-size: 2rem;
}

/* Content styling */
hr {
  border: 0;
  height: 1px;
  background-color: var(--border-color);
  margin: 2rem 0;
}

p, li {
  font-size: 1rem;
  margin-bottom: 1rem;
}

strong {
  color: var(--primary-color);
  font-weight: 600;
}

ul, ol {
  padding-left: 2rem;
  margin-bottom: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .wrapper {
    padding: 1.5rem;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  input[type="text"] {
    width: 80px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 10px;
  }
  
  .wrapper {
    padding: 1rem;
  }
  
  h1 {
    font-size: 1.5rem;
  }
  
  label {
    font-size: 1rem;
  }
  
  input[type="text"] {
    padding: 10px;
    width: 70px;
  }
  
  button {
    padding: 10px 15px;
  }
  
  .result {
    font-size: 1.2rem;
  }
  
  #kcal {
    font-size: 1.8rem;
  }
}