
/* NURUL ISHLAH — ADMIN PROFESSIONAL V3 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --ni3-ink: #183b32;
  --ni3-muted: #71857b;
  --ni3-border: #e2e9e4;
  --ni3-gold: #c59a60;
  --ni3-green: #0d5640;
}

/* Typography */
.admin-shell,
.admin-shell button,
.admin-shell input,
.admin-shell textarea,
.admin-shell select {
  font-family: 'Plus Jakarta Sans', 'Segoe UI', Arial, sans-serif;
}

/* Sidebar */
.admin-shell {
  grid-template-columns: 260px minmax(0, 1fr);
  background: linear-gradient(
    90deg, #0d312b 0, #0d312b 260px, #f6f8f6 260px
  );
}

.admin-shell .sidebar {
  background: #0d312b;
  scrollbar-width: thin;
  scrollbar-color: #40645b transparent;
}

.admin-shell .side-head {
  padding: 24px 20px 20px;
}

.admin-shell .side-brand strong {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .015em;
}

.admin-shell .side-chip {
  margin-top: 18px;
  padding: 10px 2px;
  font-size: 10px;
}

.admin-shell .side-nav {
  padding: 0 12px;
}

.admin-shell .side-nav-label,
.admin-shell .side-nav-label.inset {
  font-size: 10px;
  letter-spacing: .14em;
  color: #9ac3b1;
  padding-top: 20px;
}

.admin-shell .side-nav button {
  border-radius: 10px;
  min-height: 43px;
  padding: 10px 12px;
  margin: 2px 0;
  gap: 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: #d0e1d8;
}

.admin-shell .side-nav button > span {
  font-size: 16px;
  width: 24px;
  color: #b6d4c4;
}

.admin-shell .side-nav button.selected {
  background: #1d5b48;
  color: #fff;
  box-shadow: inset 3px 0 var(--ni3-gold);
}

.admin-shell .side-nav button.selected > span {
  color: #f4cf8c;
}

.admin-shell .side-nav button:hover {
  background: #ffffff18;
}

.admin-shell .side-bottom {
  background: #0d312b;
  border-color: #ffffff22;
}

/* Main layout */
.admin-shell .main-shell {
  background: #f6f8f6;
}

.admin-shell .topbar {
  min-height: 78px;
  padding: 15px clamp(18px, 3vw, 40px);
  background: #fff;
  border-color: var(--ni3-border);
}

.admin-shell .topbar-heading h1 {
  font-family: inherit;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -.045em;
  color: var(--ni3-ink);
  line-height: 1.24;
}

.admin-shell .topbar-heading p {
  font-size: 11px;
  color: var(--ni3-muted);
}

.admin-shell .btn-outline {
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 13px;
}

.admin-shell .content-shell {
  padding: 25px clamp(18px, 3vw, 40px) 42px;
  max-width: 1560px;
}

.admin-shell .page-subrow {
  margin-bottom: 18px;
}

.admin-shell:has(.dashboard-hello) .page-subrow {
  display: none;
}

/* Welcome card */
.admin-shell .dashboard-hello {
  background: linear-gradient(110deg, #f5f8f4, #eef4ef);
  border: 1px solid #dbe7df;
  border-left: 4px solid var(--ni3-gold);
  border-radius: 12px;
  min-height: 0;
  padding: 23px 26px;
  box-shadow: none;
}

.admin-shell .dashboard-hello:after {
  content: none;
}

.admin-shell .dashboard-hello .overline {
  display: none;
}

.admin-shell .dashboard-hello h2 {
  font-family: inherit;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.35;
  color: var(--ni3-ink);
  margin: 0 0 8px;
}

.admin-shell .dashboard-hello h2 span {
  color: #a37b45;
}

.admin-shell .dashboard-hello p {
  font-size: 12.5px;
  line-height: 1.65;
  color: #64796e;
  margin: 0 0 10px;
}

.admin-shell .hero-out {
  font-size: 11px;
  font-weight: 800;
  margin: 0;
  color: #0e674b;
}

/* Compact statistics */
.admin-shell .metric-grid {
  gap: 12px;
  margin-top: 16px;
}

.admin-shell .metric-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 3px 14px;
  min-height: 94px;
  padding: 17px 19px;
  border: 1px solid var(--ni3-border);
  border-radius: 12px;
  box-shadow: none;
}

.admin-shell .metric-icon {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: #eaf4ed;
  color: #166247;
  font-size: 19px;
}

.admin-shell .metric-card strong {
  grid-column: 2;
  grid-row: 1;
  font-family: inherit;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.1;
  color: var(--ni3-ink);
}

.admin-shell .metric-card > span:last-child {
  grid-column: 2;
  grid-row: 2;
  font-size: 11.5px;
  color: #6c8074;
  font-weight: 600;
  line-height: 1.4;
}

/* Dashboard panels */
.admin-shell .dashboard-panels {
  gap: 14px;
  margin-top: 15px;
}

.admin-shell .edit-panel {
  border: 1px solid var(--ni3-border);
  border-radius: 12px;
  padding: clamp(19px, 2.2vw, 26px);
  margin-bottom: 14px;
  box-shadow: none;
  background: #fff;
}

.admin-shell .card-heading {
  margin-bottom: 16px;
}

.admin-shell .card-heading h3,
.admin-shell .edit-panel h3 {
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -.025em;
  color: var(--ni3-ink);
}

.admin-shell .quick-grid {
  gap: 9px;
}

.admin-shell .quick-link {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 3px 11px;
  min-height: 73px;
  padding: 12px 14px;
  border: 1px solid #e3ebe5;
  border-radius: 9px;
  background: #fafcf9;
}

.admin-shell .quick-link:hover {
  background: #eef5ef;
  border-color: #bdd9c6;
}

.admin-shell .quick-link span {
  grid-column: 1;
  grid-row: 1 / 3;
  font-size: 19px;
  color: #2d7957;
}

.admin-shell .quick-link strong {
  grid-column: 2;
  grid-row: 1;
  font-size: 12px;
  font-weight: 750;
}

.admin-shell .quick-link small {
  grid-column: 2;
  grid-row: 2;
  font-size: 10.5px;
}

.admin-shell .system-line {
  font-size: 12px;
  padding: 12px 0;
}

.admin-shell .note {
  background: #f4f7f2;
  border: 1px solid #e5ece5;
  border-left: 3px solid var(--ni3-gold);
  border-radius: 8px;
  color: #687b6d;
  font-size: 11.5px;
  line-height: 1.7;
  padding: 12px;
}

/* Editors */
.admin-shell .section-intro h2 {
  font-family: inherit;
  font-size: clamp(23px, 2.5vw, 29px);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.3;
  color: var(--ni3-ink);
}

.admin-shell .form-field > label {
  font-size: 12px;
  font-weight: 700;
}

.admin-shell .form-field input:not([type=file]):not([type=checkbox]),
.admin-shell .form-field textarea,
.admin-shell .form-field select,
.admin-shell .gallery-input input {
  font-family: inherit;
  border-radius: 9px;
  background: #fff;
  font-size: 13px;
}

.admin-shell .btn-save {
  border-radius: 9px;
  font-weight: 800;
  font-size: 12px;
  background: var(--ni3-green);
}

.admin-shell .btn-secondary,
.admin-shell .upload-action,
.admin-shell .repeat-card,
.admin-shell .gallery-edit {
  border-radius: 9px;
}

/* Footer */
.admin-shell .admin-footer {
  font-size: 11px;
  background: #fff;
  padding: 16px clamp(18px, 3vw, 40px);
}

.admin-shell .wafa-love-link {
  font-family: inherit;
  text-decoration: none;
}

/* Responsive */
@media (max-width: 1150px) {
  .admin-shell .dashboard-panels {
    grid-template-columns: 1fr;
  }
  .admin-shell .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .admin-shell {
    grid-template-columns: 1fr;
    background: #f6f8f6;
  }
  .admin-shell .sidebar {
    width: 270px;
  }
}

@media (max-width: 650px) {
  .admin-shell .content-shell {
    padding: 16px 14px 28px;
  }
  .admin-shell .topbar {
    padding: 12px 15px;
  }
  .admin-shell .topbar-heading h1 {
    font-size: 19px;
  }
  .admin-shell .dashboard-hello {
    padding: 20px 18px;
  }
  .admin-shell .dashboard-hello h2 {
    font-size: 20px;
  }
  .admin-shell .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 11px;
  }
  .admin-shell .metric-card {
    grid-template-columns: 35px minmax(0, 1fr);
    gap: 3px 8px;
    min-height: 87px;
    padding: 12px 10px;
  }
  .admin-shell .metric-icon {
    width: 33px;
    height: 33px;
    font-size: 16px;
  }
  .admin-shell .metric-card strong {
    font-size: 24px;
  }
  .admin-shell .metric-card > span:last-child {
    font-size: 10px;
  }
  .admin-shell .quick-grid {
    grid-template-columns: 1fr;
  }
  .admin-shell .edit-panel {
    padding: 19px 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .admin-shell * {
    transition: none !important;
  }
}
