:root {
  --brand: #0a4d9b;
  --sidebar: #0e2b55;
  --sidebar-accent: #0a4d9b;
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #556070;
  --border: #e4e7ee;
  --ring: #e9efff;
  --danger: #ef4444
}

/* Sidebar */
.sidebar {
  width: 260px;
  background: linear-gradient(180deg, #0d2d5a 0%, #0c2a56 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 20px 14px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden
}

.sidebar .brand {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  margin-bottom: 12px
}

.sidebar .brand img {
  height: 32px
}

* {
  box-sizing: border-box;
  font-family: 'Outfit';
}

.menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.menu .item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 10px;
  color: #dfe8ff;
  text-decoration: none;
  font-weight: 600;
  position: relative;
  z-index: 2
}

.menu .item i {
  font-size: 18px
}

.menu .item:hover {
  background: rgba(255, 255, 255, .08)
}

.menu .item.active {
  background: linear-gradient(90deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .06));
  z-index: 5;
  color: #111;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12)
}

.spacer {
  flex: 1
}

.logout {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #dfe8ff;
  text-decoration: none;
  padding: 12px;
  border-radius: 10px
}

.logout {
  position: relative;
  z-index: 2
}

.logout:hover {
  background: rgba(255, 255, 255, .08)
}

.sidebar .copyright {
  color: #b9c6ff;
  font-size: 11px;
  opacity: .9;
  padding: 10px 6px 0 6px;
  text-align: center
}

/* Main */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 72px;
  padding: 0 16px;
  background: #fff;
  border-bottom: 1px solid var(--border)
}

.topbar .title {
  font-family: Outfit, Inter, sans-serif;
  font-weight: 700;
  font-size: 20px
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  width: 40px;
  border-radius: 10px;
  background: transparent;
  border: none;
  box-shadow: none;
}

.icon-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

.search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f6f7fb;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 12px;
  min-width: 260px
}

.search input {
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%
}

.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 4px 10px
}

.profile img {
  height: 34px;
  width: 34px;
  border-radius: 50%
}

.profile .name {
  font-weight: 700;
  font-size: 13px
}

.profile .sub {
  font-size: 11px;
  color: var(--muted)
}

/* Content */
.content {
  position: relative;
  overflow: hidden
}

.view {
  opacity: 0;
  transform: translateX(12px);
  transition: opacity .25s ease, transform .25s ease;
  display: none;
  min-height: calc(100vh - 72px);
}

.view.active {
  opacity: 1;
  transform: none;
  display: block;
}

/* Dashboard background gradient */
.view[data-view="dashboard"] {
  background: linear-gradient(180deg, #FFD5D8 0%, rgba(255, 213, 216, 0.6) 22%, rgba(255, 213, 216, 0.18) 44%, rgba(255, 213, 216, 0) 70%);
}

/* Example hero cards */
/* .hero-cards {
  display: grid;
  grid-template-columns: 65% 35%;
  gap: 16px
} */

.hero-cards .card {
  border: 0;
  border-radius: 16px;
  padding: 18px 20px;
  min-height: 150px;
  color: #111;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06)
}

.hero-cards .card.primary {
  background: linear-gradient(120deg, #0c2a56, #0e4278);
  color: #fff
}

.hero-cards .card.accent {
  background: linear-gradient(120deg, #ffd1d7, #ffe6d5)
}

.hero-cards .eyebrow {
  font-weight: 700;
  font-size: 12px;
  opacity: .9;
  margin-bottom: 6px
}

.placeholder {
  height: 320px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted)
}

/* Hero banner */
.hero-banner {
  position: relative;
  overflow: hidden
}

.hero-banner .hero-text {
  max-width: 520px
}

.hero-illustration {
  flex: 0 0 320px;
  min-height: 150px;
  border-radius: 14px;
  margin-top: 14px;
  margin-left: 0;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .15) 0 8px, rgba(255, 255, 255, .05) 8px 16px);
  border: 1px dashed rgba(255, 255, 255, .35)
}

@media (min-width: 992px) {
  .hero-illustration {
    margin-top: 0;
    margin-left: 16px
  }
}

@media (max-width: 991.98px) {
  .hero-cards {
    grid-template-columns: 1fr
  }
}

/* Stats cards */
.stats-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 6px
}

.stats-cards .stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .05)
}

.stats-cards .meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 6px
}

.stats-cards .meta .menu {
  border: 0;
  background: transparent;
  color: var(--muted)
}

.stats-cards .value {
  font-family: Outfit, Inter, sans-serif;
  font-size: 28px;
  font-weight: 400;
  color: #0f172a
}

@media (max-width: 1199.98px) {
  .stats-cards {
    grid-template-columns: repeat(3, 1fr)
  }
}

@media (max-width: 767.98px) {
  .stats-cards {
    grid-template-columns: repeat(2, 1fr)
  }
}

/* Panels */
.panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .06);
  overflow: hidden
}

.panel-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border)
}

.panel-body {
  padding: 12px 16px
}

.panel-footer {
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-weight: 600
}

/* Tabs */
.tabs {
  display: flex;
  gap: 8px
}

.tab {
  border: 1px solid var(--border);
  background: #fff;
  color: #0f172a;
  padding: 6px 12px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase
}

.tab.active {
  background: var(--ring)
}

/* Chart placeholder */
.chart-placeholder {
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: #f9fbff;
  border: 1px dashed var(--ring);
  border-radius: 12px
}

/* Legend */
.legend .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  margin-left: 12px;
  vertical-align: middle
}

.legend .dot-blue {
  background: #1d4ed8
}

.legend .dot-red {
  background: #ef4444
}

.legend .dot-green {
  background: #10b981
}

/* Lists */
.list {
  padding: 8px 12px
}

.list .item {
  padding: 14px 10px;
  border-bottom: 1px solid var(--border)
}

.list .item:last-child {
  border-bottom: 0
}

.list .title {
  font-weight: 800
}

.list .sub {
  font-size: 12px;
  color: var(--muted)
}

.list .meta-row {
  margin-top: 8px
}

/* Pills */
.pill {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 11px
}

.pill-amber {
  background: #fef3c7;
  color: #92400e
}

.pill-green {
  background: #dcfce7;
  color: #065f46
}

.pill-rose {
  background: #ffe4e6;
  color: #9f1239
}

/* Upcoming grid */
.grid-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 8px
}

.grid-meta .k {
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase
}

.grid-meta .v {
  font-size: 13px;
  font-weight: 400
}

@media (max-width: 991.98px) {
  .grid-meta {
    grid-template-columns: repeat(2, 1fr)
  }
}

/* Responsive */
@media (max-width: 991.98px) {
  .sidebar {
    position: fixed;
    left: -280px;
    transition: left .25s ease;
    width: 260px;
    z-index: 20
  }

  .sidebar.open {
    left: 0
  }

  .main {
    margin-left: 0
  }
}

/* Alerts */
.panel .alerts {
  max-height: 611px;
  overflow-y: auto;
  padding-right: 6px
}

.alerts .item {
  padding: 14px 12px;
  border-bottom: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 4px 10px rgba(15, 23, 42, .05);
  margin: 10px 0
}

.alert-row-top {
  display: flex;
  align-items: center;
  gap: 8px
}

.menu-dots {
  border: 0;
  background: transparent;
  color: var(--muted)
}

.alert-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px
}

.alert-meta-grid .k {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase
}

.alert-meta-grid .v {
  font-size: 13px;
}

/* Upcoming list scrolling (show up to 2 items, then scroll) */
.panel .upcoming {
  max-height: 340px;
  overflow-y: auto;
  padding-right: 6px;
  font-weight: 400;
}

.upcoming .item .title {
  margin-bottom: 6px
}

.upcoming .notes-link {
  font-weight: 700;
  color: #0f172a;
  text-decoration: none
}

.upcoming .notes-link .count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #eef2ff;
  color: #0f172a;
  font-weight: 700;
  font-size: 12px
}

.upcoming .item-menu {
  border: 0;
  background: transparent;
  color: var(--muted)
}

@media (max-width: 991.98px) {
  .panel .alerts {
    max-height: 320px
  }

  .panel .upcoming {
    max-height: 300px
  }
}

/* Curved active highlight */
.curve-bg {
  position: absolute;
  width: 300px;
  height: 60px;
  background: #ffffff;
  right: -40px;
  top: var(--curve-top, 0px);
  border-radius: 50px 0 0 50px;
  backdrop-filter: blur(8px);
  transition: top .35s ease;
  z-index: 1;
  border: 2px solid rgba(255, 255, 255, 0.2);
  opacity: .9
}



.bg-menu-theme {
  background: #04366f;
}

.menu-item a {
  color: #FFFFFF;
}

.menu-item.active {
  background: #FFFFFF !important;
  border-bottom-left-radius: 20px;
  border-top-left-radius: 20px;
}

.menu-item.active a {
  color: #ff4f7b !important;
  background: #FFFFFF !important;
}

.menu-item a:hover {
  color: #ff4f7b !important;
  background: none !important;
}

.layout-wrapper:not(.layout-horizontal) .menu-vertical .menu-inner>.menu-item.active:before {
  background: none !important;
}

.layout-wrapper .layout-page {
  background: linear-gradient(135deg, #ffebeb, #ffe7f5);
}