Changed around line 1
+ :root {
+ --primary-color: #2c3e50;
+ --accent-color: #3498db;
+ --background-color: #f8f9fa;
+ --text-color: #2c3e50;
+ --border-radius: 8px;
+ --transition: all 0.3s ease;
+ }
+
+ * {
+ margin: 0;
+ padding: 0;
+ box-sizing: border-box;
+ }
+
+ body {
+ font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
+ line-height: 1.6;
+ color: var(--text-color);
+ background-color: var(--background-color);
+ min-height: 100vh;
+ display: flex;
+ flex-direction: column;
+ }
+
+ header {
+ background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
+ color: white;
+ padding: 2rem;
+ text-align: center;
+ box-shadow: 0 2px 10px rgba(0,0,0,0.1);
+ }
+
+ header h1 {
+ font-size: 2.5rem;
+ margin-bottom: 0.5rem;
+ }
+
+ main {
+ max-width: 1200px;
+ margin: 2rem auto;
+ padding: 0 1rem;
+ flex: 1;
+ }
+
+ .input-section {
+ background: white;
+ padding: 2rem;
+ border-radius: var(--border-radius);
+ box-shadow: 0 2px 15px rgba(0,0,0,0.05);
+ margin-bottom: 2rem;
+ }
+
+ .form-grid {
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
+ gap: 1rem;
+ align-items: end;
+ }
+
+ input, select, button {
+ padding: 0.8rem;
+ border: 2px solid #e0e0e0;
+ border-radius: var(--border-radius);
+ font-size: 1rem;
+ transition: var(--transition);
+ }
+
+ input:focus, select:focus {
+ border-color: var(--accent-color);
+ outline: none;
+ }
+
+ .add-btn {
+ background-color: var(--accent-color);
+ color: white;
+ border: none;
+ cursor: pointer;
+ font-weight: 600;
+ }
+
+ .add-btn:hover {
+ background-color: #2980b9;
+ transform: translateY(-2px);
+ }
+
+ .table-container {
+ overflow-x: auto;
+ background: white;
+ border-radius: var(--border-radius);
+ box-shadow: 0 2px 15px rgba(0,0,0,0.05);
+ }
+
+ table {
+ width: 100%;
+ border-collapse: collapse;
+ }
+
+ th, td {
+ padding: 1rem;
+ text-align: left;
+ border-bottom: 1px solid #e0e0e0;
+ }
+
+ th {
+ background-color: #f8f9fa;
+ font-weight: 600;
+ }
+
+ .delete-btn {
+ background-color: #e74c3c;
+ color: white;
+ border: none;
+ padding: 0.5rem 1rem;
+ border-radius: var(--border-radius);
+ cursor: pointer;
+ transition: var(--transition);
+ }
+
+ .delete-btn:hover {
+ background-color: #c0392b;
+ }
+
+ .totals {
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
+ gap: 2rem;
+ margin-top: 2rem;
+ text-align: center;
+ }
+
+ .total-cost, .cost-per-serving {
+ background: white;
+ padding: 2rem;
+ border-radius: var(--border-radius);
+ box-shadow: 0 2px 15px rgba(0,0,0,0.05);
+ }
+
+ .total-cost p, .cost-per-serving p {
+ font-size: 2rem;
+ font-weight: 600;
+ color: var(--accent-color);
+ margin-top: 0.5rem;
+ }
+
+ footer {
+ text-align: center;
+ padding: 2rem;
+ background: white;
+ margin-top: auto;
+ }
+
+ @media (max-width: 768px) {
+ header h1 {
+ font-size: 2rem;
+ }
+
+ .form-grid {
+ grid-template-columns: 1fr;
+ }
+
+ .totals {
+ grid-template-columns: 1fr;
+ }
+ }