/* =========================================
   BSDM AI SMART KIOSK – Global Stylesheet
   ========================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:      #1a56db;
  --blue-dark: #1e3a8a;
  --blue-mid:  #2563eb;
  --green:     #16a34a;
  --green-lt:  #22c55e;
  --orange:    #f97316;
  --red:       #dc2626;
  --gray-50:   #f9fafb;
  --gray-100:  #f3f4f6;
  --gray-200:  #e5e7eb;
  --gray-400:  #9ca3af;
  --gray-600:  #4b5563;
  --gray-800:  #1f2937;
  --white:     #ffffff;
  --radius:    12px;
  --shadow:    0 4px 24px rgba(0,0,0,.10);
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--gray-100);
  min-height: 100vh;
  color: var(--gray-800);
}

/* ── Header ── */
.kiosk-header {
  background: var(--white);
  border-bottom: 2px solid var(--blue);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.kiosk-header .logo { display: flex; align-items: center; gap: 10px; }
.kiosk-header .logo img { height: 44px; }
.kiosk-header .logo-text { font-size: 13px; color: var(--blue-dark); font-weight: 700; line-height: 1.3; }
.kiosk-header .logo-text span { display: block; font-weight: 400; font-size: 11px; color: var(--gray-600); }
.header-badge { background: var(--blue); color: var(--white); font-size: 12px; font-weight: 600; padding: 4px 14px; border-radius: 20px; }

/* ── Progress bar ── */
.progress-bar-wrap { background: var(--gray-200); height: 6px; width: 100%; border-radius: 3px; margin: 0 0 24px; }
.progress-bar-fill { height: 6px; background: var(--blue); border-radius: 3px; transition: width .4s; }

/* ── Page container ── */
.page-container {
  max-width: 900px;
  margin: 30px auto;
  padding: 0 16px 80px;
}

/* ── Cards ── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 28px;
  margin-bottom: 20px;
}

/* ── Step indicator ── */
.step-dots { display: flex; gap: 8px; justify-content: center; margin-bottom: 18px; }
.step-dots span {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--gray-200); display: inline-block;
}
.step-dots span.active { background: var(--blue); }
.step-dots span.done   { background: var(--green); }

/* ── Section title ── */
.section-title {
  font-size: 20px; font-weight: 700;
  color: var(--blue-dark); margin-bottom: 20px;
  text-align: center;
}
.section-subtitle { font-size: 14px; color: var(--gray-600); text-align: center; margin-top: -14px; margin-bottom: 20px; }

/* ── Grid tiles ── */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.tile-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.tile-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.tile {
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 18px 10px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .15s;
  text-decoration: none;
  color: inherit;
}
.tile:hover, .tile.selected {
  border-color: var(--blue);
  background: #eff6ff;
  transform: translateY(-2px);
}
.tile .tile-icon { font-size: 28px; margin-bottom: 8px; }
.tile .tile-label { font-size: 13px; font-weight: 600; color: var(--gray-800); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 28px; border-radius: 8px;
  font-size: 15px; font-weight: 600; border: none; cursor: pointer;
  transition: opacity .2s, transform .15s;
  text-decoration: none;
}
.btn:hover { opacity: .88; transform: translateY(-1px); }
.btn-primary   { background: var(--blue); color: var(--white); }
.btn-secondary { background: var(--gray-200); color: var(--gray-800); }
.btn-success   { background: var(--green); color: var(--white); }
.btn-outline   { background: transparent; border: 2px solid var(--blue); color: var(--blue); }
.btn-sm        { padding: 8px 18px; font-size: 13px; }
.btn-lg        { padding: 15px 36px; font-size: 17px; }
.btn-block     { width: 100%; }

/* ── Nav buttons row ── */
.nav-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 28px;
}
.nav-row .btn { min-width: 110px; }

/* ── Radio / Checkbox options ── */
.option-list { display: flex; flex-direction: column; gap: 12px; }
.option-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; border: 2px solid var(--gray-200);
  border-radius: 10px; cursor: pointer;
  transition: border-color .2s, background .2s;
}
.option-item:hover, .option-item.selected { border-color: var(--blue); background: #eff6ff; }
.option-item input[type=radio],
.option-item input[type=checkbox] { accent-color: var(--blue); width: 18px; height: 18px; }
.option-item label { font-size: 15px; font-weight: 500; cursor: pointer; }

/* ── Form fields ── */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--gray-600); margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--gray-200); border-radius: 8px;
  font-size: 15px; color: var(--gray-800);
  background: var(--gray-50);
  transition: border-color .2s;
}
.form-control:focus { outline: none; border-color: var(--blue); background: var(--white); }

/* ── Chat bubble ── */
.chat-wrap { display: flex; flex-direction: column; gap: 14px; margin-bottom: 22px; }
.chat-bubble {
  display: flex; gap: 12px; align-items: flex-start;
  max-width: 85%;
}
.chat-bubble.bot { align-self: flex-start; }
.chat-bubble.user { align-self: flex-end; flex-direction: row-reverse; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.bubble-text {
  background: var(--gray-100); border-radius: 12px 12px 12px 0;
  padding: 12px 16px; font-size: 14px; line-height: 1.6;
  border: 1px solid var(--gray-200);
}
.chat-bubble.user .bubble-text {
  background: var(--blue); color: var(--white);
  border-radius: 12px 12px 0 12px; border-color: var(--blue);
}

/* ── Badge ── */
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
}
.badge-blue   { background: #dbeafe; color: var(--blue); }
.badge-green  { background: #dcfce7; color: var(--green); }
.badge-orange { background: #ffedd5; color: var(--orange); }
.badge-govt   { background: #1a56db; color: var(--white); }

/* ── Course card ── */
.course-card {
  border: 2px solid var(--gray-200); border-radius: var(--radius);
  overflow: hidden; margin-bottom: 16px;
}
.course-card .course-header {
  background: var(--blue); color: var(--white);
  padding: 14px 20px; display: flex; align-items: center; gap: 12px;
}
.course-card .course-body { padding: 16px 20px; }
.course-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.meta-chip {
  background: var(--gray-100); border-radius: 6px;
  padding: 4px 10px; font-size: 12px; color: var(--gray-600);
  display: flex; gap: 4px; align-items: center;
}

/* ── Upload box ── */
.upload-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border: 1.5px solid var(--gray-200);
  border-radius: 10px; margin-bottom: 12px;
}
.upload-row .doc-name { font-size: 14px; font-weight: 600; display: flex; gap: 10px; align-items: center; }

/* ── Map placeholder ── */
.map-box {
  background: #e2e8f0;
  border-radius: var(--radius);
  height: 220px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--gray-600);
  border: 1.5px dashed var(--gray-400);
  margin-bottom: 16px;
}

/* ── Footer ── */
.kiosk-footer {
  background: var(--blue-dark); color: var(--white);
  text-align: center; padding: 12px;
  font-size: 12px; position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 99;
}
.kiosk-footer a { color: #93c5fd; text-decoration: none; margin: 0 8px; }

/* ── Bottom nav ── */
.bottom-nav {
  position: fixed; bottom: 36px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 0;
  background: var(--white); border-top: 1.5px solid var(--gray-200);
  box-shadow: 0 -4px 12px rgba(0,0,0,.07);
  z-index: 98;
}
.bottom-nav a {
  flex: 1; text-align: center; padding: 10px 6px 6px;
  font-size: 11px; color: var(--gray-600); text-decoration: none;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  max-width: 100px;
  transition: color .2s;
}
.bottom-nav a span.nav-icon { font-size: 20px; }
.bottom-nav a.active, .bottom-nav a:hover { color: var(--blue); }

/* ── AI Bot floating ── */
.ai-bot-float {
  position: fixed; bottom: 100px; right: 24px;
  background: var(--blue); color: var(--white);
  border-radius: 50%; width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; box-shadow: var(--shadow); cursor: pointer;
  z-index: 200;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(26,86,219,.4); }
  50%      { box-shadow: 0 0 0 12px rgba(26,86,219,0); }
}

/* ── Confirmation success ── */
.success-box {
  text-align: center; padding: 36px 20px;
}
.success-box .check-icon {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--green); color: var(--white);
  font-size: 40px; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.success-box h2 { font-size: 22px; color: var(--green); margin-bottom: 10px; }
.success-box p  { font-size: 15px; color: var(--gray-600); }

/* ── Language toggle ── */
.lang-toggle { display: flex; gap: 0; border: 2px solid var(--blue); border-radius: 8px; overflow: hidden; }
.lang-toggle button {
  flex: 1; padding: 10px 20px; border: none; cursor: pointer;
  font-size: 15px; font-weight: 600; background: var(--white); color: var(--blue);
  transition: background .2s, color .2s;
}
.lang-toggle button.active { background: var(--blue); color: var(--white); }

/* ── Welcome page ── */
.welcome-hero {
  text-align: center; padding: 30px 20px 10px;
}
.welcome-hero h1 { font-size: 26px; color: var(--blue-dark); font-weight: 800; line-height: 1.3; margin-bottom: 6px; }
.welcome-hero p  { font-size: 16px; color: var(--gray-600); margin-bottom: 18px; }
.welcome-namaste { font-size: 22px; font-weight: 700; color: var(--blue); margin-bottom: 4px; }
.welcome-access {
  display: flex; justify-content: center; gap: 18px;
  margin-top: 18px;
}
.access-item { text-align: center; font-size: 12px; color: var(--gray-600); }
.access-item .icon { font-size: 26px; margin-bottom: 4px; }

/* ── Training centre row ── */
.centre-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border: 2px solid var(--gray-200);
  border-radius: 10px; margin-bottom: 12px; cursor: pointer;
  transition: border-color .2s;
}
.centre-row:hover, .centre-row.selected { border-color: var(--blue); background: #eff6ff; }
.centre-info .name { font-size: 14px; font-weight: 700; }
.centre-info .sub  { font-size: 12px; color: var(--gray-600); margin-top: 2px; }
.centre-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.chip {
  font-size: 11px; padding: 2px 8px; border-radius: 5px;
  background: var(--gray-100); color: var(--gray-600);
}
.chip.morning  { background: #dbeafe; color: var(--blue); }
.chip.evening  { background: #fef3c7; color: #b45309; }
.chip.weekend  { background: #f3e8ff; color: #7e22ce; }
.centre-dist   { font-size: 13px; font-weight: 700; color: var(--blue-mid); text-align: right; }

/* Responsive */
@media (max-width: 600px) {
  .tile-grid         { grid-template-columns: repeat(2, 1fr); }
  .tile-grid.cols-4  { grid-template-columns: repeat(2, 1fr); }
  .page-container    { padding: 0 10px 80px; }
  .card              { padding: 18px 14px; }
}
