* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

#videoFeed {
  transform: scaleX(-1);
}

#overlayCanvas {
  transform: scaleX(-1);
}

.nav-btn {
  transition: all 0.2s ease;
}

.nav-btn:hover {
  opacity: 0.9;
}

#faceGuide {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.8; }
}

#statusDot {
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

#historyList::-webkit-scrollbar {
  width: 4px;
}

#historyList::-webkit-scrollbar-track {
  background: #374151;
}

#historyList::-webkit-scrollbar-thumb {
  background: #6b7280;
  border-radius: 2px;
}

button:disabled {
  cursor: not-allowed;
}

.pose-icon {
  font-size: 14px;
  transition: color 0.3s ease;
}

#poseIndicator {
  transition: border-color 0.3s ease;
}

#poseReadyBadge span {
  animation: readyPulse 1.5s infinite;
}

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

#faceGuide > div {
  transition: all 0.3s ease;
}

#captureBtn:not(:disabled) {
  animation: captureReady 2s infinite;
}

@keyframes captureReady {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}

.btn-capture-anim {
  animation: btnCapture 0.3s ease-out;
}

@keyframes btnCapture {
  0% { transform: scale(1); }
  30% { transform: scale(0.95); }
  60% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

.btn-nav-anim {
  animation: btnNav 0.2s ease-out;
}

@keyframes btnNav {
  0% { transform: scale(1); }
  50% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

.capture-success {
  background-color: #059669 !important;
  animation: captureSuccessPulse 0.5s ease-out;
}

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

.copy-success {
  background-color: #059669 !important;
  animation: copySuccess 0.3s ease-out;
}

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

#langSwitcher {
  cursor: pointer;
  transition: all 0.2s ease;
}

#langSwitcher:hover {
  background-color: #4b5563;
}

#copyDataBtn {
  transition: all 0.2s ease;
}

#copyDataBtn:hover {
  transform: translateY(-1px);
}

#voiceToggle {
  font-size: 18px;
  transition: all 0.2s ease;
}

#voiceToggle:hover {
  background-color: #4b5563;
}

#toast {
  animation: slideUp 0.3s ease-out;
}

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

input:focus {
  outline: none;
  border-color: #10b981;
}

.modal-overlay {
  animation: fadeIn 0.2s ease-out;
}

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

.settings-section {
  border-bottom: 1px solid #374151;
  padding: 12px 0;
}

.settings-section:last-child {
  border-bottom: none;
}

.animate-pulse {
  animation: pulse 1.5s infinite;
}

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