/* =========================
  AITIFY - App CSS (Modern)
========================= */
:root {
  --app-bg: #eef2f7;
  --app-dark: #0b1320;
  --app-dark-2: #172a46;

  --card: #ffffff;
  --muted: rgba(11, 19, 32, 0.65);
  --muted-2: rgba(11, 19, 32, 0.45);

  --border: rgba(11, 19, 32, 0.08);
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.1);

  --radius: 18px;
  --radius-xl: 24px;

  --accent: #ffc107; /* bootstrap warning */
  --accent-2: rgba(255, 193, 7, 0.22);

  --success: #198754;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  background: var(--app-bg);
  color: var(--app-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  padding-bottom: 120px; /* space for dock + FAB */
}

/* container feel like app */
.container {
  max-width: 980px;
}

.rounded-4 {
  border-radius: var(--radius) !important;
}

/* =========================
  NAVBAR
========================= */
.app-nav {
  background: rgba(11, 19, 32, 0.86) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.navbar-brand {
  letter-spacing: 0.3px;
}
.navbar-toggler {
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 12px;
}
.netBadge {
  font-weight: 700;
}

/* =========================
  OFFCANVAS MENU
========================= */
.offcanvas.text-bg-dark {
  background: linear-gradient(
    180deg,
    rgba(11, 19, 32, 0.98),
    rgba(11, 19, 32, 0.92)
  ) !important;
}
.offcanvas .btn {
  border-radius: 14px;
}
.offcanvas .btn.active {
  background: rgba(255, 193, 7, 0.14) !important;
  border-color: rgba(255, 193, 7, 0.3) !important;
}
.offcanvas .btn i {
  opacity: 0.95;
}

/* =========================
  CARDS & TYPO
========================= */
.card {
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
}
.card-hover {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.1);
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 0.6rem;
}
.section-title .h5,
.section-title h2 {
  margin: 0;
}

/* chips */
.chip {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
}

/* =========================
  SKELETON
========================= */
.skeleton {
  position: relative;
  overflow: hidden;
  background: #e9ecef;
  border-radius: 12px;
}
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.65),
    transparent
  );
  animation: shimmer 1.2s infinite;
}
@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

/* =========================
  BADGES
========================= */
.badge-status {
  font-weight: 800;
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
}

/* =========================
  QUICK SHORTCUT GRID (Offcanvas bottom)
========================= */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 360px) {
  .quick-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.quick-item {
  text-decoration: none;
  color: var(--app-dark);
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 16px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 78px;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
}
.quick-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.1);
  border-color: rgba(11, 19, 32, 0.14);
}
.quick-ico {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(11, 19, 32, 0.06);
}
.quick-item.active {
  border-color: rgba(255, 193, 7, 0.45);
  box-shadow: 0 18px 42px rgba(255, 193, 7, 0.18);
}
.quick-item.active .quick-ico {
  background: rgba(255, 193, 7, 0.4);
}
.quick-item span {
  font-size: 0.74rem;
  font-weight: 800;
  text-align: center;
  line-height: 1.05rem;
}

/* =========================
  FAB (Shortcut Button)
========================= */
.fab-shortcut {
  position: fixed;
  right: 14px;
  bottom: calc(92px + env(safe-area-inset-bottom));
  z-index: 1035;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(
    135deg,
    rgba(11, 19, 32, 0.92),
    rgba(23, 42, 70, 0.92)
  );
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
  color: #fff;
  display: grid;
  place-items: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.fab-shortcut:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.22);
}
.fab-shortcut i {
  font-size: 1.35rem;
}

/* hide FAB on desktop */
@media (min-width: 992px) {
  body {
    padding-bottom: 0;
  }
  .bottom-dock,
  .fab-shortcut {
    display: none !important;
  }
}

/* =========================
  BOTTOM DOCK (Premium)
========================= */
.bottom-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1030;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
}
.bottom-dock .dock {
  max-width: 560px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 26px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 8px 8px;
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: space-between;
}

.dock-item {
  flex: 1;
  text-decoration: none;
  color: rgba(11, 19, 32, 0.7);
  border-radius: 18px;
  padding: 9px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 56px;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
  position: relative;
}
.dock-item i {
  width: 38px;
  height: 38px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(11, 19, 32, 0.06);
  font-size: 1.15rem;
  transition: transform 0.18s ease, background 0.18s ease;
}
.dock-item .lbl {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2px;
  line-height: 1;
  opacity: 0.9;
}

.dock-item:hover {
  transform: translateY(-2px);
  background: rgba(11, 19, 32, 0.04);
}

.dock-item.active {
  color: var(--app-dark);
  background: rgba(255, 193, 7, 0.2);
}
.dock-item.active i {
  background: rgba(255, 193, 7, 0.55);
  transform: scale(1.06);
}
.dock-item.active::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 12px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(255, 193, 7, 0.18);
}

/* =========================
  QUICK MENU OFFCANVAS (BOTTOM)
========================= */
.offcanvas.offcanvas-bottom {
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.quick-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.quick-sub {
  font-size: 0.86rem;
  color: var(--muted);
}
