/* Camera Capture - Mobile-Optimized Styles */

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #000;
  color: #fff;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
  position: fixed;
  touch-action: manipulation;
}

.container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
}

/* Capture Screen */
.capture-screen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 20px;
}

.capture-icon {
  font-size: 80px;
  margin-bottom: 30px;
}

/* Custom message section */
.message-container {
  display: none;
  max-width: 90%;
  margin-bottom: 24px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.message-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: #ffc107;
  background: rgba(255, 193, 7, 0.15);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.message-text {
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.95);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.capture-button {
  background: #667eea;
  color: white;
  border: none;
  border-radius: 16px;
  padding: 24px 48px;
  font-size: 24px;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
  min-height: 72px;
  min-width: 200px;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
  transition: all 0.2s;
}

.capture-button:active {
  transform: scale(0.95);
  background: #5568d3;
}

.success-message {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.15);
  border: 2px solid rgba(74, 222, 128, 0.3);
  padding: 16px 24px;
  border-radius: 12px;
  margin-bottom: 20px;
  max-width: 90%;
  text-align: center;
  font-size: 15px;
  line-height: 1.4;
  display: none;
}

.error-message {
  color: #ff4444;
  background: rgba(255, 68, 68, 0.1);
  padding: 16px 24px;
  border-radius: 12px;
  margin-top: 20px;
  max-width: 90%;
  text-align: center;
  font-size: 16px;
  display: none;
}

/* Upload Screen */
.upload-screen {
  display: none;
  justify-content: center;
  align-items: center;
  height: 100%;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255,255,255,0.2);
  border-top-color: #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.upload-text {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
}

.upload-error-message {
  display: none;
  background: rgba(220, 53, 69, 0.2);
  border: 2px solid #dc3545;
  border-radius: 12px;
  padding: 16px;
  color: #ff6b6b;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  max-width: 90%;
}

.upload-error-message.visible {
  display: block;
}

.button-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 500px;
}

.retry-button,
.new-photo-button {
  flex: 1;
  min-width: 160px;
  border: none;
  border-radius: 16px;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
  min-height: 72px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.2s;
}

.retry-button {
  background: #ffc107;
  color: #000;
}

.retry-button:active {
  transform: scale(0.95);
  background: #e0a800;
}

.new-photo-button {
  background: #dc3545;
  color: white;
}

.new-photo-button:active {
  transform: scale(0.95);
  background: #c82333;
}

.hidden {
  display: none !important;
}

/* File input */
.file-input {
  display: none;
}
