Changed around line 1
+ :root {
+ --primary-color: #2c3e50;
+ --accent-color: #3498db;
+ --background-color: #f9fafb;
+ --text-color: #2c3e50;
+ --border-radius: 8px;
+ --spacing: 1rem;
+ }
+
+ * {
+ margin: 0;
+ padding: 0;
+ box-sizing: border-box;
+ }
+
+ body {
+ font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
+ line-height: 1.6;
+ color: var(--text-color);
+ background: var(--background-color);
+ }
+
+ header {
+ background: var(--primary-color);
+ color: white;
+ padding: 2rem var(--spacing);
+ text-align: center;
+ box-shadow: 0 2px 4px rgba(0,0,0,0.1);
+ }
+
+ main {
+ max-width: 1200px;
+ margin: 0 auto;
+ padding: var(--spacing);
+ }
+
+ section {
+ background: white;
+ border-radius: var(--border-radius);
+ padding: 2rem;
+ margin: 2rem 0;
+ box-shadow: 0 2px 4px rgba(0,0,0,0.05);
+ }
+
+ h2 {
+ color: var(--primary-color);
+ margin-bottom: 1.5rem;
+ }
+
+ .form-group {
+ margin-bottom: 1rem;
+ }
+
+ label {
+ display: block;
+ margin-bottom: 0.5rem;
+ font-weight: 500;
+ }
+
+ input {
+ width: 100%;
+ padding: 0.75rem;
+ border: 1px solid #ddd;
+ border-radius: var(--border-radius);
+ font-size: 1rem;
+ transition: border-color 0.3s;
+ }
+
+ input:focus {
+ outline: none;
+ border-color: var(--accent-color);
+ }
+
+ button {
+ background: var(--accent-color);
+ color: white;
+ border: none;
+ padding: 0.75rem 1.5rem;
+ border-radius: var(--border-radius);
+ cursor: pointer;
+ font-size: 1rem;
+ transition: background-color 0.3s;
+ }
+
+ button:hover {
+ background: #2980b9;
+ }
+
+ table {
+ width: 100%;
+ border-collapse: collapse;
+ margin: 1rem 0;
+ }
+
+ th, td {
+ padding: 1rem;
+ text-align: left;
+ border-bottom: 1px solid #ddd;
+ }
+
+ th {
+ background: #f5f6f7;
+ font-weight: 600;
+ }
+
+ .delete-btn {
+ background: #e74c3c;
+ padding: 0.5rem 1rem;
+ font-size: 0.9rem;
+ }
+
+ .delete-btn:hover {
+ background: #c0392b;
+ }
+
+ .total {
+ text-align: right;
+ margin-top: 2rem;
+ font-size: 1.2rem;
+ }
+
+ footer {
+ text-align: center;
+ padding: 2rem;
+ background: var(--primary-color);
+ color: white;
+ margin-top: 2rem;
+ }
+
+ @media (max-width: 768px) {
+ .form-group {
+ margin-bottom: 1.5rem;
+ }
+
+ table {
+ display: block;
+ overflow-x: auto;
+ }
+
+ th, td {
+ padding: 0.75rem;
+ }
+ }
+
+ @media (min-width: 768px) {
+ #ingredient-form {
+ display: grid;
+ grid-template-columns: repeat(3, 1fr);
+ gap: 1rem;
+ }
+
+ .form-group {
+ margin-bottom: 0;
+ }
+
+ button[type="submit"] {
+ grid-column: 1 / -1;
+ }
+ }