.dashboard-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 270px 1fr;
  background: #f4f6f8;
  color: #111827;
}

.dashboard-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #111827;
  color: #ffffff;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.dashboard-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 88px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: #dc2626;
  color: #ffffff;
  font-weight: 900;
  font-size: 18px;
  overflow: hidden;
}

.dashboard-brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ffffff;
}

.dashboard-brand.has-synergy-logo {
  justify-content: center;
  padding: 10px 14px;
}

.dashboard-brand-logo.is-synergy-logo {
  width: 210px;
  height: 62px;
  border-radius: 8px;
  background: #ffffff;
}

.dashboard-brand-logo.is-synergy-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.dashboard-brand.has-synergy-logo .dashboard-brand-text {
  display: none;
}

.dashboard-brand-text {
  min-width: 0;
}

.dashboard-brand-name {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-brand-subtitle {
  margin-top: 3px;
  font-size: 11px;
  color: #9ca3af;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-menu {
  flex: 1;
  overflow-y: auto;
  padding: 18px 12px;
}

.dashboard-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 5px;
  padding: 12px 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #d1d5db;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease;
}

.dashboard-menu-item:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
}

.dashboard-menu-item.is-active {
  background: #dc2626;
  color: #ffffff;
}

.dashboard-menu-item-icon {
  width: 24px;
  text-align: center;
  flex: 0 0 24px;
}

.dashboard-menu-item-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-user-block {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 13px;
}

.dashboard-user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: #374151;
  color: #ffffff;
  font-weight: 800;
}

.dashboard-user-info {
  min-width: 0;
}

.dashboard-user-name {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-user-role {
  margin-top: 2px;
  font-size: 11px;
  color: #9ca3af;
}

.dashboard-logout {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  font-size: 13px;
}

.dashboard-logout:hover {
  background: rgba(255, 255, 255, 0.06);
}

.dashboard-main {
  min-width: 0;
  min-height: 100vh;
}

.dashboard-topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 28px;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 20;
}

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

.dashboard-page-title {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
}

.dashboard-organization-name {
  margin-top: 3px;
  font-size: 12px;
  color: #6b7280;
}

.dashboard-topbar-user {
  font-size: 13px;
  color: #4b5563;
}

.dashboard-mobile-menu {
  display: none;
  border: 0;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
}

.dashboard-content {
  padding: 28px;
}

.dashboard-welcome {
  margin-bottom: 24px;
}

.dashboard-welcome-title {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
}

.dashboard-welcome-text {
  margin-top: 7px;
  color: #6b7280;
  font-size: 14px;
}

.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.dashboard-card {
  min-height: 130px;
  padding: 20px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 5px 18px rgba(15, 23, 42, 0.05);
}

.dashboard-card-title {
  font-size: 13px;
  color: #6b7280;
  font-weight: 700;
}

.dashboard-card-value {
  margin-top: 12px;
  font-size: 28px;
  font-weight: 900;
}

.dashboard-module-placeholder {
  padding: 30px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

.dashboard-module-placeholder h2 {
  margin-top: 0;
  margin-bottom: 8px;
}

.dashboard-module-placeholder p {
  margin: 0;
  color: #6b7280;
}

.dashboard-loading { min-height: 55vh; display: grid; place-items: center; color: #607087; font-weight: 800; }
.dashboard-stats-hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 24px; margin-bottom: 18px; border-radius: 18px; background: linear-gradient(125deg, #10233e, #183b64); color: #fff; box-shadow: 0 12px 28px rgba(15,35,64,.15); }
.dashboard-stats-hero span { color: #ff5a65; font-size: 11px; font-weight: 950; letter-spacing: 1.3px; }
.dashboard-stats-hero h2 { margin: 4px 0; font-size: 27px; }
.dashboard-stats-hero p { margin: 0; color: #c8d5e4; font-size: 13px; }
.dashboard-live { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; color: #d9e5f2; }
.dashboard-live i { width: 9px; height: 9px; border-radius: 50%; background: #21c77a; box-shadow: 0 0 0 5px rgba(33,199,122,.14); }
.dashboard-metric-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin-bottom: 18px; }
.dashboard-metric { position: relative; overflow: hidden; min-height: 118px; padding: 18px 20px; border: 1px solid #dce5ef; border-radius: 15px; background: #fff; box-shadow: 0 7px 20px rgba(28,48,76,.06); }
.dashboard-metric::after { content: ""; position: absolute; top: 0; right: 0; width: 7px; height: 100%; background: #64748b; }
.dashboard-metric.is-players::after { background: #e92331; }.dashboard-metric.is-academies::after { background: #334e70; }.dashboard-metric.is-pending::after { background: #e58a00; }.dashboard-metric.is-finished::after { background: #1ba665; }
.dashboard-metric small { display: block; color: #65748a; font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: .5px; }
.dashboard-metric strong { display: block; margin: 7px 0 1px; color: #10233e; font-size: 34px; line-height: 1; }
.dashboard-metric span { color: #7a8798; font-size: 12px; }
.dashboard-storage { display: grid; grid-template-columns: 1fr minmax(300px,.8fr); gap: 24px; align-items: center; margin-bottom: 18px; padding: 18px 20px; border: 1px solid #dce5ef; border-left: 6px solid #1ba665; border-radius: 15px; background: #fff; box-shadow: 0 7px 20px rgba(28,48,76,.06); }
.dashboard-storage.is-warning { border-left-color: #e58a00; }.dashboard-storage.is-critical { border-left-color: #e92331; }
.dashboard-storage-copy>span { color: #64748b; font-size: 10px; font-weight: 950; letter-spacing: 1px; }.dashboard-storage-copy h3 { margin: 3px 0 5px; color: #10233e; font-size: 18px; }.dashboard-storage-copy p { margin: 0; color: #6b788a; font-size: 12px; }
.dashboard-storage-meter>div { display: flex; justify-content: space-between; margin-bottom: 6px; color: #24374f; font-size: 12px; }.dashboard-storage-meter>div b { color: #1ba665; }.dashboard-storage.is-warning .dashboard-storage-meter>div b { color: #c87500; }.dashboard-storage.is-critical .dashboard-storage-meter>div b { color: #e92331; }
.dashboard-storage-meter>span { display: block; height: 11px; overflow: hidden; border-radius: 10px; background: #e8edf3; }.dashboard-storage-meter>span i { display: block; height: 100%; border-radius: inherit; background: #1ba665; }.dashboard-storage.is-warning .dashboard-storage-meter>span i { background: #e58a00; }.dashboard-storage.is-critical .dashboard-storage-meter>span i { background: #e92331; }.dashboard-storage-meter>small { display: block; margin-top: 5px; color: #7b8797; text-align: right; }
.dashboard-insight-grid { display: grid; grid-template-columns: minmax(330px,.8fr) minmax(420px,1.2fr); gap: 18px; align-items: start; }
.dashboard-insight { overflow: hidden; border: 1px solid #dce5ef; border-radius: 16px; background: #fff; box-shadow: 0 7px 20px rgba(28,48,76,.06); }
.dashboard-insight header { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 17px 19px; border-bottom: 1px solid #e2e8f0; }
.dashboard-insight header span { color: #e92331; font-size: 10px; font-weight: 950; letter-spacing: 1px; }.dashboard-insight h3 { margin: 3px 0 0; color: #10233e; font-size: 18px; }.dashboard-insight header>b { padding: 6px 9px; border-radius: 15px; background: #eef3f8; color: #40536c; font-size: 11px; }
.dashboard-position-list { display: grid; gap: 14px; padding: 18px 20px; }.dashboard-bar-row>div { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 13px; }.dashboard-bar-row>div b { color: #40536c; }.dashboard-bar-row>span { display: block; overflow: hidden; height: 9px; border-radius: 9px; background: #e9eef4; }.dashboard-bar-row>span i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#203d61,#e92331); }
.dashboard-class-list { max-height: 340px; overflow: auto; padding: 10px 18px 15px; }.dashboard-class-row { display: grid; grid-template-columns: 92px 1fr 42px; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid #edf1f5; font-size: 12px; }.dashboard-class-row>strong { color: #203652; }.dashboard-class-row>span { display: block; height: 7px; overflow: hidden; border-radius: 7px; background: #edf1f5; }.dashboard-class-row>span i { display: block; height: 100%; border-radius: inherit; background: #526b88; }.dashboard-class-row>b { text-align: right; color: #10233e; }

@media (max-width: 1100px) {
  .dashboard-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-insight-grid { grid-template-columns: 1fr; }
  .dashboard-storage { grid-template-columns: 1fr; gap: 14px; }
}

@media (max-width: 820px) {
  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    position: fixed;
    left: -285px;
    top: 0;
    width: 270px;
    z-index: 50;
    transition: left 0.2s ease;
  }

  .dashboard-sidebar.is-open {
    left: 0;
  }

  .dashboard-mobile-menu {
    display: inline-block;
  }

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

  .dashboard-content {
    padding: 20px;
  }

  .dashboard-topbar {
    padding: 14px 18px;
  }
  .dashboard-stats-hero { align-items: flex-start; flex-direction: column; padding: 18px; }
  .dashboard-stats-hero h2 { font-size: 23px; }
  .dashboard-metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .dashboard-metric { min-height: 102px; padding: 15px; }
  .dashboard-metric strong { font-size: 29px; }
}

@media (max-width: 480px) {
  .dashboard-metric-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-metric small { font-size: 10px; }
  .dashboard-class-row { grid-template-columns: 80px 1fr 35px; }
}
