/* ================================================
   PLANT JOURNAL - Warm Earthy Theme
   Soft tans, sage greens, warm neutrals
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700&family=Quicksand:wght@400;500;600;700&display=swap');

:root {
  /* Primary Colors */
  --primary: #5D8A66;
  --primary-dark: #4A7152;
  --primary-light: #7BA584;
  --primary-pale: #D4E4D7;
  
  /* Status Colors */
  --success: #7BA584;
  --error: #C9605D;
  --warning: #D4A84B;
  
  /* Plant Status */
  --status-thriving: #5D8A66;
  --status-needs-care: #C9605D;
  --status-dormant: #8D7B6C;
  
  /* Background Colors - Warm Earthy Tones */
  --bg-page: #F5F1EB;
  --bg-widget: #EDE8E0;
  --bg-card: #FAF8F5;
  --bg-card-hover: #F5F1EB;
  
  /* Text Colors */
  --text-primary: #4A4540;
  --text-secondary: #6B635A;
  --text-muted: #9C9488;
  --text-white: #FAF8F5;
  
  /* Border & Shadow */
  --border-light: #DDD6CB;
  --border-focus: #5D8A66;
  --shadow-light: rgba(74, 69, 64, 0.08);
  --shadow-hover: rgba(93, 138, 102, 0.15);
  --shadow-card: rgba(74, 69, 64, 0.1);
  
  /* Badge Colors */
  --badge-houseplant: #6B9A8A;
  --badge-vegetable: #8AAF6A;
  --badge-succulent: #D4B896;
  --badge-terracotta: #C4896A;
  --badge-gold: #D4A84B;
  --badge-burgundy: #A66B7A;
  
  /* Gradients */
  --gradient-header: linear-gradient(135deg, #5D8A66 0%, #7BA584 100%);
  --gradient-accent: linear-gradient(135deg, #7BA584 0%, #9DB9A4 100%);
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(74, 69, 64, 0.08);
  --shadow-md: 0 4px 12px rgba(74, 69, 64, 0.1);
  --shadow-lg: 0 8px 24px rgba(74, 69, 64, 0.12);
  --shadow-glow: 0 0 16px rgba(93, 138, 102, 0.2);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  
  /* Border radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  
  /* Typography */
  --font-display: 'Quicksand', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ================================================
   BASE STYLES
   ================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Subtle pattern background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0 L30 60 M15 15 L30 30 M45 15 L30 30 M15 45 L30 30 M45 45 L30 30' stroke='%235D8A66' stroke-width='0.3' fill='none' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: -1;
}

/* ================================================
   TYPOGRAPHY
   ================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: 2rem; letter-spacing: -0.02em; }
h2 { font-size: 1.5rem; letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

p { margin-bottom: var(--space-md); }

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover { color: var(--primary-dark); }

/* ================================================
   LAYOUT
   ================================================ */

.app-container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar Navigation */
.sidebar {
  width: 260px;
  background: var(--bg-card);
  border-right: 1px solid var(--border-light);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  transition: transform var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border-light);
}

.logo {
  width: 48px;
  height: 48px;
  background: var(--gradient-header);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.nav-menu {
  list-style: none;
  flex: 1;
}

.nav-item {
  margin-bottom: var(--space-sm);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-weight: 600;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.nav-link:hover {
  background: var(--bg-widget);
  color: var(--text-primary);
}

.nav-link.active {
  background: var(--gradient-header);
  color: var(--text-white);
  box-shadow: var(--shadow-md);
}

.nav-link .icon {
  width: 20px;
  height: 20px;
  opacity: 0.8;
}

.nav-link.active .icon {
  opacity: 1;
}

/* Main Content Area */
.main-content {
  flex: 1;
  margin-left: 260px;
  padding: var(--space-xl);
  min-height: 100vh;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border-light);
}

.page-title {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.page-title h1 {
  font-size: 1.75rem;
  color: var(--text-primary);
}

/* ================================================
   SEARCH BAR
   ================================================ */

.search-container {
  position: relative;
  max-width: 400px;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  padding-left: 48px;
  background: var(--bg-card);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-icon {
  position: absolute;
  left: var(--space-lg);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-height: 320px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
}

.search-suggestions.active {
  display: block;
  animation: slideDown var(--transition-fast) ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.suggestion-item:hover {
  background: var(--bg-widget);
}

.suggestion-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
}

.suggestion-icon.plant { background: var(--primary-pale); color: var(--primary-dark); }
.suggestion-icon.material { background: #F5E6D3; color: #8A6A4A; }
.suggestion-icon.idea { background: #E8D5E0; color: #8A5A7A; }

.suggestion-text {
  flex: 1;
}

.suggestion-text strong {
  display: block;
  color: var(--text-primary);
}

.suggestion-text span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ================================================
   CARDS
   ================================================ */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.card:hover {
  border-color: var(--primary-pale);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
}

/* Plant Card */
.plant-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.plant-card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  background: var(--bg-widget);
}

.plant-card-placeholder {
  width: 100%;
  height: 180px;
  background: var(--gradient-accent);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  font-size: 3rem;
}

.plant-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
}

.plant-card-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.plant-card-species {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: var(--space-md);
}

.plant-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.plant-card-meta span {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.favorite-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1.25rem;
  transition: all var(--transition-fast);
  padding: var(--space-xs);
}

.favorite-btn:hover,
.favorite-btn.active {
  color: var(--error);
  transform: scale(1.1);
}

/* Status Badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-badge.wishlist { background: #E8D5E0; color: #8A5A7A; }
.status-badge.bought { background: #D5E0E8; color: #5A7A8A; }
.status-badge.planted { background: var(--primary-pale); color: var(--primary-dark); }
.status-badge.repotted { background: #E8DFD5; color: #8A6A4A; }
.status-badge.propagated { background: #D5E8E0; color: #4A7A6A; }
.status-badge.gifted { background: #E8D5D8; color: #8A5A60; }
.status-badge.sold { background: #E8E2D5; color: #7A6A4A; }
.status-badge.deceased { background: #DDD6CB; color: #6B5A4A; }
.status-badge.planning { background: #E8E2D5; color: #7A6A4A; }
.status-badge.shopping { background: #D5E0E8; color: #5A7A8A; }
.status-badge.in-progress { background: #E8DFD5; color: #8A6A4A; }
.status-badge.completed { background: var(--primary-pale); color: var(--primary-dark); }
.status-badge.on-hold { background: #DDD6CB; color: #6B5A4A; }

/* ================================================
   BUTTONS
   ================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--gradient-header);
  color: var(--text-white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--gradient-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 2px solid var(--border-light);
}

.btn-secondary:hover {
  background: var(--bg-widget);
  border-color: var(--primary-pale);
}

.btn-accent {
  background: linear-gradient(135deg, var(--error) 0%, #D4726F 100%);
  color: var(--text-white);
}

.btn-accent:hover {
  background: linear-gradient(135deg, #D4726F 0%, var(--error) 100%);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  background: var(--bg-widget);
  color: var(--text-primary);
}

.btn-sm {
  padding: var(--space-sm) var(--space-md);
  font-size: 0.85rem;
}

.btn-lg {
  padding: var(--space-lg) var(--space-xl);
  font-size: 1.1rem;
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
}

/* ================================================
   FORMS
   ================================================ */

.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  margin-bottom: var(--space-sm);
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--space-md);
  background: var(--bg-card);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(93, 138, 102, 0.15);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%239C9488' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-md) center;
  padding-right: calc(var(--space-lg) + 16px);
}

/* Star Rating */
.star-rating {
  display: flex;
  gap: var(--space-xs);
}

.star-rating .star {
  font-size: 1.25rem;
  color: var(--border-light);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.star-rating .star:hover,
.star-rating .star.active {
  color: var(--warning);
  transform: scale(1.1);
}

/* ================================================
   MODAL
   ================================================ */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(74, 69, 64, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9) translateY(20px);
  transition: transform var(--transition-base);
  box-shadow: var(--shadow-lg);
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-widget);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0;
  color: var(--text-primary);
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: var(--space-sm);
  line-height: 1;
  transition: color var(--transition-fast);
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: var(--space-lg);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-md);
  padding: var(--space-lg);
  border-top: 1px solid var(--border-light);
  background: var(--bg-widget);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

/* ================================================
   LIGHTBOX (Photo Gallery)
   ================================================ */

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-image {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.lightbox-close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  background: var(--bg-card);
  border: none;
  color: var(--text-primary);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lightbox-close:hover {
  background: var(--bg-widget);
  transform: scale(1.1);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-card);
  border: none;
  color: var(--text-primary);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lightbox-nav:hover {
  background: var(--bg-widget);
}

.lightbox-prev { left: var(--space-lg); }
.lightbox-next { right: var(--space-lg); }

.lightbox-caption {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  text-align: center;
  box-shadow: var(--shadow-md);
}

/* ================================================
   PHOTO GALLERY STRIP
   ================================================ */

.gallery-strip {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  padding: var(--space-sm) 0;
  scrollbar-width: thin;
  scrollbar-color: var(--border-light) transparent;
}

.gallery-strip::-webkit-scrollbar {
  height: 6px;
}

.gallery-strip::-webkit-scrollbar-track {
  background: transparent;
}

.gallery-strip::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 3px;
}

.gallery-thumbnail {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-fast);
}

.gallery-thumbnail:hover {
  border-color: var(--primary);
  transform: scale(1.05);
}

.gallery-thumbnail.cover-photo {
  border: 2px solid var(--primary);
  box-shadow: 0 0 8px rgba(93, 138, 102, 0.3);
}

.gallery-add {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  background: var(--bg-widget);
  border: 2px dashed var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.gallery-add:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-pale);
}

/* Gallery thumbnail wrapper for delete button positioning */
.gallery-thumbnail-wrapper {
  position: relative;
  flex-shrink: 0;
}

.photo-delete-btn {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--error);
  color: white;
  border: 2px solid var(--bg-card);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.gallery-thumbnail-wrapper:hover .photo-delete-btn {
  opacity: 1;
}

.photo-delete-btn:hover {
  background: #a33;
  transform: scale(1.1);
}

.cover-badge {
  position: absolute;
  bottom: 4px;
  left: 4px;
  background: var(--primary);
  color: white;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-transform: uppercase;
}

/* Timeline delete button */
.timeline-delete-btn {
  opacity: 0;
  transition: opacity var(--transition-fast);
  margin-top: var(--space-sm);
  padding: var(--space-xs) var(--space-sm) !important;
  font-size: 0.75rem !important;
}

.timeline-content:hover .timeline-delete-btn {
  opacity: 1;
}

/* Scrollable timeline container */
.timeline-container {
  max-height: 350px;
  overflow-y: auto;
  padding-right: var(--space-sm);
}

.timeline-container::-webkit-scrollbar {
  width: 6px;
}

.timeline-container::-webkit-scrollbar-track {
  background: transparent;
}

.timeline-container::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 3px;
}

.timeline-container::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Gallery strip scrollbar styling */
.gallery-strip {
  scrollbar-width: thin;
  scrollbar-color: var(--border-light) transparent;
}

.gallery-strip::-webkit-scrollbar {
  height: 6px;
}

.gallery-strip::-webkit-scrollbar-track {
  background: transparent;
}

.gallery-strip::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 3px;
}

.gallery-strip::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ================================================
   TIMELINE
   ================================================ */

.timeline {
  position: relative;
  padding-left: var(--space-xl);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--border-light) 100%);
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-lg);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-xl) + 4px);
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--bg-card);
}

.timeline-item.photo::before { background: var(--badge-burgundy); }
.timeline-item.material::before { background: var(--warning); }

.timeline-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
  font-weight: 600;
}

.timeline-content {
  background: var(--bg-widget);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

/* ================================================
   IDEAS BOARD
   ================================================ */

.ideas-board {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.idea-category {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.idea-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-light);
}

.idea-category-title {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.idea-category-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.idea-category-dot.green { background: var(--primary); }
.idea-category-dot.cream { background: #D4C8B8; }
.idea-category-dot.burgundy { background: var(--badge-burgundy); }
.idea-category-dot.sage { background: #9DB9A4; }
.idea-category-dot.terracotta { background: var(--badge-terracotta); }
.idea-category-dot.gold { background: var(--warning); }

.idea-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--space-md);
}

.idea-card {
  background: var(--bg-widget);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  border-left: 4px solid var(--primary);
  cursor: grab;
  transition: all var(--transition-fast);
}

.idea-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.idea-card.dragging {
  opacity: 0.5;
  cursor: grabbing;
}

.idea-card.green { border-left-color: var(--primary); }
.idea-card.cream { border-left-color: #D4C8B8; }
.idea-card.burgundy { border-left-color: var(--badge-burgundy); }
.idea-card.sage { border-left-color: #9DB9A4; }
.idea-card.terracotta { border-left-color: var(--badge-terracotta); }
.idea-card.gold { border-left-color: var(--warning); }

.idea-card-title {
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.idea-card-content {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.idea-card.completed {
  opacity: 0.6;
}

.idea-card.completed .idea-card-title {
  text-decoration: line-through;
}

.idea-card-actions {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border-light);
}

/* ================================================
   MATERIALS LIST
   ================================================ */

.materials-table {
  width: 100%;
  border-collapse: collapse;
}

.materials-table th,
.materials-table td {
  padding: var(--space-md);
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.materials-table th {
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--bg-widget);
}

.materials-table tr:hover td {
  background: var(--bg-widget);
}

.material-name {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.material-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--primary-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
}

.quantity-bar {
  width: 100px;
  height: 8px;
  background: var(--bg-widget);
  border-radius: 4px;
  overflow: hidden;
}

.quantity-bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 4px;
  transition: width var(--transition-base);
}

.quantity-bar-fill.low {
  background: var(--error);
}

/* ================================================
   EMPTY STATES
   ================================================ */

.empty-state {
  text-align: center;
  padding: var(--space-2xl);
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: var(--space-lg);
  opacity: 0.5;
}

.empty-state h3 {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.empty-state p {
  margin-bottom: var(--space-lg);
}

/* ================================================
   LOADING STATES
   ================================================ */

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-light);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.skeleton {
  background: linear-gradient(90deg, var(--bg-widget) 25%, var(--bg-card) 50%, var(--bg-widget) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ================================================
   TOAST NOTIFICATIONS
   ================================================ */

.toast-container {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  box-shadow: var(--shadow-lg);
  animation: slideIn var(--transition-base) ease;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--error); }
.toast.warning { border-left: 4px solid var(--warning); }

/* ================================================
   RESPONSIVE
   ================================================ */

@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
  }
  
  .sidebar.open {
    transform: translateX(0);
  }
  
  .main-content {
    margin-left: 0;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
}

@media (max-width: 768px) {
  .page-header {
    flex-direction: column;
    gap: var(--space-lg);
    align-items: flex-start;
  }
  
  .search-container {
    max-width: 100%;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
  
  .modal {
    width: 95%;
    border-radius: var(--radius-lg);
  }
}

/* Mobile Menu Button (hidden by default) */
.mobile-menu-btn {
  display: none;
  position: fixed;
  top: var(--space-md);
  left: var(--space-md);
  z-index: 101;
  width: 48px;
  height: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

/* ================================================
   UTILITY CLASSES
   ================================================ */

.hidden { display: none !important; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
