/* ===== Dashboard Grid — tambahan style, tidak mengubah style.css lama ===== */

.dash-wrap {
  max-width: 1280px;
  margin: 24px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 22px;
  align-items: start;
}

@media (max-width: 900px) {
  .dash-wrap { grid-template-columns: 1fr; }
}

/* --- Kolom kiri: sorotan/infografis --- */
.dash-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.dash-side-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.dash-side-card img { width: 100%; display: block; }
.dash-side-card .dash-side-caption {
  padding: 10px 14px;
  font-size: 13px;
  color: #555;
  border-top: 1px solid var(--border);
}
.dash-emergency {
  background: #ffc42b;
  border-radius: 12px;
  padding: 14px;
  font-size: 12px;
  color: #2b2b2b;
}
.dash-emergency h4 {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: .3px;
}
.dash-emergency table { width: 100%; border-collapse: collapse; }
.dash-emergency td { padding: 3px 0; vertical-align: top; }
.dash-emergency td.lbl { font-weight: 700; width: 55%; }

/* --- Banner event, 3 kolom --- */
.dash-banners {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}
.dash-banners img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: block;
}
@media (max-width: 700px) {
  .dash-banners { grid-template-columns: 1fr; }
}

/* --- Grid fitur, rapi 3 kolom --- */
.dash-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 900px) {
  .dash-features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .dash-features { grid-template-columns: 1fr; }
}

.dash-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.dash-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.08);
  border-color: var(--teal);
}
.dash-card-icon {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eef8f9, #e5f2f4);
}
.dash-card-icon svg { width: 46px; height: 46px; }
.dash-card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.dash-card-body h3 {
  margin: 0 0 6px;
  font-size: 15.5px;
  color: var(--teal-dark);
}
.dash-card-body p {
  margin: 0 0 14px;
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  flex: 1;
}
.dash-btn {
  align-self: flex-start;
  border: 1px solid var(--teal);
  color: var(--teal-dark);
  background: #fff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
.dash-btn:hover { background: var(--teal); color: #fff; }

/* --- Strip aspirasi bawah --- */
.dash-strip {
  max-width: 1280px;
  margin: 8px auto 0;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.dash-strip a { display: block; }
.dash-strip img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: block;
}
@media (max-width: 700px) {
  .dash-strip { grid-template-columns: 1fr; }
}

.dash-wa-banner {
  max-width: 1280px;
  margin: 18px auto 0;
  padding: 0 20px;
}
.dash-wa-banner img {
  width: 100%;
  border-radius: 10px;
  display: block;
}

body.dark-mode .dash-side-card,
body.dark-mode .dash-card {
  background: #1c1c1c;
  border-color: #333;
}
body.dark-mode .dash-card-icon {
  background: linear-gradient(135deg, #16302f, #10201f);
}
body.dark-mode .dash-card-body h3 { color: #6fd3d9; }
body.dark-mode .dash-card-body p { color: #aaa; }
body.dark-mode .dash-side-card .dash-side-caption { color: #bbb; border-color: #333; }
