* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --sidebar-width: 265px;

  --bg: #f5f6f8;
  --surface: #ffffff;

  --sidebar: #111318;
  --sidebar-hover: #1b1e25;
  --sidebar-active: #23262e;

  --text: #15171b;
  --text-light: #6f737c;

  --border: #e5e7eb;

  --blue: #2563eb;
  --blue-light: #eff6ff;

  --green: #16a34a;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}



/* =========================
   SIDEBAR
========================= */

.sidebar {
  position: fixed;

  left: 0;
  top: 0;

  height: 100vh;
  width: var(--sidebar-width);

  background: var(--sidebar);

  color: white;

  display: flex;
  flex-direction: column;

  z-index: 1000;

  padding:
    max(18px, env(safe-area-inset-top))
    14px
    max(18px, env(safe-area-inset-bottom));
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  min-height: 54px;

  padding: 0 6px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.brand-icon {
  width: 38px;
  height: 38px;

  border-radius: 9px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: white;
  color: #111318;

  font-weight: 800;
  font-size: 18px;
}

.brand-name {
  font-weight: 650;
  font-size: 15px;
}

.brand-subtitle {
  margin-top: 2px;

  color: #8e939e;

  font-size: 12px;
}

.sidebar-label {
  margin: 31px 12px 9px;

  color: #686e79;

  font-size: 10px;
  font-weight: 700;

  letter-spacing: 1px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nav-item {
  width: 100%;

  display: flex;
  align-items: center;

  gap: 12px;

  height: 43px;

  padding: 0 12px;

  border: 0;
  border-radius: 8px;

  background: transparent;

  color: #aeb3bc;

  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;

  cursor: pointer;

  text-align: left;

  transition:
    background 0.15s,
    color 0.15s;
}

.nav-item:hover {
  background: var(--sidebar-hover);
  color: white;
}

.nav-item.active {
  background: var(--sidebar-active);
  color: white;
}

.nav-item i {
  width: 19px;

  text-align: center;

  font-size: 15px;
}

.sidebar-bottom {
  margin-top: auto;
}

.sidebar-divider {
  height: 1px;
  background: #262a32;

  margin: 10px 4px 13px;
}

.user-card {
  width: 100%;

  border: none;
  background: transparent;

  color: white;

  display: flex;
  align-items: center;

  gap: 10px;

  padding: 8px;

  border-radius: 9px;

  cursor: pointer;

  text-align: left;
}

.user-card:hover {
  background: var(--sidebar-hover);
}

.user-avatar {
  width: 35px;
  height: 35px;

  flex-shrink: 0;

  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #30343e;

  font-size: 11px;
  font-weight: 700;
}

.user-info {
  flex: 1;

  min-width: 0;
}

.user-name {
  font-size: 12.5px;
  font-weight: 600;
}

.user-role {
  margin-top: 2px;

  color: #858a94;

  font-size: 10.5px;
}

.user-more {
  color: #747983;

  font-size: 13px;
}



/* =========================
   MAIN
========================= */

.main {
  margin-left: var(--sidebar-width);

  min-height: 100vh;
}



/* =========================
   TOPBAR
========================= */

.topbar {
  height: 84px;

  background: rgba(255, 255, 255, 0.92);

  border-bottom: 1px solid var(--border);

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 34px;

  position: sticky;
  top: 0;

  backdrop-filter: blur(15px);

  z-index: 50;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.topbar h1 {
  font-size: 19px;
  font-weight: 650;
}

.page-description {
  margin-top: 4px;

  color: var(--text-light);

  font-size: 12px;
}

.topbar-actions {
  display: flex;
  align-items: center;

  gap: 9px;
}

.view-site-btn {
  height: 38px;

  padding: 0 14px;

  display: flex;
  align-items: center;

  gap: 8px;

  border: 1px solid var(--border);
  border-radius: 8px;

  background: white;

  color: #33373e;

  text-decoration: none;

  font-size: 12px;
  font-weight: 550;
}

.view-site-btn:hover {
  background: #f7f7f8;
}

.icon-btn,
.mobile-menu,
.mobile-close {
  width: 38px;
  height: 38px;

  border-radius: 8px;

  border: 1px solid var(--border);

  background: white;

  cursor: pointer;

  font-size: 14px;
}

.mobile-menu {
  display: none;
}

.mobile-close {
  display: none;

  border: none;

  color: #bbb;

  background: transparent;
}



/* =========================
   CONTENT
========================= */

.content {
  padding: 34px;

  max-width: 1450px;

  margin: auto;
}

.page {
  display: none;
}

.page.active {
  display: block;
}



/* =========================
   WELCOME
========================= */

.welcome-row {
  margin-bottom: 32px;
}

.welcome-row h2 {
  font-size: 27px;
  font-weight: 650;

  letter-spacing: -0.7px;
}

.welcome-row p {
  margin-top: 8px;

  color: var(--text-light);

  font-size: 13px;
}



/* =========================
   HEADINGS
========================= */

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 14px;
}

.section-heading h3 {
  font-size: 15px;
  font-weight: 650;
}

.section-heading p {
  margin-top: 4px;

  color: var(--text-light);

  font-size: 11.5px;
}



/* =========================
   QUICK ACTIONS
========================= */

.quick-grid {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 13px;
}

.quick-card {
  min-height: 145px;

  padding: 20px;

  border: 1px solid var(--border);
  border-radius: 11px;

  background: var(--surface);

  text-align: left;

  cursor: pointer;

  position: relative;

  transition:
    transform 0.15s,
    box-shadow 0.15s,
    border-color 0.15s;
}

.quick-card:hover {
  transform: translateY(-2px);

  border-color: #d3d5da;

  box-shadow:
    0 8px 25px rgba(0, 0, 0, 0.055);
}

.quick-icon {
  width: 38px;
  height: 38px;

  border-radius: 9px;

  background: #f2f4f7;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 14px;

  margin-bottom: 18px;
}

.quick-content h4 {
  font-size: 13px;
  font-weight: 650;
}

.quick-content p {
  margin-top: 5px;

  max-width: 190px;

  color: var(--text-light);

  font-size: 11px;

  line-height: 1.5;
}

.quick-arrow {
  position: absolute;

  right: 18px;
  top: 20px;

  color: #b2b5bb;

  font-size: 11px;
}



/* =========================
   STATUS
========================= */

.status-heading {
  margin-top: 42px;
}

.status-grid {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 12px;
}

.status-card {
  border: 1px solid var(--border);

  background: white;

  border-radius: 10px;

  padding: 17px 18px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.status-title {
  font-size: 12.5px;
  font-weight: 600;
}

.status-description {
  margin-top: 4px;

  color: var(--text-light);

  font-size: 10.5px;
}

.status-online {
  display: flex;
  align-items: center;

  gap: 6px;

  color: #4d555e;

  font-size: 10px;
  font-weight: 550;
}

.status-online span {
  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: var(--green);
}



/* =========================
   PLACEHOLDERS
========================= */

.placeholder {
  min-height: 430px;

  border: 1px dashed #d4d7dc;
  border-radius: 13px;

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  text-align: center;

  padding: 30px;

  background: rgba(255, 255, 255, 0.45);
}

.placeholder-icon {
  width: 49px;
  height: 49px;

  border-radius: 12px;

  background: white;

  border: 1px solid var(--border);

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 16px;

  color: #555c65;
}

.placeholder h2 {
  font-size: 17px;
}

.placeholder p {
  margin-top: 7px;

  color: var(--text-light);

  font-size: 12px;
}



/* =========================
   MOBILE
========================= */

.sidebar-overlay {
  position: fixed;

  inset: 0;

  background: rgba(0, 0, 0, 0.45);

  z-index: 999;

  opacity: 0;
  visibility: hidden;

  transition: opacity 0.2s;
}



@media (max-width: 900px) {

  .sidebar {
    transform: translateX(-100%);

    transition: transform 0.22s ease;

    width: min(285px, 85vw);
  }

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

  .sidebar-overlay.open {
    opacity: 1;
    visibility: visible;
  }

  .main {
    margin-left: 0;
  }

  .mobile-menu {
    display: inline-flex;

    align-items: center;
    justify-content: center;
  }

  .mobile-close {
    display: inline-flex;

    align-items: center;
    justify-content: center;
  }

  .topbar {
    height: 77px;

    padding:
      0
      18px;
  }

  .content {
    padding: 24px 18px 40px;
  }

  .quick-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .status-grid {
    grid-template-columns: 1fr;
  }

}



@media (max-width: 560px) {

  .topbar {
    padding: 0 14px;
  }

  .topbar h1 {
    font-size: 17px;
  }

  .page-description {
    display: none;
  }

  .view-site-btn span {
    display: none;
  }

  .view-site-btn {
    width: 38px;

    padding: 0;

    justify-content: center;
  }

  .content {
    padding: 21px 14px 35px;
  }

  .welcome-row {
    margin-bottom: 27px;
  }

  .welcome-row h2 {
    font-size: 23px;
  }

  .welcome-row p {
    line-height: 1.6;
  }

  .quick-grid {
    grid-template-columns: 1fr;
  }

  .quick-card {
    min-height: auto;

    padding: 17px;

    display: flex;
    align-items: center;

    gap: 14px;
  }

  .quick-icon {
    margin-bottom: 0;

    flex-shrink: 0;
  }

  .quick-content {
    padding-right: 25px;
  }

  .quick-arrow {
    top: 50%;

    transform: translateY(-50%);
  }

  .status-heading {
    margin-top: 35px;
  }

}
