/* Bonsai Care PWA Styles */

/* CSS Custom Properties - Design System */
:root {
  /* Pink Palette */
  --pink-50: #fdf2f8;
  --pink-200: #fecaca;
  --pink-500: #ec4899;

  /* Green Palette */
  --green-50: #f0fdf4;
  --green-200: #bbf7d0;
  --green-600: #16a34a;

  /* Neutral Palette */
  --ink-900: #1f2937;
  --ink-600: #4b5563;
  --paper: #fff7f9;
  --card: #ffffff;
  --focus: #2563eb;

  /* Typography */
  --font-family: ui-sans-serif, -apple-system, "Segoe UI", Roboto, sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
}

/* Base styles */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  background-color: var(--paper);
  color: var(--ink-900);
  line-height: 1.6;
}

/* App container */
#app {
  min-height: 100vh;
  padding: var(--space-4);
}

/* Mobile-first responsive design */
@media (min-width: 768px) {
  #app {
    max-width: 600px;
    margin: 0 auto;
    padding: var(--space-6);
  }
}

/* Header styles */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--pink-200);
}

h1 {
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--ink-900);
  margin: 0;
}

/* Card component styles */
.card {
  background: var(--card);
  border-radius: 16px;
  padding: var(--space-5);
  margin-bottom: var(--space-4);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--pink-200);
}

.card-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.card-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--ink-900);
  margin: 0;
}

.card-content {
  color: var(--ink-600);
  line-height: 1.6;
}

/* Button component styles with 44px touch targets */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  min-width: 44px;
  padding: var(--space-3) var(--space-4);
  border: none;
  border-radius: 8px;
  font-family: var(--font-family);
  font-size: var(--text-base);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.btn:focus {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--green-600);
  color: white;
}

.btn-primary:hover {
  background: #15803d;
}

.btn-secondary {
  background: var(--pink-500);
  color: white;
}

.btn-secondary:hover {
  background: #db2777;
}

.btn-outline {
  background: transparent;
  color: var(--green-600);
  border: 2px solid var(--green-600);
}

.btn-outline:hover {
  background: var(--green-50);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-600);
  border: 1px solid var(--pink-200);
}

.btn-ghost:hover {
  background: var(--pink-50);
}

.btn-small {
  min-height: 36px;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Form component styles */
.form-group {
  margin-bottom: var(--space-4);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-900);
  margin-bottom: var(--space-2);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  min-height: 44px;
  padding: var(--space-3);
  border: 2px solid var(--pink-200);
  border-radius: 8px;
  font-family: var(--font-family);
  font-size: var(--text-base);
  background: var(--card);
  color: var(--ink-900);
  transition: border-color 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-textarea {
  min-height: 88px;
  resize: vertical;
}

.form-checkbox,
.form-radio {
  width: 20px;
  height: 20px;
  margin-right: var(--space-2);
  accent-color: var(--green-600);
}

.form-checkbox:focus,
.form-radio:focus {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* Toggle switch component */
.toggle {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--pink-200);
  transition: 0.3s;
  border-radius: 28px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.toggle input:checked + .toggle-slider {
  background-color: var(--green-600);
}

.toggle input:checked + .toggle-slider:before {
  transform: translateX(24px);
}

.toggle input:focus + .toggle-slider {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* Accessibility and focus styles */
*:focus {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* Remove default focus for mouse users, keep for keyboard users */
*:focus:not(:focus-visible) {
  outline: none;
}

*:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --pink-200: #f472b6;
    --green-600: #059669;
    --ink-900: #000000;
    --ink-600: #374151;
    --focus: #1d4ed8;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Single column layout utilities */
.container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.stack-sm {
  gap: var(--space-2);
}

.stack-lg {
  gap: var(--space-6);
}

/* Utility classes */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center {
  text-align: center;
}

.text-sm {
  font-size: var(--text-sm);
}

.text-lg {
  font-size: var(--text-lg);
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.text-green {
  color: var(--green-600);
}

.text-pink {
  color: var(--pink-500);
}

.text-muted {
  color: var(--ink-600);
}

.bg-green-light {
  background-color: var(--green-50);
}

.bg-pink-light {
  background-color: var(--pink-50);
}

/* Interactive states */
.interactive:hover {
  background-color: var(--pink-50);
  cursor: pointer;
}

.interactive:focus {
  background-color: var(--pink-50);
}

/* Offline indicator styles */
.offline-indicator {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--green-600);
  color: white;
  text-align: center;
  padding: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Toast/notification styles */
.toast {
  position: fixed;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  background: var(--green-600);
  color: white;
  padding: var(--space-3) var(--space-5);
  border-radius: 8px;
  font-size: var(--text-sm);
  font-weight: 500;
  z-index: 1000;
  animation: slideUp 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  max-width: 90vw;
  text-align: center;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Modal styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: var(--space-4);
}

.modal {
  background: var(--card);
  border-radius: 16px;
  padding: var(--space-6);
  max-width: 500px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
}

.modal-title {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--ink-900);
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: var(--text-xl);
  cursor: pointer;
  padding: var(--space-2);
  color: var(--ink-600);
  border-radius: 4px;
  min-height: 44px;
  min-width: 44px;
}

.modal-close:hover {
  background: var(--pink-50);
}

/* Banner styles */
.banner {
  background: var(--pink-50);
  border: 1px solid var(--pink-200);
  border-radius: 8px;
  padding: var(--space-4);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.banner-content {
  flex: 1;
  color: var(--ink-900);
}

.banner-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-1);
  color: var(--ink-600);
  border-radius: 4px;
  min-height: 32px;
  min-width: 32px;
}

.banner-close:hover {
  background: var(--pink-200);
}

/* In-app alert styles (notification fallback) */
.in-app-alert {
  position: fixed;
  top: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  background: var(--green-600);
  color: white;
  padding: var(--space-4) var(--space-5);
  border-radius: 8px;
  font-size: var(--text-sm);
  font-weight: 500;
  z-index: 1001;
  max-width: 90vw;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  animation: slideDown 0.3s ease;
  cursor: pointer;
}

.in-app-alert:hover {
  background: #15803d;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-100%);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}
/* App Header Styles */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--pink-200);
}

.app-title {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--ink-900);
  margin: 0;
}

.app-icon {
  color: var(--green-600);
}

.install-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: var(--space-3) var(--space-4);
  background: var(--green-600);
  color: white;
  border: none;
  border-radius: 8px;
  font-family: var(--font-family);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.install-button:hover {
  background: #15803d;
}

.install-button:focus {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* Main Content */
.main-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* Section Styles */
.section-title {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--ink-900);
  margin: 0 0 var(--space-4) 0;
}

.section-icon {
  color: var(--green-600);
}

/* Placement Banner */
.placement-banner {
  background: var(--pink-50);
  border: 1px solid var(--pink-200);
  border-radius: 8px;
  padding: var(--space-4);
  margin-bottom: var(--space-4);
}

.banner-content {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.warning-icon {
  color: var(--pink-500);
  flex-shrink: 0;
  margin-top: 2px;
}

.banner-text {
  flex: 1;
  color: var(--ink-900);
  line-height: 1.5;
}

.link-button {
  background: none;
  border: none;
  color: var(--green-600);
  text-decoration: underline;
  cursor: pointer;
  font-size: inherit;
  padding: 0;
  margin-left: var(--space-2);
}

.link-button:hover {
  color: #15803d;
}

.link-button:focus {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Installation help link */
#installation-help-link {
  background: none;
  border: none;
  color: var(--green-600);
  text-decoration: underline;
  cursor: pointer;
  font-size: var(--text-sm);
  padding: var(--space-2);
  margin-left: var(--space-2);
  border-radius: 4px;
  transition: all 0.2s ease;
}

#installation-help-link:hover {
  color: #15803d;
  background: var(--green-50);
}

#installation-help-link:focus {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.dismiss-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-1);
  color: var(--ink-600);
  border-radius: 4px;
  min-height: 32px;
  min-width: 32px;
  flex-shrink: 0;
}

.dismiss-button:hover {
  background: var(--pink-200);
}

.dismiss-button:focus {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* Species Section */
.species-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.species-dropdown {
  width: 100%;
  min-height: 44px;
  padding: var(--space-3);
  border: 2px solid var(--pink-200);
  border-radius: 8px;
  font-family: var(--font-family);
  font-size: var(--text-base);
  background: var(--card);
  color: var(--ink-900);
  cursor: pointer;
}

.species-dropdown:focus {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.species-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  background: var(--green-50);
  border-radius: 8px;
  padding: var(--space-4);
}

.species-image {
  max-width: 100%;
  max-height: 180px;
  object-fit: contain;
}

.species-description {
  color: var(--ink-600);
  text-align: center;
  font-size: var(--text-sm);
}

/* Care Guide */
.care-guide-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.care-section {
  border: 1px solid var(--pink-200);
  border-radius: 8px;
  overflow: hidden;
}

.care-section-title {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--pink-50);
  cursor: pointer;
  font-weight: 500;
  color: var(--ink-900);
  min-height: 44px;
  list-style: none;
}

.care-section-title::-webkit-details-marker {
  display: none;
}

.care-section-title:hover {
  background: var(--pink-200);
}

.care-section-title:focus {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
}

.care-section-content {
  padding: var(--space-4);
  background: var(--card);
  color: var(--ink-600);
  line-height: 1.6;
}

/* Enhanced care guide content styles */
.care-content-section h4 {
  color: var(--ink-900);
  font-size: var(--text-lg);
  font-weight: 600;
  margin: 0 0 var(--space-3) 0;
  border-bottom: 2px solid var(--green-200);
  padding-bottom: var(--space-2);
}

.care-content-section h5 {
  color: var(--ink-900);
  font-size: var(--text-base);
  font-weight: 600;
  margin: var(--space-4) 0 var(--space-2) 0;
}

.care-content-section h6 {
  color: var(--green-600);
  font-size: var(--text-sm);
  font-weight: 600;
  margin: var(--space-2) 0 var(--space-1) 0;
}

.care-tips {
  list-style: none;
  padding: 0;
  margin: var(--space-3) 0;
}

.care-tips li {
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--pink-100);
  position: relative;
  padding-left: var(--space-5);
}

.care-tips li:last-child {
  border-bottom: none;
}

.care-tips li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: var(--space-2);
  color: var(--green-600);
  font-weight: bold;
}

.test-methods {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin: var(--space-3) 0;
}

.test-method {
  background: var(--green-50);
  padding: var(--space-4);
  border-radius: 8px;
  border-left: 4px solid var(--green-600);
}

.test-method h5 {
  margin: 0 0 var(--space-2) 0;
  color: var(--green-600);
  font-size: var(--text-base);
}

.test-method p {
  margin: 0;
  color: var(--ink-600);
  line-height: 1.5;
}

.species-specific {
  background: var(--pink-50);
  padding: var(--space-4);
  border-radius: 8px;
  margin: var(--space-4) 0;
  border-left: 4px solid var(--pink-500);
}

.species-tip {
  background: var(--card);
  padding: var(--space-3);
  border-radius: 6px;
  margin: var(--space-2) 0;
}

.species-tip p {
  margin: var(--space-2) 0;
  color: var(--ink-600);
  line-height: 1.5;
}

.species-tip p:first-child {
  margin-top: 0;
}

.species-tip p:last-child {
  margin-bottom: 0;
}

.species-tip strong {
  color: var(--ink-900);
  font-weight: 600;
}

.seasonal-guide {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin: var(--space-3) 0;
}

.season {
  background: var(--card);
  padding: var(--space-3);
  border-radius: 8px;
  border: 1px solid var(--green-200);
}

.season h5 {
  margin: 0 0 var(--space-2) 0;
  color: var(--green-600);
}

.season p {
  margin: 0;
  color: var(--ink-600);
}

.light-types,
.humidity-methods,
.pruning-types {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin: var(--space-3) 0;
}

.light-type,
.method,
.pruning-type {
  background: var(--card);
  padding: var(--space-3);
  border-radius: 8px;
  border: 1px solid var(--pink-200);
}

.light-type h5,
.method h5,
.pruning-type h5 {
  margin: 0 0 var(--space-2) 0;
  color: var(--pink-500);
}

.light-type p,
.method p,
.pruning-type p {
  margin: 0;
  color: var(--ink-600);
  line-height: 1.5;
}

.problem-signs {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin: var(--space-3) 0;
}

.problem {
  background: var(--pink-50);
  padding: var(--space-4);
  border-radius: 8px;
  border-left: 4px solid var(--pink-500);
}

.problem h5 {
  margin: 0 0 var(--space-2) 0;
  color: var(--pink-500);
}

.problem ul {
  margin: 0;
  padding-left: var(--space-4);
  color: var(--ink-600);
}

.timing-guide {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin: var(--space-3) 0;
}

.timing {
  background: var(--green-50);
  padding: var(--space-3);
  border-radius: 8px;
  border-left: 4px solid var(--green-600);
}

.timing h5 {
  margin: 0 0 var(--space-2) 0;
  color: var(--green-600);
}

.timing ul {
  margin: 0;
  padding-left: var(--space-4);
  color: var(--ink-600);
}

.repot-signs {
  background: var(--green-50);
  padding: var(--space-4);
  border-radius: 8px;
  margin: var(--space-3) 0;
}

.repot-signs h5 {
  margin: 0 0 var(--space-2) 0;
  color: var(--green-600);
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin: var(--space-3) 0;
}

.step {
  background: var(--card);
  padding: var(--space-3);
  border-radius: 8px;
  border: 1px solid var(--green-200);
  position: relative;
}

.step h5 {
  margin: 0 0 var(--space-2) 0;
  color: var(--green-600);
  font-size: var(--text-base);
}

.step p {
  margin: 0;
  color: var(--ink-600);
  line-height: 1.5;
}

.warning-box,
.emergency-box {
  background: var(--pink-50);
  border: 1px solid var(--pink-200);
  border-radius: 8px;
  padding: var(--space-4);
  margin: var(--space-4) 0;
}

.warning-box h5,
.emergency-box h5 {
  margin: 0 0 var(--space-2) 0;
  color: var(--pink-500);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.warning-box ul,
.emergency-box ol {
  margin: 0;
  padding-left: var(--space-4);
  color: var(--ink-600);
}

.tip-box {
  background: var(--green-50);
  border: 1px solid var(--green-200);
  border-radius: 8px;
  padding: var(--space-4);
  margin: var(--space-4) 0;
}

.tip-box h5 {
  margin: 0 0 var(--space-2) 0;
  color: var(--green-600);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.tip-box p {
  margin: 0;
  color: var(--ink-600);
  line-height: 1.5;
}

.problem-diagnosis {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin: var(--space-3) 0;
}

.problem-type {
  background: var(--card);
  border: 1px solid var(--pink-200);
  border-radius: 8px;
  padding: var(--space-4);
}

.problem-type h5 {
  margin: 0 0 var(--space-3) 0;
  color: var(--pink-500);
  font-size: var(--text-lg);
}

.symptoms {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-3) 0;
}

.symptoms li {
  padding: var(--space-1) 0;
  color: var(--ink-600);
  position: relative;
  padding-left: var(--space-4);
}

.symptoms li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--pink-500);
  font-weight: bold;
}

.treatment {
  background: var(--green-50);
  padding: var(--space-3);
  border-radius: 6px;
  border-left: 3px solid var(--green-600);
}

.treatment p {
  margin: 0;
  color: var(--ink-600);
  line-height: 1.5;
}

.pest-guide {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin: var(--space-3) 0;
}

.pest {
  background: var(--card);
  border: 1px solid var(--pink-200);
  border-radius: 8px;
  padding: var(--space-3);
}

.pest h5 {
  margin: 0 0 var(--space-2) 0;
  color: var(--pink-500);
}

.pest p {
  margin: var(--space-1) 0;
  color: var(--ink-600);
  line-height: 1.4;
}

.stress-signs {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin: var(--space-3) 0;
}

.stress-type {
  background: var(--card);
  border: 1px solid var(--green-200);
  border-radius: 8px;
  padding: var(--space-4);
}

.stress-type h5 {
  margin: 0 0 var(--space-2) 0;
  color: var(--green-600);
}

.stress-type ul {
  margin: var(--space-2) 0;
  padding-left: var(--space-4);
  color: var(--ink-600);
}

.stress-type p {
  margin: 0;
  color: var(--ink-600);
  line-height: 1.5;
  font-weight: 500;
}

/* Responsive adjustments for care guide */
@media (min-width: 768px) {
  .test-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
  }

  .seasonal-guide {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
  }

  .light-types,
  .humidity-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
  }

  .problem-signs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
  }

  .timing-guide {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
  }
}

/* Reminders Section */
.reminders-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.reminder-toggle {
  display: flex;
  align-items: center;
}

.toggle-label {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
  font-weight: 500;
  color: var(--ink-900);
}

.toggle-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  background-color: var(--pink-200);
  border-radius: 28px;
  transition: 0.3s;
  cursor: pointer;
}

.toggle-slider::before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  border-radius: 50%;
  transition: 0.3s;
}

.toggle-input:checked + .toggle-slider {
  background-color: var(--green-600);
}

.toggle-input:checked + .toggle-slider::before {
  transform: translateX(24px);
}

.toggle-input:focus + .toggle-slider {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.reminder-settings {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--green-50);
  border-radius: 8px;
}

.setting-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.setting-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-900);
}

.time-input,
.frequency-select {
  min-height: 44px;
  padding: var(--space-3);
  border: 2px solid var(--pink-200);
  border-radius: 8px;
  font-family: var(--font-family);
  font-size: var(--text-base);
  background: var(--card);
  color: var(--ink-900);
}

.time-input:focus,
.frequency-select:focus {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.test-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: var(--space-3) var(--space-4);
  background: var(--green-600);
  color: white;
  border: none;
  border-radius: 8px;
  font-family: var(--font-family);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  align-self: flex-start;
}

.test-button:hover {
  background: #15803d;
}

.test-button:focus {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.reminder-status {
  padding: var(--space-3);
  border-radius: 8px;
  font-size: var(--text-sm);
  text-align: center;
}

/* Journal Section */
.journal-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.care-tracking {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.tracking-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--green-50);
  border-radius: 8px;
}

.tracking-info {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex: 1;
}

.tracking-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.tracking-label {
  font-weight: 500;
  color: var(--ink-900);
  font-size: var(--text-sm);
}

.tracking-time {
  color: var(--ink-600);
  font-size: var(--text-xs);
}

.mark-done-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: var(--space-3) var(--space-4);
  background: var(--green-600);
  color: white;
  border: none;
  border-radius: 8px;
  font-family: var(--font-family);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.mark-done-button:hover {
  background: #15803d;
}

.mark-done-button:focus {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.notes-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.notes-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--ink-900);
  margin: 0;
}

.add-note {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.note-input {
  width: 100%;
  min-height: 88px;
  padding: var(--space-3);
  border: 2px solid var(--pink-200);
  border-radius: 8px;
  font-family: var(--font-family);
  font-size: var(--text-base);
  background: var(--card);
  color: var(--ink-900);
  resize: vertical;
}

.note-input:focus {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.add-note-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: var(--space-3) var(--space-4);
  background: var(--green-600);
  color: white;
  border: none;
  border-radius: 8px;
  font-family: var(--font-family);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  align-self: flex-start;
}

.add-note-button:hover {
  background: #15803d;
}

.add-note-button:focus {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.notes-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.note-item {
  background: var(--card);
  border: 1px solid var(--pink-200);
  border-radius: 8px;
  padding: var(--space-4);
  position: relative;
}

.note-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}

.note-time {
  color: var(--ink-600);
  font-size: var(--text-xs);
  flex-shrink: 0;
}

.delete-note-button {
  background: none;
  border: none;
  color: var(--pink-500);
  cursor: pointer;
  padding: var(--space-1);
  border-radius: 4px;
  min-height: 32px;
  min-width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.2s ease;
}

.delete-note-button:hover {
  background: var(--pink-50);
}

.delete-note-button:focus {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.note-text {
  color: var(--ink-900);
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.empty-notes {
  text-align: center;
  color: var(--ink-600);
  font-style: italic;
  padding: var(--space-4);
}

/* Reset Section */
.reset-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  text-align: center;
}

.reset-description {
  color: var(--ink-600);
  margin: 0;
  line-height: 1.6;
}

.reset-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: var(--space-3) var(--space-4);
  background: var(--pink-500);
  color: white;
  border: none;
  border-radius: 8px;
  font-family: var(--font-family);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  align-self: center;
}

.reset-button:hover {
  background: #db2777;
}

.reset-button:focus {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* iOS Install Banner */
.ios-install-banner {
  position: fixed;
  bottom: var(--space-4);
  left: var(--space-4);
  right: var(--space-4);
  background: var(--green-600);
  color: white;
  border-radius: 8px;
  padding: var(--space-4);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.ios-banner-content {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.ios-banner-title {
  font-size: var(--text-base);
  font-weight: 600;
  margin: 0 0 var(--space-2) 0;
}

.ios-banner-text {
  flex: 1;
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.5;
}

.inline-icon {
  display: inline;
  vertical-align: middle;
  margin: 0 2px;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: var(--space-4);
}

.modal-content {
  background: var(--card);
  border-radius: 16px;
  padding: var(--space-6);
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
}

.modal-title {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--ink-900);
  margin: 0;
}

.close-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  color: var(--ink-600);
  border-radius: 4px;
  min-height: 44px;
  min-width: 44px;
}

.close-button:hover {
  background: var(--pink-50);
}

.close-button:focus {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* Placement Modal Specific Styles */
.placement-diagram {
  background: var(--green-50);
  border-radius: 8px;
  padding: var(--space-4);
  margin-bottom: var(--space-4);
}

.placement-svg {
  width: 100%;
  height: auto;
  border-radius: 4px;
  background: white;
}

.placement-tips {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.placement-tips h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--ink-900);
  margin: 0;
  border-bottom: 2px solid var(--green-200);
  padding-bottom: var(--space-2);
}

.tip-section {
  background: var(--card);
  border: 1px solid var(--green-200);
  border-radius: 8px;
  padding: var(--space-4);
}

.tip-section h4 {
  font-size: var(--text-base);
  font-weight: 600;
  margin: 0 0 var(--space-3) 0;
  color: var(--ink-900);
}

.tip-section ul {
  margin: 0;
  padding-left: var(--space-4);
  color: var(--ink-600);
  line-height: 1.6;
}

.tip-section li {
  margin-bottom: var(--space-2);
}

.tip-section li:last-child {
  margin-bottom: 0;
}

.tip-section strong {
  color: var(--ink-900);
  font-weight: 600;
}

.emergency-section {
  background: var(--pink-50);
  border: 1px solid var(--pink-200);
  border-radius: 8px;
  padding: var(--space-4);
}

.emergency-section h4 {
  font-size: var(--text-base);
  font-weight: 600;
  margin: 0 0 var(--space-3) 0;
  color: var(--pink-500);
}

.emergency-section ol {
  margin: 0;
  padding-left: var(--space-4);
  color: var(--ink-600);
  line-height: 1.6;
}

.emergency-section li {
  margin-bottom: var(--space-2);
}

.emergency-section li:last-child {
  margin-bottom: 0;
}-space-4);
}

.placement-diagram {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-4);
}

.diagram-svg {
  max-width: 100%;
  height: auto;
}

.placement-tips h4 {
  margin: 0 0 var(--space-3) 0;
  color: var(--ink-900);
  font-weight: 600;
}

.placement-tips ul {
  margin: 0;
  padding-left: var(--space-5);
  color: var(--ink-600);
}

.placement-tips li {
  margin-bottom: var(--space-2);
  line-height: 1.5;
}

/* Toast Container */
.toast-container {
  position: fixed;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1001;
  pointer-events: none;
}

/* Button Group */
.button-group {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  align-items: center;
  margin-top: var(--space-4);
}

/* Utility Classes */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.icon {
  flex-shrink: 0;
  width: 1em;
  height: 1em;
  fill: currentColor;
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .species-content {
    flex-direction: row;
    align-items: flex-start;
  }

  .species-selector {
    flex: 1;
  }

  .species-image-container {
    flex: 1;
    min-height: 250px;
  }

  .tracking-item {
    flex-direction: row;
    align-items: center;
  }

  .add-note {
    flex-direction: row;
    align-items: flex-end;
  }

  .note-input {
    flex: 1;
  }

  .add-note-button {
    align-self: stretch;
  }
}
