/* ViyaBook Mobile App — Wave Style */
:root {
  --mob-nav-h: 64px;
  --mob-bg: #f5f7fa;
  --mob-card: #ffffff;
  --mob-border: #e8edf3;
  --mob-blue: #185FA5;
  --mob-text: #1a2b4b;
  --mob-muted: #6b7a99;
  --mob-red: #e63946;
  --mob-green: #2ec27e;
}

/* ── Bottom navigation bar ── */
.viya-mob-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--mob-nav-h);
  background: #ffffff;
  border-top: 1px solid var(--mob-border);
  z-index: 9999;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
}
.viya-mob-nav-inner {
  display: flex;
  align-items: stretch;
  height: 100%;
  max-width: 600px;
  margin: 0 auto;
}
.viya-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  color: #8896b3;
  text-decoration: none;
  font-family: inherit;
  transition: color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.viya-nav-item.active {
  color: var(--mob-blue);
}
.viya-nav-item:active {
  opacity: 0.7;
}
.viya-nav-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.viya-nav-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.viya-nav-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
}

/* ── More sheet (bottom drawer) ── */
.viya-more-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.25s;
}
.viya-more-overlay.open {
  display: block;
  opacity: 1;
}
.viya-more-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1a2540;
  border-radius: 20px 20px 0 0;
  z-index: 10001;
  padding: 0 0 40px;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.32,0.72,0,1);
  max-height: 85vh;
  overflow-y: auto;
}
.viya-more-sheet.open {
  transform: translateY(0);
}
.viya-more-handle {
  width: 36px;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 99px;
  margin: 12px auto 0;
}
.viya-more-title {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 16px 24px 12px;
}
.viya-more-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 0 20px 16px;
}
.viya-more-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  background: rgba(255,255,255,0.07);
  border-radius: 16px;
  border: none;
  cursor: pointer;
  color: #ffffff;
  font-family: inherit;
  text-decoration: none;
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.viya-more-item:active {
  background: rgba(255,255,255,0.14);
}
.viya-more-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.viya-more-item-icon svg {
  width: 22px;
  height: 22px;
  stroke: #ffffff;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.viya-more-item-label {
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
}
.viya-more-signout {
  margin: 8px 20px 0;
  width: calc(100% - 40px);
  height: 52px;
  border: 1.5px solid rgba(230,57,70,0.5);
  border-radius: 14px;
  background: rgba(230,57,70,0.1);
  color: #ff6b75;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

/* ── Body padding so content clears the nav ── */
@media (max-width: 768px) {
  .viya-mob-nav { display: flex; }

  body {
    padding-bottom: var(--mob-nav-h) !important;
  }
  /* Hide desktop sidebar on mobile */
  .sidebar {
    display: none !important;
  }
  .dashboard-shell {
    grid-template-columns: 1fr !important;
  }
  .main-content {
    min-width: 0 !important;
    width: 100% !important;
  }
}

/* FAB button */
.viya-fab {
  display: none;
}
