/* ============================================================
   Artokon — artokon.css
   Core bundle loaded by every layout.
   ============================================================ */

@import url('core/tokens.css');
@import url('core/base.css');
@import url('core/fonts.css');
@import url('artokon-password.css');

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--text-main);
  background-color: #f9fafb;
}

/* ── Brand Icon ─────────────────────────────────────────── */
.brand-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--primary), #1d4ed8);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(37,99,235,0.3);
}
.brand-icon-sm { width: 32px; height: 32px; border-radius: 8px; }
.brand-icon-lg {
  width: 64px; height: 64px; border-radius: 18px;
  box-shadow: 0 4px 16px rgba(37,99,235,0.35);
}

.brand-pill {
  font-size: 11px;
  font-weight: 700;
  color: #6d28d9;
  background: linear-gradient(135deg, #eff6ff, #ede9fe);
  border: 1px solid #ddd6fe;
  border-radius: 999px;
  padding: 4px 10px;
  letter-spacing: .02em;
}

/* ── Cards & Sections ───────────────────────────────────── */
.card { border-radius: var(--card-radius) !important; }

.feature-card {
  background: #fff;
  border-radius: var(--card-radius);
  padding: 28px 24px;
  border: 1px solid var(--border);
  transition: box-shadow .2s, transform .2s;
}
.feature-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

/* ── Hero ───────────────────────────────────────────────── */
.hero-section {
  background:
    radial-gradient(circle at 12% 14%, rgba(124, 58, 237, 0.10), transparent 40%),
    radial-gradient(circle at 85% 10%, rgba(37, 99, 235, 0.12), transparent 35%),
    linear-gradient(160deg, #f0f7ff 0%, #fff 60%);
}

.py-6 { padding-top: 5rem; padding-bottom: 5rem; }

/* ── Phone mockup on homepage ───────────────────────────── */
.hero-mockup { max-width: 280px; }
.phone-mockup {
  background: #1f2937;
  border-radius: 32px;
  padding: 16px 12px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.25);
  margin: 0 auto;
}
.phone-screen {
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  min-height: 420px;
}

/* ── Step Numbers ───────────────────────────────────────── */
.step-num {
  width: 40px; height: 40px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px;
}

/* ── Avatar ─────────────────────────────────────────────── */
.avatar-sm {
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.2);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}

/* ── Feature icon sm ────────────────────────────────────── */
.feature-icon-sm {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ── Buttons (public site) ──────────────────────────────── */
.btn {
  font-weight: 500;
  letter-spacing: .01em;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  border-color: transparent;
  color: #fff !important;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:disabled {
  background: linear-gradient(135deg, var(--primary-hover), #1e40af);
  border-color: transparent;
  color: #fff !important;
}
.btn-white {
  background: #fff; color: var(--primary);
  border: 2px solid #fff;
}
.btn-white:hover { background: #f0f7ff; color: var(--primary-hover); }

/* ── Nav active state ───────────────────────────────────── */
.navbar .nav-link { color: var(--text-main); font-size: 15px; }
.navbar .nav-link.active { color: var(--primary); }
.navbar .nav-link:hover { color: var(--primary); }

/* ── Dashboard Stat Cards ───────────────────────────────── */
.stat-dash-card {
  border-radius: 14px;
  padding: 20px 16px;
  text-align: center;
}
.stat-dash-number {
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}
.stat-dash-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── Tables ─────────────────────────────────────────────── */
.table th {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-top: 14px;
  padding-bottom: 14px;
}
.table td { vertical-align: middle; }

/* ── Alert animation ────────────────────────────────────── */
.alert { border: none; }

/* ── Responsive utils ───────────────────────────────────── */
@media (max-width: 576px) {
  .stat-dash-number { font-size: 24px; }
  .display-4 { font-size: 2rem; }
}

/* ── ARTOKON Generic Brand Additions ─────────────────────── */

/* Dual-color brand utility */
.brand-ar    { color: #2563eb; }
.brand-tokon { color: #f97316; }

/* Font weight for brand name */
.fw-black { font-weight: 900; }

/* ── Patient Page: ARTOKON powered footer ──────────────── */
.artokon-powered {
  text-align: center;
  padding: 16px;
  font-size: 12px;
  color: #9ca3af;
  border-top: 1px solid #f3f4f6;
  margin-top: auto;
}

/* ── Business type badge on queue page ──────────────────── */
.biz-type-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  background: #f3f4f6;
  border-radius: 20px;
  padding: 3px 12px;
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}

/* ── Token generation stopped banner ────────────────────── */
.token-stopped-banner {
  background: linear-gradient(135deg, #1e293b, #334155);
  color: #fff;
  border-radius: 14px;
  padding: 24px 20px;
  text-align: center;
  margin: 0 0 12px;
}

/* ── Welcome message on QR scan page ────────────────────── */
.welcome-msg {
  font-size: 13px;
  color: #6b7280;
  margin: 8px 0 0;
  font-style: italic;
}

/* ── Industry strip on homepage ─────────────────────────── */
.industry-badge {
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 20px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  color: #374151;
  white-space: nowrap;
}

.trust-card {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 16px 10px;
  height: 100%;
}

.footer-tag {
  font-size: 11px;
  color: #cbd5e1;
  background: rgba(148, 163, 184, 0.15);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 999px;
  padding: 4px 10px;
}

/* ── Pricing page white button ──────────────────────────── */
.btn-white {
  background: #fff;
  color: #2563eb;
  border: 2px solid #fff;
  font-weight: 600;
}
.btn-white:hover {
  background: #eff6ff;
  color: #1d4ed8;
}

/* ── Dashboard stats responsive on small phones ─────────── */
@media (max-width: 400px) {
  .stat-dash-number { font-size: 22px; }
  .stat-dash-label  { font-size: 10px; }
}

/* ── Bootstrap modals — touch-friendly on all layouts ───── */
.modal { z-index: 1060; }
.modal-backdrop { z-index: 1055; }
.modal-dialog {
  pointer-events: auto;
}
@media (max-width: 991px) {
  .modal-dialog {
    margin: 0.75rem auto;
    max-width: calc(100% - 1.5rem);
  }
  .modal-dialog-centered {
    min-height: calc(100% - 1.5rem);
  }
  .modal-content {
    max-height: calc(100dvh - 1.5rem);
    display: flex;
    flex-direction: column;
  }
  .modal-body {
    max-height: calc(100dvh - 10rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .modal-footer {
    flex-wrap: wrap;
    gap: 8px;
  }
  .modal-footer .btn,
  .modal-body .d-queue-btn,
  .modal-body button[type="submit"] {
    min-height: 44px;
  }
  .modal-footer .btn {
    min-width: 120px;
  }
  .modal .pw-field-wrap .pw-field,
  .modal .art-field-group .d-input,
  .modal .d-input,
  .modal .p-modal-input {
    font-size: 16px;
  }
  .modal .art-field-toggle,
  .modal .pw-toggle-btn {
    min-width: 44px;
  }
}
