/* ====================================
   Remain Face Analysis - Premium Styles
   ==================================== */

/* CSS Variables */
:root {
  /* Colors */
  --primary: #6366f1;
  --primary-light: #818cf8;
  --primary-dark: #4f46e5;
  --secondary: #ec4899;
  --accent: #14b8a6;
  --success: #22c55e;
  --warning: #f59e0b;
  --error: #ef4444;

  /* Dark Theme */
  --bg-dark: #0a0a1a;
  --bg-card: rgba(30, 30, 50, 0.8);
  --bg-glass: rgba(255, 255, 255, 0.05);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.5);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
  --gradient-dark: linear-gradient(180deg, #0a0a1a 0%, #1a1a2e 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 50%;

  /* Shadows */
  --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.4);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 300ms ease;
  --transition-slow: 500ms ease;
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Tajawal', sans-serif;
  background: var(--gradient-dark);
  color: var(--text-primary);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  direction: rtl;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Screens */
.screen {
  position: fixed;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg);
  background: var(--gradient-dark);
  z-index: 1;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.screen.active {
  display: flex;
  opacity: 1;
  z-index: 10;
}

/* Splash Screen */
.splash-content {
  text-align: center;
  max-width: 400px;
  animation: fadeInUp 0.8s ease;
}

.logo-container {
  position: relative;
  margin-bottom: var(--spacing-xl);
}

.logo-glow {
  position: absolute;
  width: 150px;
  height: 150px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  filter: blur(60px);
  opacity: 0.5;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 3s ease-in-out infinite;
}

.logo-text {
  font-size: 3.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.logo-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-top: var(--spacing-xs);
}

.splash-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
}

.splash-description {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: var(--spacing-xl);
}

.privacy-note {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: var(--spacing-lg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-xl);
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-normal);
  min-width: 200px;
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.6);
}

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

.btn-secondary {
  background: var(--bg-glass);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-voice {
  background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
  color: white;
  box-shadow: 0 0 30px rgba(20, 184, 166, 0.4);
}

.btn-voice:hover {
  box-shadow: 0 0 40px rgba(20, 184, 166, 0.6);
  transform: translateY(-2px);
}

.btn-glow {
  animation: btnGlow 2s ease-in-out infinite;
}

.btn-icon {
  font-size: 1.2rem;
}

/* Permission Screen */
.permission-content {
  text-align: center;
  max-width: 350px;
  animation: fadeInUp 0.5s ease;
}

.permission-icon {
  font-size: 5rem;
  margin-bottom: var(--spacing-lg);
  animation: bounce 2s ease-in-out infinite;
}

.permission-content h2 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-md);
}

.permission-content p {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xl);
  line-height: 1.6;
}

/* Camera Screen */
.camera-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

#camera-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
  /* Mirror front camera */
}

#face-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: scaleX(-1);
  /* Mirror to match video */
  pointer-events: none;
}

.capture-flash {
  position: absolute;
  inset: 0;
  background: white;
  opacity: 0;
  pointer-events: none;
  transition: opacity 100ms ease;
}

.capture-flash.active {
  opacity: 1;
  animation: flash 300ms ease;
}

.camera-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--spacing-lg);
  pointer-events: none;
}

.camera-overlay>* {
  pointer-events: auto;
}

/* Progress Indicator */
.progress-container {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-bar {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
  transition: width var(--transition-normal);
}

.progress-text {
  font-weight: 700;
  font-size: 1.1rem;
  min-width: 40px;
  text-align: center;
}

/* Pose Guidance */
.pose-guide {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-align: center;
}

.pose-icon {
  font-size: 4rem;
  margin-bottom: var(--spacing-md);
  animation: float 3s ease-in-out infinite;
}

.pose-instruction {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.pose-status {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--warning);
  animation: blink 1s ease-in-out infinite;
}

.pose-status.ready .status-dot {
  background: var(--success);
  animation: none;
}

.pose-status.capturing .status-dot {
  background: var(--primary);
  animation: pulse 0.5s ease-in-out infinite;
}

/* Captured Poses Indicators */
.poses-captured {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pose-dot {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  font-size: 1.2rem;
  opacity: 0.4;
  transition: all var(--transition-normal);
}

.pose-dot.captured {
  opacity: 1;
  background: var(--success);
  animation: popIn 0.3s ease;
}

.pose-dot.current {
  opacity: 1;
  background: var(--primary);
  animation: pulse 1s ease-in-out infinite;
}

/* Review Screen */
.review-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.review-header h2 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
}

.review-header p {
  color: var(--text-secondary);
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
  width: 100%;
  max-width: 400px;
  margin-bottom: var(--spacing-xl);
}

.review-item {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background: var(--bg-card);
  border: 2px solid transparent;
  transition: all var(--transition-normal);
}

.review-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-item .pose-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--spacing-xs);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  font-size: 0.75rem;
  text-align: center;
}

.review-actions {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  width: 100%;
  max-width: 300px;
}

/* Loading Screen */
.loading-content {
  text-align: center;
  animation: fadeInUp 0.5s ease;
}

.ai-loader {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto var(--spacing-xl);
}

.ai-brain {
  font-size: 4rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: float 2s ease-in-out infinite;
}

.ai-pulse {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-full);
  border: 3px solid var(--primary);
  animation: radarPulse 2s ease-out infinite;
}

.loading-content h2 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-md);
}

.loading-content p {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
}

.loading-dots {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
}

.loading-dots span {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--primary);
  animation: loadingDot 1.4s ease-in-out infinite;
}

.loading-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

/* Results Screen */
#results-screen {
  padding-top: var(--spacing-xl);
  justify-content: flex-start;
  overflow-y: auto;
}

.results-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  width: 100%;
}

.results-header h2 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-md);
}

.gender-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--bg-glass);
  border-radius: var(--radius-lg);
  font-size: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.results-content {
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  padding-bottom: 180px;
  /* Space for fixed buttons at bottom */
}

/* Problem Cards */
.problem-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  animation: fadeInUp 0.5s ease;
}

.problem-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.problem-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  font-size: 1.5rem;
}

.problem-title {
  flex: 1;
}

.problem-title h3 {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-xs);
}

.problem-category {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.severity-badge {
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.severity-mild {
  background: rgba(34, 197, 94, 0.2);
  color: var(--success);
}

.severity-moderate {
  background: rgba(245, 158, 11, 0.2);
  color: var(--warning);
}

.severity-severe {
  background: rgba(239, 68, 68, 0.2);
  color: var(--error);
}

.recommendation-box {
  background: var(--bg-glass);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  margin-top: var(--spacing-md);
  border-right: 3px solid var(--accent);
}

.recommendation-box h4 {
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: var(--spacing-sm);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.recommendation-box p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.recommendation-details {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-sm);
  flex-wrap: wrap;
}

.rec-detail {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.results-actions {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--spacing-lg);
  background: linear-gradient(transparent, var(--bg-dark) 30%);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  align-items: center;
  z-index: 50;
  /* Ensure buttons are above content but below modals */
}

/* No Problems State */
.no-problems {
  text-align: center;
  padding: var(--spacing-2xl);
}

.no-problems-icon {
  font-size: 4rem;
  margin-bottom: var(--spacing-lg);
}

.no-problems h3 {
  font-size: 1.3rem;
  margin-bottom: var(--spacing-md);
  color: var(--success);
}

.no-problems p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 100;
  padding: var(--spacing-lg);
}

.modal.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: var(--bg-card);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  width: 100%;
  max-width: 500px;
  max-height: 80vh;
  overflow: hidden;
  position: relative;
  animation: slideUp 0.3s ease;
}

.modal-close {
  position: absolute;
  top: var(--spacing-md);
  left: var(--spacing-md);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-glass);
  border: none;
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 1;
}

/* Voice Modal */
.voice-modal-content {
  display: flex;
  flex-direction: column;
  height: 80vh;
}

.voice-assistant-header {
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-lg) var(--spacing-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.assistant-avatar {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  font-size: 2.5rem;
}

.voice-assistant-header h3 {
  font-size: 1.2rem;
  margin-bottom: var(--spacing-xs);
}

.voice-assistant-header p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.chat-message {
  max-width: 85%;
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  animation: fadeInUp 0.3s ease;
}

.chat-message.user {
  background: var(--primary);
  align-self: flex-start;
  border-bottom-right-radius: var(--spacing-xs);
}

.chat-message.assistant {
  background: var(--bg-glass);
  align-self: flex-end;
  border-bottom-left-radius: var(--spacing-xs);
}

/* Input Section */
.input-section {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--bg-card);
}

/* Text Input Container */
.text-input-container {
  display: flex;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-lg);
  align-items: center;
}

.text-input {
  flex: 1;
  padding: var(--spacing-md);
  background: var(--bg-glass);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: all var(--transition-normal);
}

.text-input:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

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

.send-btn {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 1.3rem;
  transition: all var(--transition-normal);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.send-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
}

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

/* Input Separator */
.input-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-sm) var(--spacing-lg);
  position: relative;
}

.input-separator::before,
.input-separator::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.input-separator span {
  padding: 0 var(--spacing-md);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.voice-controls {
  padding: var(--spacing-lg);
  text-align: center;
}

.mic-btn {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  cursor: pointer;
  margin: 0 auto var(--spacing-md);
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-glow);
}

.mic-btn:hover {
  transform: scale(1.05);
}

.mic-btn.listening {
  animation: pulseGlow 1s ease-in-out infinite;
  background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
}

.mic-icon {
  font-size: 2rem;
}

.mic-text {
  font-size: 0.6rem;
  color: white;
}

.voice-status {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Toast */
.toast-container {
  position: fixed;
  top: var(--spacing-lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.toast {
  padding: var(--spacing-md) var(--spacing-lg);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  animation: slideDown 0.3s ease, fadeOut 0.3s ease 2.7s;
  white-space: nowrap;
}

.toast.success {
  border-color: var(--success);
}

.toast.error {
  border-color: var(--error);
}

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

  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translate(-50%, -20px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

@keyframes flash {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@keyframes popIn {
  0% {
    transform: scale(0);
  }

  70% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes radarPulse {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }

  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

@keyframes loadingDot {

  0%,
  80%,
  100% {
    transform: scale(0.6);
    opacity: 0.5;
  }

  40% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes btnGlow {

  0%,
  100% {
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.4);
  }

  50% {
    box-shadow: 0 0 50px rgba(99, 102, 241, 0.7);
  }
}

@keyframes pulseGlow {

  0%,
  100% {
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.4);
  }

  50% {
    box-shadow: 0 0 50px rgba(239, 68, 68, 0.8);
  }
}

/* Responsive */
@media (max-width: 380px) {
  :root {
    font-size: 14px;
  }

  .poses-captured {
    gap: var(--spacing-sm);
  }

  .pose-dot {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
}

/* Safe area for notched devices */
@supports (padding-top: env(safe-area-inset-top)) {
  .camera-overlay {
    padding-top: calc(var(--spacing-lg) + env(safe-area-inset-top));
    padding-bottom: calc(var(--spacing-lg) + env(safe-area-inset-bottom));
  }

  .results-actions {
    padding-bottom: calc(var(--spacing-lg) + env(safe-area-inset-bottom));
  }
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}