html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.dashboard-body {
  background: #f8fafc;
  min-height: 100vh;
  margin: 0;
}

.dashboard-wrapper {
  display: flex;
  min-height: 100vh;
}

.dashboard-sidebar {
  width: 260px;
  background: #0f172a;
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  transition: transform 0.3s ease;
  box-shadow: 12px 0 30px rgba(15, 23, 42, 0.16);
  z-index: 1050;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-brand {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.sidebar-nav .nav-link {
  color: #cbd5f5;
  padding: 12px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  font-weight: 500;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.sidebar-nav .nav-link:last-child {
  border-bottom: none;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link:focus {
  color: #38bdf8;
  padding-left: 6px;
}

.dashboard-content {
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f8fafc;
}

.dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 1020;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dashboard-main {
  flex: 1;
  padding: 32px;
}

.sidebar-toggle {
  font-weight: 600;
}

.dashboard-section {
  background: #ffffff;
  border-radius: 18px;
  padding: 32px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.dashboard-tile {
  background: #f1f5f9;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.16);
}

.tile-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.85rem;
}

@media (max-width: 991.98px) {
  .dashboard-wrapper {
    flex-direction: column;
  }

  .dashboard-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
  }

  .dashboard-sidebar.sidebar-open {
    transform: translateX(0);
  }

  .dashboard-topbar {
    padding: 18px 20px;
    gap: 12px;
  }

  .dashboard-main {
    padding: 24px 16px;
  }

  .dashboard-section {
    padding: 24px;
  }

  .topbar-title {
    display: none;
  }

  .topbar-actions span {
    font-size: 0.85rem;
  }
}