/* Aerixo remote-pilot volunteer app — flat, dark, RTL. No glow/gradients/shadows
   beyond 1-2px real depth, per the brand's "no AI-look" rule. */

:root {
  --primary: #189849;
  --primary-hover: #1FAE56;
  --canvas: #050505;
  --surface: #181C1F;
  --surface-1: #121215;
  --ink-primary: #F5F6F7;
  --ink-secondary: #9BA8AE;
  --ink-muted: #5A6669;
  --danger: #E5484D;
  --danger-hover: #C93E42;
  --border: rgba(245, 246, 247, 0.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--canvas);
  color: var(--ink-primary);
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  min-height: 100vh;
  direction: rtl;
}

#app {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.card {
  width: 100%;
  max-width: 480px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 4px;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

.brand-label {
  font-size: 13px;
  color: var(--ink-secondary);
}

h1 {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: var(--ink-primary);
}

p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-secondary);
}

.muted {
  font-size: 12px;
  color: var(--ink-muted);
}

.prompt-box {
  background: var(--surface-1);
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
}

.prompt-text {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink-primary);
  line-height: 1.6;
}

.tips-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tips-list li {
  font-size: 13px;
  color: var(--ink-secondary);
  padding-right: 16px;
  position: relative;
}

.tips-list li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
}

.progress-track {
  height: 6px;
  border-radius: 999px;
  background: var(--surface-1);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.progress-label {
  font-size: 12px;
  color: var(--ink-secondary);
  text-align: center;
}

button {
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  padding: 13px 18px;
  cursor: pointer;
  transition: background-color 0.15s ease, opacity 0.15s ease;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--primary);
  color: #06110A;
}
.btn-primary:hover:not(:disabled) { background: var(--primary-hover); }

.btn-secondary {
  background: var(--surface-1);
  color: var(--ink-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover:not(:disabled) { background: #1A1E22; }

.btn-danger {
  background: transparent;
  color: var(--danger);
  border: 1px solid rgba(229, 72, 77, 0.35);
}
.btn-danger:hover:not(:disabled) { background: rgba(229, 72, 77, 0.08); }

.btn-link {
  background: none;
  border: none;
  color: var(--ink-secondary);
  font-size: 13px;
  font-weight: 400;
  text-decoration: underline;
  padding: 4px;
}

.row {
  display: flex;
  gap: 10px;
}
.row > button { flex: 1; }

.record-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px;
}

.rec-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--danger);
  animation: pulse 1.4s ease-in-out infinite;
}

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

.rec-time {
  font-variant-numeric: tabular-nums;
  color: var(--ink-primary);
  font-size: 14px;
  direction: ltr;
}

audio {
  width: 100%;
  filter: invert(0.85);
  border-radius: 8px;
}

.banner {
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.6;
}
.banner-error {
  background: rgba(229, 72, 77, 0.1);
  color: #FF9EA1;
  border: 1px solid rgba(229, 72, 77, 0.25);
}
.banner-info {
  background: rgba(24, 152, 73, 0.1);
  color: #6FE39A;
  border: 1px solid rgba(24, 152, 73, 0.25);
}

.center-icon {
  font-size: 40px;
  text-align: center;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 10;
}

.spinner {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--surface-1);
  border-top-color: var(--primary);
  animation: spin 0.7s linear infinite;
  margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

.text-center { text-align: center; }
.modal-card { max-width: 420px; }

@media (max-width: 420px) {
  .card { padding: 22px 16px; border-radius: 12px; }
  .prompt-text { font-size: 19px; }
}
