/* AuraPass AI Mobile PWA Design System */
:root {
  --bg-primary: #0f172a;
  --bg-card: rgba(30, 41, 59, 0.85);
  --accent-cyan: #38bdf8;
  --accent-emerald: #10b981;
  --accent-indigo: #818cf8;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-cyan: rgba(56, 189, 248, 0.35);
  --font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-family);
  min-height: 100vh;
  padding-bottom: 90px;
  overflow-x: hidden;
}

/* Header Navbar */
.mobile-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid var(--border-cyan);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 100;
}

.logo-text {
  font-weight: 800;
  font-size: 18px;
  color: #f8fafc;
}

/* Tutor Toggle Button */
.tutor-toggle-btn {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.3);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tutor-toggle-btn.active {
  background: rgba(16, 185, 129, 0.25);
  color: #34d399;
  border-color: #10b981;
}

/* Main Container */
.app-container {
  margin-top: 75px;
  padding: 16px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Camera Launch Box */
.camera-dropzone {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
  border: 2px dashed var(--border-cyan);
  border-radius: 20px;
  padding: 32px 20px;
  text-align: center;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.camera-dropzone h2 {
  font-size: 20px;
  color: var(--accent-cyan);
  margin-bottom: 8px;
}

.camera-dropzone p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.btn-capture {
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: white;
  padding: 14px 28px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.4);
}

.btn-capture:active {
  transform: scale(0.97);
}

/* Hidden Native Input */
#nativeFileInput {
  display: none;
}

/* Preview & Canvas */
.preview-container {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border-cyan);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 24px;
}

.preview-container img {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: 12px;
}

.btn-solve-now {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

/* Results Card */
.results-card {
  display: none;
  background: var(--bg-card);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}

.direct-answer-badge {
  font-size: 22px;
  font-weight: 900;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  padding: 10px 16px;
  border-radius: 10px;
  display: inline-block;
  margin-bottom: 16px;
}

.tutor-section {
  margin-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 16px;
}

.concept-tag {
  background: rgba(129, 140, 248, 0.2);
  color: #c7d2fe;
  border: 1px solid rgba(129, 140, 248, 0.4);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: inline-block;
}

.step-item {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.5;
}

/* Scanned History Feed */
.history-feed {
  margin-top: 32px;
}

.history-feed h3 {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.history-card {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Bottom Nav Bar */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: rgba(15, 23, 42, 0.95);
  border-top: 1px solid var(--border-cyan);
  backdrop-filter: blur(12px);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 100;
}

.nav-item {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.nav-item.active {
  color: var(--accent-cyan);
}
