/* Video Recorder Component Styles */

.vr-wrapper {
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  padding: 1.25rem;
  background: #f9fafb;
  text-align: center;
}

.vr-preview-area {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: 0 auto 1rem;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
}

.vr-preview-area video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vr-live {
  transform: scaleX(-1);
}

.vr-timer {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #374151;
}

.vr-timer-recording {
  color: #dc2626;
}

.vr-timer-recording .vr-timer-icon {
  animation: vr-blink 1s ease-in-out infinite;
}

@keyframes vr-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.vr-controls {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.vr-btn {
  padding: 0.65rem 1.5rem;
  border: none;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}

.vr-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.vr-btn-start {
  background: #2563eb;
  color: #fff;
}

.vr-btn-start:hover:not(:disabled) {
  background: #1d4ed8;
}

.vr-btn-stop {
  background: #dc2626;
  color: #fff;
}

.vr-btn-stop:hover:not(:disabled) {
  background: #b91c1c;
}

.vr-btn-retake {
  background: #e5e7eb;
  color: #374151;
}

.vr-btn-retake:hover:not(:disabled) {
  background: #d1d5db;
}

.vr-btn-submit {
  background: #16a34a;
  color: #fff;
}

.vr-btn-submit:hover:not(:disabled) {
  background: #15803d;
}

.vr-retake-info {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.vr-status {
  font-size: 0.9rem;
  min-height: 1.4em;
  color: #16a34a;
}

.vr-status-error {
  color: #dc2626;
}

.vr-unsupported {
  padding: 1.5rem;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  border-radius: 8px;
  font-size: 0.95rem;
}
