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

:root {
  --sidebar: #101936;
  --primary: #5b4cf0;
  --primary-dark: #4938d8;
  --background: #f5f7fc;
  --card: #fff;
  --text: #172044;
  --muted: #7b849d;
  --border: #e7eaf2;
  --success: #1bb77a;
}

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 255px;
  height: 100vh;
  padding: 28px 14px 20px;
  display: flex;
  flex-direction: column;
  background: var(--sidebar);
  color: #fff;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 12px 30px;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--primary);
  font-size: 23px;
}

.brand h1 {
  font-size: 17px;
  margin-bottom: 4px;
}

.brand p {
  color: #aeb6d4;
  font-size: 9px;
}

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

.nav-item {
  width: 100%;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  gap: 13px;
  border-radius: 9px;
  background: transparent;
  color: #dfe3f3;
  text-align: left;
  font-size: 14px;
}

.nav-item span {
  width: 20px;
  text-align: center;
  font-size: 18px;
}

.nav-item:hover,
.nav-item.active {
  background: var(--primary);
  color: #fff;
}

.sidebar-footer {
  margin-top: auto;
  text-align: center;
  color: #aeb6d4;
  font-size: 11px;
}

.nepal-mark {
  font-size: 30px;
  margin-bottom: 8px;
}

.main-content {
  margin-left: 255px;
  min-height: 100vh;
  padding: 28px 35px 50px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.topbar h2 {
  font-size: 25px;
  margin-bottom: 7px;
}

.topbar p {
  color: var(--muted);
  font-size: 13px;
}

.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.notification {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  color: var(--text);
  box-shadow: 0 3px 12px rgba(20, 30, 70, 0.08);
}

.avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #dce4ff;
  color: var(--primary);
  font-weight: bold;
}

.profile-arrow {
  color: var(--muted);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 11px;
  box-shadow: 0 4px 16px rgba(24, 36, 80, 0.04);
}

.stat-card p {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}

.stat-card h3 {
  font-size: 25px;
  margin-bottom: 4px;
}

.stat-card span {
  color: var(--muted);
  font-size: 10px;
}

.stat-card .positive {
  color: var(--success);
}

.stat-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 20px;
}

.blue {
  background: #e7efff;
  color: #3e79ee;
}

.yellow {
  background: #fff5d8;
  color: #e8a51c;
}

.purple {
  background: #eee8ff;
  color: #7257e8;
}

.cyan {
  background: #e4f5ff;
  color: #298ad4;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: 20px;
}

.main-column {
  min-width: 0;
}

.ai-banner {
  min-height: 165px;
  padding: 25px;
  margin-bottom: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(105deg, #eeefff, #e7f1ff);
}

.ai-banner-content {
  max-width: 570px;
}

.sparkle {
  display: block;
  margin-bottom: 5px;
  color: var(--primary);
  font-size: 22px;
}

.ai-banner h2 {
  font-size: 19px;
  margin-bottom: 8px;
}

.ai-banner p {
  max-width: 500px;
  color: #697394;
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 15px;
}

.primary-button {
  padding: 11px 18px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 12px;
  box-shadow: 0 5px 14px rgba(91, 76, 240, 0.2);
}

.primary-button:hover {
  background: var(--primary-dark);
}

.ai-illustration {
  position: relative;
  width: 230px;
  margin-right: 20px;
}

.browser-window {
  width: 200px;
  padding: 7px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(46, 66, 130, 0.12);
  transform: rotate(-2deg);
}

.browser-bar {
  display: flex;
  gap: 4px;
  margin-bottom: 7px;
}

.browser-bar span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c8cce0;
}

.browser-content {
  height: 100px;
  padding: 9px;
  display: flex;
  gap: 9px;
  background: #f1f3fa;
}

.mock-image {
  width: 58%;
  height: 100%;
  border-radius: 5px;
  background: #cbd8ff;
}

.mock-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mock-lines span {
  height: 7px;
  border-radius: 4px;
  background: #d4d8e8;
}

.ai-badge {
  position: absolute;
  right: 2px;
  top: -8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: bold;
}

.section-heading,
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-heading h2,
.panel h2 {
  font-size: 18px;
}

.text-button {
  background: transparent;
  color: var(--primary);
  font-size: 11px;
  font-weight: 600;
}

.website-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.website-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(24, 36, 80, 0.04);
}

.website-preview {
  position: relative;
  height: 125px;
  padding: 12px;
  overflow: hidden;
  color: #fff;
}

.hotel-preview {
  background: linear-gradient(135deg, #273d68, #8b654e);
}

.grocery-preview {
  background: linear-gradient(135deg, #17775c, #92ba62);
}

.medical-preview {
  background: linear-gradient(135deg, #8cc4e6, #e7f4fb);
  color: #1d4160;
}

.stationery-preview {
  background: linear-gradient(135deg, #e99d9a, #f6cf72);
}

.restaurant-preview {
  background: linear-gradient(135deg, #1c1c25, #8a4f27);
}

.preview-label {
  font-size: 7px;
  font-weight: bold;
}

.preview-content {
  position: absolute;
  left: 16px;
  bottom: 13px;
}

.preview-content h3 {
  font-size: 14px;
  line-height: 1.15;
  margin-bottom: 7px;
}

.preview-content button {
  padding: 4px 8px;
  border-radius: 4px;
  background: #fff;
  color: #25345d;
  font-size: 7px;
}

.website-info {
  padding: 13px;
}

.website-info h3 {
  font-size: 13px;
  margin-bottom: 8px;
}

.website-info p {
  color: #697394;
  font-size: 10px;
  margin-bottom: 5px;
}

.website-info small {
  color: #9aa1b5;
  font-size: 9px;
}

.card-actions {
  display: flex;
  gap: 5px;
  margin-top: 12px;
}

.card-actions button {
  flex: 1;
  padding: 7px 4px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: #58627e;
  font-size: 9px;
}

.card-actions button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.card-actions .delete-button {
  flex: 0 0 31px;
  color: #e15b64;
}

.new-website-card {
  min-height: 270px;
  display: grid;
  place-items: center;
  border: 1px dashed #cfd4e4;
  background: #fafbff;
}

.new-website-content {
  padding: 20px;
  text-align: center;
}

.new-icon {
  width: 43px;
  height: 43px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #f0edff;
  color: var(--primary);
  font-size: 25px;
}

.new-website-content h3 {
  font-size: 13px;
  margin-bottom: 6px;
}

.new-website-content p {
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 13px;
}

.right-column {
  display: flex;
  flex-direction: column;
  gap: 17px;
}

.panel {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(24, 36, 80, 0.04);
}

.quick-actions .primary-button {
  width: 100%;
  margin: 5px 0 12px;
}

.action-item {
  width: 100%;
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: #4e5874;
  text-align: left;
  font-size: 11px;
}

.action-item:hover {
  color: var(--primary);
}

.activity-item {
  display: flex;
  gap: 11px;
  padding: 12px 0;
  border-bottom: 1px solid #eef0f5;
}

.activity-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.activity-icon {
  width: 31px;
  height: 31px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f0edff;
  color: var(--primary);
  font-size: 13px;
}

.activity-item strong {
  display: block;
  margin-bottom: 3px;
  font-size: 10px;
}

.activity-item p,
.activity-item small {
  color: var(--muted);
  font-size: 9px;
}

.activity-item p {
  margin-bottom: 2px;
}

.help-panel {
  padding: 21px;
  border: 1px solid #ddd8ff;
  border-radius: 11px;
  background: linear-gradient(135deg, #f4f1ff, #f5f8ff);
}

.help-icon {
  display: block;
  margin-bottom: 8px;
  font-size: 23px;
}

.help-panel h2 {
  font-size: 15px;
  margin-bottom: 7px;
}

.help-panel p {
  color: #68718e;
  font-size: 10px;
  line-height: 1.6;
  margin-bottom: 13px;
}

.placeholder-section {
  display: none;
  padding: 45px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}

.placeholder-section.active-section {
  display: block;
}

.placeholder-section h2 {
  margin-bottom: 10px;
}

.placeholder-section p {
  color: var(--muted);
  margin-bottom: 20px;
}

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

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

  .right-column {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .sidebar {
    width: 75px;
    padding: 20px 8px;
  }

  .brand {
    justify-content: center;
    padding: 0 0 25px;
  }

  .brand > div:last-child {
    display: none;
  }

  .nav-item {
    justify-content: center;
    padding: 13px 5px;
    font-size: 0;
  }

  .nav-item span {
    font-size: 18px;
  }

  .sidebar-footer {
    display: none;
  }

  .main-content {
    margin-left: 75px;
    padding: 22px;
  }

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