/* Posture Pal Dashboard Styles */
/* V2: Modern, clean, and user-friendly UI overhaul */

:root {
  --primary-green: #22c55e;
  --primary-green-dark: #16a34a;
  --danger-red: #ef4444;
  --danger-red-dark: #dc2626;
  --warning-orange: #f59e0b;
  --info-blue: #3b82f6;
  
  --bg-primary: #020617; /* Deeper space blue */
  --bg-secondary: #0f172a; /* Slate blue */
  --bg-tertiary: #1e293b;
  --bg-card: rgba(15, 23, 42, 0.5); /* Semi-transparent card bg */
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #475569;

  --gold: #FFD700;
  
  --border-color: rgba(51, 65, 85, 0.7);
  --border-color-hover: rgba(71, 85, 105, 0.9);
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

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

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

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

/* Header */
.header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.logo h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-green);
  margin: 0;
}

.tagline {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 400;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: all 0.3s ease;
}

.status-dot.active {
  background: var(--primary-green);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
  animation: pulse 2s infinite;
}

.status-dot.slouching {
  background: var(--danger-red);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

/* Main Content */
.main-content {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  align-items: start; 
}

/* Video Column */
.video-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 100px; /* Adjust based on header height + padding */
}

.video-container {
  position: relative;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  aspect-ratio: 16/9;
  box-shadow: var(--shadow-lg);
}

#webcam, #poseCanvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

#poseCanvas {
  pointer-events: none;
  z-index: 2;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  pointer-events: none;
}

.posture-status {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  font-size: 16px;
}

.posture-status.good {
  background: rgba(34, 197, 94, 0.85);
  border-color: rgba(34, 197, 94, 0.9);
  color: #ffffff;
}

.posture-status.slouching {
  background: rgba(239, 68, 68, 0.85);
  border-color: rgba(239, 68, 68, 0.9);
  color: #ffffff;
  animation: shake 0.5s ease-in-out;
}

.status-icon {
  font-size: 20px;
}

.live-tips {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(245, 158, 11, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(245, 158, 11, 0.9);
  border-radius: 8px;
  color: #ffffff;
  font-size: 14px;
  animation: slideUp 0.3s ease-out;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.tip-icon {
  font-size: 16px;
}

.video-border {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 4px solid transparent;
  border-radius: 12px;
  transition: border-color 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.video-border.good {
  border-color: var(--primary-green);
  box-shadow: inset 0 0 20px rgba(34, 197, 94, 0.2);
}

.video-border.slouching {
  border-color: var(--danger-red);
  box-shadow: inset 0 0 20px rgba(239, 68, 68, 0.2);
  animation: borderPulse 1s infinite;
}

.video-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.posture-angle {
  margin-left: auto;
  text-align: right;
}

.angle-label {
  font-size: 12px;
  color: var(--text-muted);
  display: block;
}

.angle-value {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-green);
}

/* Stats Column */
.stats-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-height: calc(100vh - 100px); /* Adjust based on header height + padding */
  overflow-y: auto;
  padding-right: 10px; /* Space for the scrollbar */
}

.stats-column::-webkit-scrollbar {
  width: 6px;
}
.stats-column::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: 3px;
}
.stats-column::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 3px;
}
.stats-column::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}


.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.stat-card {
  padding: 1.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card:hover {
  background: var(--bg-tertiary);
  border-color: var(--border-color-hover);
  transform: translateY(-2px);
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-green);
  margin-bottom: 0.5rem;
}

.stat-value.wellness-score {
    color: var(--gold);
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.stat-change {
  font-size: 12px;
  color: var(--text-muted);
}

/* Level Section Styles */
.level-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

.level-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1rem;
}

.level-header h3 {
    color: var(--text-primary);
    font-size: 18px;
    margin: 0;
}

.level-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--gold);
}

.progress-bar-container {
    width: 100%;
    height: 10px;
    background: var(--bg-tertiary);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: var(--gold);
    border-radius: 5px;
    transition: width 0.5s ease-out;
}

.level-progress-text {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: right;
    display: block;
}

/* Chart Section */
.chart-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.chart-section h3 {
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-size: 18px;
  width: 100%;
  text-align: center;
}

.chart-container {
  position: relative;
  width: 100%;
  height: 200px;
  margin-bottom: 1rem;
}

.chart-legend {
  display: flex;
  justify-content: flex-end;
  gap: 1.5rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.legend-color.good {
  background: var(--primary-green);
}

.legend-color.slouch {
  background: var(--danger-red);
}

/* Eye Break Section */
.eye-break-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
}

.eye-break-section h3 {
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-size: 18px;
}

.timer-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
}

.timer-circle {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 1rem;
}

.timer-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.timer-bg {
  fill: none;
  stroke: var(--bg-tertiary);
  stroke-width: 3;
}

.timer-progress {
  fill: none;
  stroke: var(--info-blue);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 283;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear;
}

.timer-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  font-weight: 600;
  color: var(--info-blue);
}

.timer-description {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
}

.eye-break-controls {
  text-align: center;
}

/* Settings Section */
.settings-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
}

.settings-section h3 {
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-size: 18px;
}

.settings-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Toggle Switch */
.toggle-switch {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-secondary);
}

.toggle-switch input {
  display: none;
}

.toggle-slider {
  position: relative;
  width: 44px;
  height: 24px;
  background: var(--bg-tertiary);
  border-radius: 24px;
  transition: background 0.3s ease;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--primary-green);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
  background: transparent;
}

.btn-primary {
  background: var(--primary-green);
  color: var(--bg-primary);
  font-weight: 600;
}

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

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary.stop {
  background: var(--danger-red);
  color: white;
}

.btn-primary.stop:hover {
  background: var(--danger-red-dark);
}

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  background: var(--bg-tertiary);
  border-color: var(--border-color-hover);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  background: var(--bg-tertiary);
  color: var(--text-muted);
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease-out;
}

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease-out;
}

.modal-header {
  padding: 2rem 2rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
  font-size: 24px;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.modal-header p {
  color: var(--text-secondary);
  font-size: 16px;
}

.modal-content {
  padding: 2rem;
}

.modal-footer {
  padding: 1rem 2rem 2rem;
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  border-top: 1px solid var(--border-color);
}

/* Calibration Modal */
.calibration-steps {
  margin-bottom: 2rem;
}

.step {
  display: none;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.step.active {
  border-color: var(--primary-green);
  background: rgba(34, 197, 94, 0.1);
  display: flex;
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  flex-shrink: 0;
}

.step.active .step-number {
  background: var(--primary-green);
  color: white;
}

.step-content h3 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 16px;
}

.step-content p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

.baseline-display {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--bg-tertiary);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  text-align: center;
}

.baseline-display strong {
  color: var(--primary-green);
  font-size: 1.2em;
}

.countdown {
  font-size: 48px;
  font-weight: 700;
  color: var(--primary-green);
  text-align: center;
  margin-top: 1rem;
  animation: countdownPulse 1s infinite;
}

.modal-video {
  position: relative;
  background: var(--bg-primary);
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16/9;
  margin-bottom: 1rem;
}

#calibrationVideo, #calibrationCanvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

#calibrationCanvas {
  pointer-events: none;
  z-index: 2;
}

.skeleton-status {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  text-align: center;
  z-index: 3;
}

.skeleton-status .status-text {
  padding: 8px 16px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--border-color);
}

.skeleton-status.detected .status-text {
  background: rgba(34, 197, 94, 0.85);
  border-color: rgba(34, 197, 94, 0.9);
  color: #ffffff;
}

/* Eye Break Modal */
.eye-break-modal {
  max-width: 500px;
}

.break-timer {
  text-align: center;
  margin: 2rem 0;
}

.break-countdown {
  font-size: 72px;
  font-weight: 700;
  color: var(--info-blue);
  margin-bottom: 0.5rem;
  animation: countdownPulse 1s infinite;
}

.break-tips {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.break-tips h4 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 16px;
}

.break-tips ul {
  list-style: none;
  color: var(--text-secondary);
}

.break-tips li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 14px;
  line-height: 1.4;
}

.break-tips li::before {
  content: '•';
  color: var(--info-blue);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Guide Modal */
.guide-content {
  display: grid;
  gap: 1.5rem;
}

.guide-section {
  padding: 1.5rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.guide-section h4 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.guide-section ul {
  list-style: none;
  color: var(--text-secondary);
}

.guide-section li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 14px;
  line-height: 1.5;
}

.guide-section li::before {
  content: '✓';
  color: var(--primary-green);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Achievements Modal Styles */
#achievementsGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.achievement-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
}

.achievement-card.unlocked {
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.achievement-icon {
    font-size: 48px;
    margin-bottom: 1rem;
    filter: grayscale(100%);
    opacity: 0.4;
    transition: all 0.3s ease;
}

.achievement-card.unlocked .achievement-icon {
    filter: grayscale(0%);
    opacity: 1;
    color: var(--gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.achievement-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.achievement-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.achievement-card.unlocked .achievement-title {
    color: var(--gold);
}

/* Toasts (for achievements and level ups) */
.achievement-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(200%);
    background: var(--bg-tertiary);
    border: 1px solid var(--gold);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 2000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    transition: transform 0.5s cubic-bezier(0.215, 0.610, 0.355, 1);
}

.achievement-toast.show {
    transform: translateX(-50%) translateY(0);
}

.toast-icon {
    font-size: 24px;
}

.toast-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.toast-desc {
    font-size: 14px;
    color: var(--text-secondary);
}


/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shake {
  0%, 100% { transform: translateX(-50%) translateX(0); }
  25% { transform: translateX(-50%) translateX(-2px); }
  75% { transform: translateX(-50%) translateX(2px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes borderPulse {
  0%, 100% { border-color: var(--danger-red); }
  50% { border-color: transparent; }
}

@keyframes countdownPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

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

/* Responsive Design */
@media (max-width: 1200px) {
  .main-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .stats-column {
    order: -1;
    max-height: none; /* Remove height constraint on smaller screens */
    overflow-y: visible;
  }
  
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .main-content {
    padding: 1rem;
  }
  
  .header-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .video-controls {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .posture-angle {
    margin: 0;
    text-align: center;
  }
  
  .modal {
    width: 95%;
    max-height: 95vh;
  }
  
  .modal-content {
    padding: 1rem;
  }
  
  .modal-footer {
    flex-direction: column;
  }
  
  .break-countdown {
    font-size: 48px;
  }
  
  .countdown {
    font-size: 36px;
  }
}

.btn-primary.stop:hover {
  background: var(--danger-red-dark);
}

.btn-danger {
    background: var(--danger-red);
    color: white;
}

.btn-danger:hover {
    background: var(--danger-red-dark);
    transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
}
.settings-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.setting-item {
    margin-top: 1.5rem;
    text-align: center;
}

/* Toggle Switch */
.toggle-switch {
  display: flex;}

  .legend-color.slouch {
  background: var(--danger-red);
}

.chart-description {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 1rem;
}

.shepherd-element {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  max-width: 350px;
}

.shepherd-header {
  background: var(--bg-secondary);
  padding: 1rem 1.5rem;
}

.shepherd-title {
  color: var(--primary-green);
  font-weight: 600;
}

.shepherd-cancel-icon {
  color: var(--text-muted);
}
.shepherd-cancel-icon:hover {
  color: var(--text-secondary);
}

.shepherd-text {
  padding: 1.5rem;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.shepherd-footer {
  padding: 0 1.5rem 1.5rem;
  display: flex;
  justify-content: flex-end;
}

.shepherd-button {
  background: var(--primary-green);
  color: var(--bg-primary);
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 500;
  transition: background 0.2s ease;
}

.shepherd-button:not(:disabled):hover {
  background: var(--primary-green-dark);
}

.shepherd-button.shepherd-button-secondary {
  background: var(--bg-secondary);
  color: var(--text-secondary);
}

.shepherd-button.shepherd-button-secondary:not(:disabled):hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.shepherd-arrow::before {
  background-color: var(--bg-tertiary);
}


/* Eye Break Section */
.eye-break-section {
  background: var(--bg-secondary);}

@media (max-width: 480px) {
  .header-content {
    padding: 0.5rem 0;
  }
  
  .logo h1 {
    font-size: 20px;
  }
  
  .tagline {
    display: none;
  }
  
  .stats-grid .stat-card {
    padding: 1rem;
  }
  
  .stat-value {
    font-size: 1.5rem;
  }
  
  .chart-container {
    height: 150px;
  }
  
  .timer-circle {
    width: 100px;
    height: 100px;
  }
  
  .timer-text {
    font-size: 20px;
  }
}


