/* Modern, Warm Premium Theme for Dog Boarding Guide */
:root {
  --font-main: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Color Palette */
  --bg-primary: #FDFBF7;
  --bg-secondary: #F5EFEB;
  --bg-card: #FFFFFF;
  --text-primary: #2C2A29;
  --text-secondary: #6B6661;
  
  --accent-gold: #C5A059;
  --accent-gold-light: #F4EFE6;
  --accent-sage: #8F9E8B;
  --accent-sage-light: #EBF0EA;
  
  --color-turbo: #4A6E82;
  --color-turbo-light: #EBF1F5;
  --color-duke: #B87C5E;
  --color-duke-light: #F7EFEA;
  
  --border-color: #E6DFD9;
  --shadow-sm: 0 2px 8px rgba(184, 124, 94, 0.05);
  --shadow-md: 0 8px 24px rgba(184, 124, 94, 0.08);
  --shadow-lg: 0 16px 40px rgba(184, 124, 94, 0.12);
  
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  padding-bottom: 80px; /* Space for the bottom action bar */
}

/* Container */
.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 16px;
}

/* Header & Progress Tracker */
header {
  margin-bottom: 24px;
  padding-top: 8px;
}

.greeting-area {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.greeting-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.greeting-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Sticky Progress Card */
.progress-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  padding: 16px;
  border-radius: var(--border-radius-md);
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 12px;
  z-index: 100;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.progress-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
}

.progress-percent {
  font-size: 16px;
  font-weight: 800;
  color: var(--accent-gold);
}

.progress-bar-bg {
  height: 8px;
  background-color: var(--bg-secondary);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-gold) 0%, var(--accent-sage) 100%);
  border-radius: 4px;
  transition: width var(--transition-smooth);
}

/* Dog Profiles Section */
.dog-profiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}

.dog-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 12px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.dog-card:active {
  transform: scale(0.98);
}

.dog-card.turbo {
  border-top: 4px solid var(--color-turbo);
}

.dog-card.duke {
  border-top: 4px solid var(--color-duke);
}

.dog-photo-container {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 12px;
  border: 3px solid #FFF;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  cursor: pointer;
}

.dog-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.dog-photo-container:hover .dog-photo {
  transform: scale(1.1);
}

.dog-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 2px;
}

.dog-age {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  background-color: var(--bg-secondary);
  padding: 2px 8px;
  border-radius: 12px;
  margin-bottom: 10px;
}

.dog-diaper-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.turbo .dog-diaper-badge {
  background-color: var(--color-turbo-light);
  color: var(--color-turbo);
}

.duke .dog-diaper-badge {
  background-color: var(--color-duke-light);
  color: var(--color-duke);
}

/* Timeline/Schedule Section */
.schedule-section {
  position: relative;
  padding-left: 20px;
  margin-bottom: 32px;
}

.schedule-section::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background-color: var(--border-color);
  z-index: 1;
}

/* Timeline Item Card */
.timeline-item {
  position: relative;
  margin-bottom: 28px;
  z-index: 2;
}

.timeline-dot {
  position: absolute;
  left: -20px;
  top: 12px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--bg-primary);
  border: 3px solid var(--accent-gold);
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.timeline-item.completed .timeline-dot {
  background-color: var(--accent-sage);
  border-color: var(--accent-sage);
}

.time-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  color: #FFF;
  background-color: var(--text-primary);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.timeline-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), background-color var(--transition-smooth);
}

.timeline-item.completed .timeline-card {
  opacity: 0.85;
  border-color: var(--accent-sage-light);
  background-color: #FAFAF9;
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Tasks / Checklist inside Cards */
.task-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.task-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  background-color: var(--bg-primary);
  border-radius: var(--border-radius-sm);
  border: 1px solid transparent;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
  cursor: pointer;
}

.task-item:hover {
  background-color: var(--bg-secondary);
}

.task-checkbox-container {
  position: relative;
  display: inline-block;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  flex-shrink: 0;
}

.task-checkbox-container input {
  opacity: 0;
  width: 0;
  height: 0;
}

.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 22px;
  width: 22px;
  background-color: #FFF;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  transition: all var(--transition-fast);
}

.task-checkbox-container input:checked ~ .checkmark {
  background-color: var(--accent-sage);
  border-color: var(--accent-sage);
}

.checkmark::after {
  content: "";
  position: absolute;
  display: none;
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.task-checkbox-container input:checked ~ .checkmark::after {
  display: block;
}

.task-content {
  flex-grow: 1;
}

.task-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.task-checkbox-container input:checked ~ .task-content .task-title {
  text-decoration: line-through;
  color: var(--text-secondary);
}

.task-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Spacing and Details within tasks */
.sub-instructions {
  margin-top: 8px;
  padding-left: 8px;
  border-left: 2px solid var(--accent-gold);
  font-size: 13px;
  color: var(--text-primary);
  background-color: var(--accent-gold-light);
  padding: 8px;
  border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
}

.alert-item {
  border-left: 3px solid #D97706;
  background-color: #FFFBEB;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #92400E;
  margin-top: 6px;
}

/* Image Grids inside Task Descriptions */
.item-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.gallery-card {
  background-color: #FFF;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.gallery-card:hover {
  transform: translateY(-2px);
}

.gallery-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
}

.gallery-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 4px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.gallery-sublabel {
  font-size: 9px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* 5-Min Timer Widget */
.timer-widget {
  background-color: var(--accent-gold-light);
  border: 1px solid var(--accent-gold);
  border-radius: var(--border-radius-md);
  padding: 12px 16px;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.timer-info {
  display: flex;
  flex-direction: column;
}

.timer-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.timer-countdown {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  font-family: monospace;
}

.timer-btn {
  background-color: var(--accent-gold);
  color: #FFF;
  border: none;
  border-radius: var(--border-radius-sm);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
  box-shadow: 0 2px 6px rgba(197, 160, 89, 0.2);
}

.timer-btn:active {
  transform: scale(0.95);
}

.timer-btn.running {
  background-color: #D97706;
}

/* Tips & Reminders Card */
.tips-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  margin-top: 8px;
  margin-bottom: 24px;
}

.tips-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
}

.tips-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tips-list li {
  font-size: 13px;
  color: var(--text-secondary);
  position: relative;
  padding-left: 18px;
}

.tips-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--accent-gold);
}

/* Quick Actions / Reset Floating Bar */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-color);
  padding: 12px 16px;
  display: flex;
  justify-content: center;
  z-index: 101;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
}

.reset-btn {
  background-color: var(--text-primary);
  color: #FFF;
  border: none;
  border-radius: var(--border-radius-sm);
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.reset-btn:active {
  transform: scale(0.95);
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  max-width: 90%;
  max-height: 70%;
  border-radius: var(--border-radius-md);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  object-fit: contain;
  transition: transform var(--transition-smooth);
  transform: scale(0.9);
}

.lightbox.active .lightbox-content {
  transform: scale(1);
}

.lightbox-caption {
  color: #FFF;
  margin-top: 16px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}

.lightbox-subcaption {
  color: #A39E99;
  font-size: 13px;
  margin-top: 4px;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: rgba(255,255,255,0.2);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Animations */
@keyframes pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.pop-animation {
  animation: pop 0.3s ease-in-out;
}
