/* Shopping List Plugin Styles */
.shopping-list-container {
  max-width: 28rem;
  margin: 0 auto;
  background: white;
  min-height: 60vh
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.shopping-list-header {
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.shopping-list-btn {
  width: 100%;
  background: #fb6b34;
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

.shopping-list-btn:hover {
  background: #e55a2b;
}

.shopping-list-btn-secondary {
  background: #6b7280;
}

.shopping-list-btn-secondary:hover {
  background: #4b5563;
}

.shopping-list-btn-danger {
  background: #ef4444;
}

.shopping-list-btn-danger:hover {
  background: #dc2626;
}

.shopping-list-btn-small {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  width: auto;
  min-width: auto;
}

.shopping-list-form {
  padding: 1rem;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.shopping-list-form-group {
  margin-bottom: 0.75rem;
}

.shopping-list-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 1rem;
}

.shopping-list-input:focus {
  outline: none;
  border-color: #fb6b34;
  box-shadow: 0 0 0 1px #fb6b34;
}

.shopping-list-select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 1rem;
  background: white;
}

.shopping-list-select:focus {
  outline: none;
  border-color: #fb6b34;
  box-shadow: 0 0 0 1px #fb6b34;
}

.shopping-list-form-buttons {
  display: flex;
  gap: 0.5rem;
}

.shopping-list-form-buttons .shopping-list-btn {
  flex: 1;
}

.shopping-list-lists {
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.shopping-list-lists-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.75rem;
}

.shopping-list-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.shopping-list-item-row:hover {
  background: #f9fafb;
}

.shopping-list-item-row-name {
  font-weight: 500;
  color: #111827;
  flex: 1;
}

.shopping-list-item-row-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.shopping-list-action-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  font-size: 1rem;
  color: #6b7280;
  transition: color 0.2s;
}

.shopping-list-action-btn:hover {
  color: #374151;
}

.shopping-list-summary {
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.shopping-list-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.75rem;
}

.shopping-list-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.shopping-list-stat {
  padding: 0.75rem;
  border-radius: 0.5rem;
  text-align: center;
}

.shopping-list-stat-budget {
  background: #fef2f2;
}

.shopping-list-stat-spent {
  background: #fecaca;
}

.shopping-list-stat-remaining {
  background: #f0fdf4;
}

.shopping-list-stat-label {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.25rem;
}

.shopping-list-stat-value {
  font-weight: 700;
}

.shopping-list-stat-budget .shopping-list-stat-value {
  color: #dc2626;
}

.shopping-list-stat-spent .shopping-list-stat-value {
  color: #991b1b;
}

.shopping-list-stat-remaining .shopping-list-stat-value {
  color: #16a34a;
}

.shopping-list-items {
  padding: 1rem;
}

.shopping-list-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
}

.shopping-list-checkbox {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: #fb6b34;
}

.shopping-list-item-content {
  flex: 1;
}

.shopping-list-item-name {
  font-weight: 500;
  color: #111827;
}

.shopping-list-item-name.purchased {
  text-decoration: line-through;
  color: #6b7280;
}

.shopping-list-item-category {
  font-size: 0.875rem;
  color: #6b7280;
}

.shopping-list-item-price {
  font-weight: 700;
  color: #111827;
}

.shopping-list-item-price.purchased {
  color: #6b7280;
}

.shopping-list-delete-btn {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  padding: 0.25rem;
  font-size: 1.25rem;
}

.shopping-list-delete-btn:hover {
  color: #dc2626;
}

.shopping-list-empty {
  text-align: center;
  color: #6b7280;
  padding: 2rem;
}

.shopping-list-empty-message {
  margin-bottom: 1.5rem;
}

.shopping-list-footer {
  padding: 1rem;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
}

.shopping-list-footer-stats {
  text-align: center;
  margin-bottom: 1rem;
}

.shopping-list-footer-stat {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.25rem;
}

.shopping-list-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.shopping-list-spinner {
  width: 2rem;
  height: 2rem;
  border: 2px solid #e5e7eb;
  border-top: 2px solid #fb6b34;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.shopping-list-login-message {
  text-align: center;
  padding: 2rem;
  color: #6b7280;
}

.shopping-list-login-message a {
  color: #fb6b34;
  text-decoration: none;
}

.shopping-list-login-message a:hover {
  text-decoration: underline;
}

.shopping-list-back-btn {
  background: #6b7280;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-bottom: 1rem;
}

.shopping-list-back-btn:hover {
  background: #4b5563;
}

/* Responsive */
@media (max-width: 768px) {
  .shopping-list-container {
    max-width: 100%;
  }
  
  .shopping-list-stats {
    grid-template-columns: 2fr 1fr;
    gap: 0.25rem;
  }
  
  .shopping-list-stat-remaining {
    grid-column: 1 / -1;
  }
  
  .shopping-list-stat {
    padding: 0.5rem;
  }
  
  .shopping-list-item-row-actions {
    gap: 0.25rem;
  }
  
  .shopping-list-action-btn {
    font-size: 0.875rem;
  }
}
