/* ─────────────────────────────────────────────────────────────────────────────
   Ibn Sina – Custom Styles
   ───────────────────────────────────────────────────────────────────────────── */

/* ── Design tokens ───────────────────────────────────────────────────────── */
:root {
  --brand-primary:   #0d6efd;
  --brand-dark:      #1a2332;
  --brand-green:     #198754;
  --color-orange:    #fd7e14;
  --hero-gradient:   linear-gradient(135deg, #1a2332 0%, #0d4a8f 60%, #0d6efd 100%);
  --font-sans:       'Inter', system-ui, -apple-system, sans-serif;
}

/* ── Base ─────────────────────────────────────────────────────────────────── */
body {
  font-family: var(--font-sans);
  background: #f8f9fa;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content {
  flex: 1;
}

/* ── Brand navbar ─────────────────────────────────────────────────────────── */
.bg-brand {
  background: var(--brand-dark) !important;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: #fff;
  opacity: 1;
}

.avatar-sm {
  width: 32px;
  height: 32px;
  font-size: 14px;
}

.avatar-lg {
  width: 80px;
  height: 80px;
  font-size: 32px;
}

/* ── Hero section ─────────────────────────────────────────────────────────── */
.hero-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
  background: var(--hero-gradient);
  position: relative;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(13, 110, 253, 0.15) 0%, transparent 60%),
    radial-gradient(circle at 80% 20%, rgba(25, 135, 84, 0.10) 0%, transparent 50%);
  pointer-events: none;
}

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

.text-white-75 {
  color: rgba(255, 255, 255, 0.75) !important;
}

.text-gradient {
  background: linear-gradient(90deg, #60b3ff, #4ade80);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero badge */
.badge-hero {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
}

.badge-primary-soft {
  background: rgba(13, 110, 253, 0.1);
  color: var(--brand-primary);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
}

/* Hero demo card */
.hero-card {
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.severity-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Features ─────────────────────────────────────────────────────────────── */
.feature-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1) !important;
}

.feature-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Steps ────────────────────────────────────────────────────────────────── */
.step-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(13, 110, 253, 0.3);
}

/* ── Pricing ─────────────────────────────────────────────────────────────── */
.pricing-popular {
  border-width: 2px !important;
  transform: scale(1.02);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-primary);
  color: white;
  padding: 4px 18px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

/* ── Orange severity color ────────────────────────────────────────────────── */
.bg-orange {
  background-color: var(--color-orange) !important;
}

.text-orange {
  color: var(--color-orange) !important;
}

.bg-orange-soft {
  background-color: rgba(253, 126, 20, 0.1) !important;
}

.bg-warning-soft {
  background-color: rgba(255, 193, 7, 0.12) !important;
}

.bg-success-soft {
  background-color: rgba(25, 135, 84, 0.1) !important;
}

/* ── Interaction cards ────────────────────────────────────────────────────── */
.interaction-card {
  transition: box-shadow 0.2s;
}

.interaction-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1) !important;
}

/* ── Stats ────────────────────────────────────────────────────────────────── */
.stat-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* ── Admin ────────────────────────────────────────────────────────────────── */
.log-dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
}

.severity-badge-sm {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

/* ── Typography utilities ─────────────────────────────────────────────────── */
.x-small {
  font-size: 0.725rem;
}

.tracking-wide {
  letter-spacing: 0.08em;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.footer-link:hover {
  color: #fff !important;
}

.hover-primary:hover {
  color: var(--brand-primary) !important;
}

/* ── Forms ────────────────────────────────────────────────────────────────── */
.form-control:focus,
.form-select:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.12);
}

/* ── Dashboard ────────────────────────────────────────────────────────────── */
.min-w-0 {
  min-width: 0;
}

/* ── Responsive utilities ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  .py-6 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  .pricing-popular {
    transform: scale(1);
  }
}

/* ── Hover shadow utility ─────────────────────────────────────────────────── */
.hover-shadow { transition: box-shadow .2s, transform .2s; }
.hover-shadow:hover { box-shadow: 0 8px 30px rgba(0,0,0,.1) !important; transform: translateY(-2px); }

/* ── Border dashed utility ────────────────────────────────────────────────── */
.border-dashed { border-style: dashed !important; }

/* ── Scrollbar styling ────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #a1a1a1; }
