.smartkitchen-tool {
  max-width: 800px;
  margin: 40px auto;
  padding: 30px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.smartkitchen-tool-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 2px solid #e2e8f0;
}

.smartkitchen-tool-header h2 {
  margin: 0 0 15px 0;
  font-size: 32px;
  color: #1e293b;
  font-weight: 700;
}

.smartkitchen-tool-header p {
  margin: 0;
  font-size: 16px;
  color: #64748b;
}

.smartkitchen-tool-content {
  padding: 20px 0;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #475569;
  font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 15px;
  transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input-group {
  display: flex;
  gap: 10px;
}

.input-group input {
  flex: 1;
}

.input-group select {
  min-width: 100px;
}

.smartkitchen-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-block;
}

.smartkitchen-btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.smartkitchen-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.smartkitchen-btn-secondary {
  background: #f1f5f9;
  color: #475569;
}

.smartkitchen-btn-secondary:hover {
  background: #e2e8f0;
}

.smartkitchen-loading {
  text-align: center;
  padding: 60px 20px;
}

.smartkitchen-loading .spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f1f5f9;
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.smartkitchen-bmi-result,
.smartkitchen-recipe-result,
.meal-plan-result,
.conversion-result,
.nutrition-results,
.substitution-results {
  margin-top: 40px;
  padding: 30px;
  background: #f9fafb;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
}

.smartkitchen-bmi-result h3 {
  margin: 0 0 20px 0;
  color: #1e293b;
  font-size: 24px;
}

.bmi-value,
.bmi-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: white;
  border-radius: 8px;
  margin-bottom: 15px;
}

.bmi-value .label,
.bmi-category .label {
  font-weight: 600;
  color: #475569;
}

.bmi-value .value,
.bmi-category .value {
  font-size: 24px;
  font-weight: 700;
}

.bmi-category .value.underweight {
  color: #f59e0b;
}

.bmi-category .value.normal {
  color: #10b981;
}

.bmi-category .value.overweight {
  color: #f97316;
}

.bmi-category .value.obese {
  color: #ef4444;
}

.bmi-recommendation {
  margin-top: 20px;
  padding: 20px;
  background: white;
  border-radius: 8px;
  border-left: 4px solid #3b82f6;
}

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

.summary-item {
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 8px;
}

.summary-item .label {
  display: block;
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 8px;
}

.summary-item .value {
  font-size: 32px;
  font-weight: 700;
}

.summary-item input {
  width: 80px;
  text-align: center;
  padding: 8px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 24px;
  font-weight: 700;
}

.food-list ul,
.grocery-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.food-list li,
.grocery-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 10px;
  transition: all 0.3s;
}

.food-list li:hover,
.grocery-item:hover {
  border-color: #3b82f6;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

.grocery-item.checked {
  opacity: 0.6;
  text-decoration: line-through;
}

.remove-food,
.delete-item,
.delete-ingredient {
  background: #fee2e2;
  color: #dc2626;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  transition: all 0.3s;
}

.remove-food:hover,
.delete-item:hover,
.delete-ingredient:hover {
  background: #dc2626;
  color: white;
  transform: scale(1.1);
}

.form-row {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.form-row input,
.form-row select {
  flex: 1;
}

.timers-list,
.food-items-list {
  margin: 30px 0;
}

.timer-item,
.food-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 15px;
  transition: all 0.3s;
}

.timer-item.complete {
  background: #d1fae5;
  border-color: #10b981;
}

.food-item.expired {
  border-color: #ef4444;
  background: #fee2e2;
}

.food-item.expiring-soon {
  border-color: #f59e0b;
  background: #fef3c7;
}

.food-item.fresh {
  border-color: #10b981;
  background: #d1fae5;
}

.timer-display {
  font-size: 32px;
  font-weight: 700;
  color: #1e293b;
  font-family: 'Courier New', monospace;
}

.timer-controls,
.recipe-actions,
.list-actions {
  display: flex;
  gap: 10px;
}

.timer-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.3s;
}

.timer-btn.start,
.timer-btn.pause {
  background: #10b981;
  color: white;
}

.timer-btn.reset {
  background: #f59e0b;
  color: white;
}

.timer-btn.delete {
  background: #ef4444;
  color: white;
}

.timer-btn:hover {
  transform: scale(1.1);
}

.quick-timers {
  margin-top: 40px;
  padding: 30px;
  background: #f9fafb;
  border-radius: 12px;
}

.quick-timers h3 {
  margin: 0 0 20px 0;
  color: #1e293b;
}

.quick-timer-btn {
  padding: 12px 20px;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  margin: 5px;
  cursor: pointer;
  transition: all 0.3s;
}

.quick-timer-btn:hover {
  border-color: #3b82f6;
  background: #eff6ff;
}

.category-header {
  margin: 30px 0 15px 0;
  color: #1e293b;
  font-size: 20px;
  font-weight: 600;
  text-transform: capitalize;
}

.common-substitutions,
.ai-features {
  margin-top: 40px;
}

.substitution-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.sub-card {
  padding: 20px;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
}

.sub-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
  transform: translateY(-2px);
}

.sub-card h4 {
  margin: 0 0 10px 0;
  color: #1e293b;
}

.sub-card p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}

.expiration-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.summary-card {
  text-align: center;
  padding: 25px;
  border-radius: 8px;
}

.summary-card.expired {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
  color: white;
}

.summary-card.expiring-soon {
  background: linear-gradient(135deg, #f9ca24 0%, #f0932b 100%);
  color: white;
}

.summary-card.fresh {
  background: linear-gradient(135deg, #6dd5ed 0%, #2193b0 100%);
  color: white;
}

.summary-card .count {
  display: block;
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 10px;
}

.filter-options {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
}

.filter-btn {
  padding: 10px 20px;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
}

.filter-btn.active {
  background: #3b82f6;
  color: white;
  border-color: #3b82f6;
}

.ingredients-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.ingredients-table th,
.ingredients-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.ingredients-table th {
  background: #f9fafb;
  font-weight: 600;
  color: #475569;
}

.adjusted-amount {
  color: #10b981;
  font-weight: 600;
}

@media (max-width: 768px) {
  .smartkitchen-tool {
    padding: 20px;
    margin: 20px 10px;
  }

  .calorie-summary,
  .expiration-summary {
    grid-template-columns: 1fr;
  }

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

  .form-row {
    flex-direction: column;
  }
}
