:root {
  --rb-card-radius: 1rem;
  --rb-soft-shadow: 0 0.5rem 1.25rem rgba(15, 23, 42, 0.08);
  --rb-hover-shadow: 0 0.75rem 1.75rem rgba(15, 23, 42, 0.12);
}

body {
  background: #f5f7fb;
  margin: 0;
}

/* Layout Shell */

.rb-app-shell {
  display: flex;
  min-height: calc(100vh - 56px);
}

/* Sidebar */

.rb-sidebar {
  width: 260px;
  min-width: 260px;
  height: calc(100vh - 56px);
  overflow-y: auto;
}

.rb-sidebar-desktop {
  display: block;
}

.rb-sidebar-mobile {
  width: 280px;
}

/* Main Content */

.rb-main {
  flex-grow: 1;
  min-width: 0;
}

/* Sidebar Links */

.rb-nav-link {
  color: #334155;
  border-radius: 0.6rem;
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.25rem;
}

.rb-nav-link:hover {
  background: #f1f5f9;
  color: #0d6efd;
}

/* Cards / MVP Polish */

.rb-page-title {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.rb-muted {
  color: #6c757d;
}

.rb-card {
  border: 0;
  border-radius: var(--rb-card-radius);
  box-shadow: var(--rb-soft-shadow);
}

.rb-card-hover {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.rb-card-hover:hover {
  transform: translateY(-2px);
  box-shadow: var(--rb-hover-shadow);
}

.rb-status-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  display: inline-block;
  margin-right: 0.4rem;
}

.rb-status-online {
  background: #198754;
}

.rb-status-offline {
  background: #6c757d;
}

.rb-status-alert {
  background: #dc3545;
}

.rb-status-stale {
  background: #ffc107;
}

.rb-alert-tile {
  border-left: 5px solid #dc3545;
}

.rb-success-tile {
  border-left: 5px solid #198754;
}

.rb-empty-state {
  border: 1px dashed #ced4da;
  border-radius: 1rem;
  background: #ffffff;
  padding: 2rem;
  text-align: center;
  color: #6c757d;
}

.rb-kpi-number {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.rb-small-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6c757d;
}

.rb-mvp-badge {
  font-size: 0.75rem;
  vertical-align: middle;
}

/* Mobile */

@media (max-width: 767.98px) {
  .rb-app-shell {
    display: block;
    min-height: auto;
  }

  .rb-sidebar-desktop {
    display: none;
  }

  .rb-sidebar {
    width: 100%;
    min-width: 0;
    height: auto;
  }

  .rb-main {
    width: 100%;
  }
}

@media (min-width: 768px) {
  .rb-sidebar-mobile {
    display: none;
  }
}

.rb-pulse {
  animation: rbPulse 2s infinite;
}

@keyframes rbPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(25, 135, 84, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(25, 135, 84, 0);
  }
}

.rb-sticky-header thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8f9fa;
}

.rb-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

@media (max-width: 767.98px) {
  .rb-card {
    border-radius: 0.85rem;
  }

  .rb-kpi-number {
    font-size: 1.65rem;
  }
}

.rb-mobile-topbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  height: 56px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1rem;
}

.rb-sidebar-mobile {
  z-index: 1055;
}

.rb-sidebar-desktop {
  flex: 0 0 260px;
}

.rb-main {
  flex: 1;
  min-width: 0;
}

.rb-app-shell {
  display: flex;
  min-height: calc(100vh - 56px);
}

.rb-sidebar-desktop {
  width: 260px;
  min-width: 260px;
  flex: 0 0 260px;
  min-height: calc(100vh - 56px);
  background: #fff;
  border-right: 1px solid #dee2e6;
  overflow-y: auto;
}

.rb-sidebar {
  width: 100%;
  min-height: 100%;
}

.rb-main {
  flex: 1;
  min-width: 0;
}

.rb-top-nav {
  min-height: 56px;
  position: sticky;
  top: 0;
  z-index: 1040;
}

.rb-app-shell {
  display: flex;
  min-height: calc(100vh - 56px);
  background: #f3f6fa;
}

.rb-sidebar-desktop {
  width: 260px;
  min-width: 260px;
  flex: 0 0 260px;
  min-height: calc(100vh - 56px);
  background: #fff;
  border-right: 1px solid #dee2e6;
  overflow-y: auto;
  position: sticky;
  top: 56px;
}

.rb-sidebar {
  width: 100%;
}

.rb-main {
  flex: 1;
  min-width: 0;
}

.rb-sidebar-mobile {
  width: 280px;
  z-index: 1055;
}

.rb-nav-link {
  color: #374151;
  border-radius: 0.5rem;
  padding: 0.6rem 0.75rem;
}

.rb-nav-link:hover {
  background: #f3f4f6;
  color: #111827;
}
