:root {
  --primary: #4da3ff;
  --success: #3fb950;
  --bg: #121212;
  --card: #1e1e1e;
  --text: #e0e0e0;
  --border: #333333;
}

body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; background-color: var(--bg); color: var(--text); margin: 0; padding: 0; height: 100vh; display: flex; flex-direction: column; }
.screen { display: none; flex-direction: column; height: 100%; }
.screen.active { display: flex; }
.header { background: var(--card); padding: 16px; text-align: center; border-bottom: 1px solid var(--border); box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.header h2 { margin: 0; font-size: 18px; color: var(--primary); }

.center-content { flex-grow: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 24px; padding: 20px; }
.btn-camera-huge { background: var(--primary); border: none; border-radius: 50%; width: 140px; height: 140px; display: flex; flex-direction: column; justify-content: center; align-items: center; color: white; cursor: pointer; box-shadow: 0 8px 24px rgba(77, 163, 255, 0.3); transition: transform 0.2s; }
.btn-camera-huge:active { transform: scale(0.92); }
.btn-camera-huge svg { width: 50px; height: 50px; fill: white; margin-bottom: 8px; }
.btn-camera-huge span { font-weight: bold; font-size: 14px; }

/* Desain Tombol Video Spesifik */
.btn-video {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: transparent; border: 2px solid #ff4d4d; color: #ff4d4d;
  padding: 12px 24px; border-radius: 30px; font-weight: bold;
  font-size: 14px; cursor: pointer; transition: all 0.2s;
  width: 100%; max-width: 200px; box-sizing: border-box;
}
.btn-video:active { background: rgba(255, 77, 77, 0.15); transform: scale(0.95); }
.btn-video svg { width: 22px; height: 22px; fill: currentColor; }
.form-container { padding: 16px; flex-grow: 1; overflow-y: auto; }
.preview-box { width: 100%; height: 250px; background: #000; border-radius: 12px; overflow: hidden; margin-bottom: 16px; display: flex; justify-content: center; align-items: center; border: 1px solid var(--border); }
.preview-box img { max-width: 100%; max-height: 100%; object-fit: contain; }

.input-field { width: 100%; padding: 14px; margin-bottom: 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); color: var(--text); font-size: 15px; box-sizing: border-box; outline: none; transition: border-color 0.2s; }
.input-field:focus { border-color: var(--primary); }
textarea.input-field { resize: none; }

.action-buttons { display: flex; gap: 10px; margin-top: 8px; padding-bottom: 20px; }
.btn { flex: 1; padding: 14px; border-radius: 8px; font-weight: 600; cursor: pointer; border: none; font-size: 14px; text-align: center; }
.btn-primary { background: var(--primary); color: white; box-shadow: 0 4px 12px rgba(77,163,255,0.2); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
/* Banner Install PWA */
.install-banner { position: fixed; bottom: 0; left: 0; right: 0; background: var(--card); padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 -4px 15px rgba(0,0,0,0.3); z-index: 9999; border-top: 1px solid var(--border); animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.install-content { display: flex; align-items: center; gap: 12px; }
.install-icon { width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--border); }
.install-text { display: flex; flex-direction: column; }
.install-text strong { font-size: 14px; color: var(--primary); }
.install-text span { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.btn-install { background: var(--success); color: white; border: none; padding: 8px 18px; border-radius: 20px; font-weight: bold; font-size: 13px; cursor: pointer; box-shadow: 0 2px 6px rgba(63, 185, 80, 0.3); transition: transform 0.2s; }
.btn-install:active { transform: scale(0.9); }
.btn-close-install { background: transparent; border: none; color: var(--text-muted); font-size: 16px; cursor: pointer; padding: 4px; }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
/* Modifikasi warna merah untuk tombol bulat besar (Video) */
.btn-red {
  background: #ff4d4d !important;
  box-shadow: 0 8px 24px rgba(255, 77, 77, 0.3) !important;
}