@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');

:root {
  --font-main: "Outfit", sans-serif;
}

.admin-kegiatan-page,
.admin-kegiatan-page *,
.delete-modal,
.delete-modal * {
  font-family: var(--font-main);
}
.admin-kegiatan-page {
  padding: 0 0 72px;
  background: linear-gradient(180deg, #ffffff 0%, var(--sky-50) 100%);
}

.admin-profile-page {
  padding: 0 0 72px;
  background:
    radial-gradient(circle at top right, rgba(13, 86, 182, 0.10), transparent 34%),
    linear-gradient(180deg, white 0%, var(--sky-50) 100%);
}

/* =========================================================
   HERO SPLIT 60/40 COMPACT
========================================================= */
.admin-hero-split {
  display: grid;
  grid-template-columns: 60% 40%;
  min-height: 540px;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--blue-900) 0%,
    var(--blue-800) 55%,
    var(--blue-700) 100%
  );
}

.admin-hero-left-panel {
  position: relative;
  display: flex;
  align-items: center;
  background: transparent;
}

.admin-hero-left-panel::before {
  content: "";
  position: absolute;
  top: -160px;
  left: -120px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}

.admin-hero-left-panel::after {
  content: "";
  position: absolute;
  right: -140px;
  bottom: -180px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.admin-hero-copy {
  position: relative;
  z-index: 3;
  max-width: 720px;
  padding: 44px 0;
}

.hero-badge-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.admin-hero-copy h1 {
  max-width: 600px;
  margin: 20px 10px 16px;
  color: white;
  font-size: clamp(30px, 4.2vw, 56px);
  line-height: 1.02;
  letter-spacing: -1.4px;
}

.admin-hero-copy p {
  max-width: 720px;
  margin: 10px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 16px;
  line-height: 1.75;
}

.admin-hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-main-btn,
.hero-outline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: 0.2s ease;
}

.hero-main-btn {
  background: white;
  color: var(--blue-900);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.10);
}

.hero-main-btn:hover {
  transform: translateY(-1px);
}

.hero-outline-btn {
  background: rgba(255, 255, 255, 0.08);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-outline-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.admin-hero-right-panel {
  position: relative;
  overflow: hidden;
  background: #eaf1fb;
}

.hero-split-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* =========================================================
   ADMIN PROFILE CONTENT
========================================================= */
.admin-profile-content-wrap {
  padding-top: 32px;
}

.profile-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 0 0 24px;
}

.profile-stat-card {
  padding: 22px;
  border-radius: 22px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(10, 47, 107, 0.07);
}

.profile-stat-card strong {
  display: block;
  color: var(--blue-800);
  font-size: 30px;
  margin-bottom: 8px;
}

.profile-stat-card span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.profile-app-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
}

.profile-app-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 26px;
  box-shadow: 0 14px 36px rgba(10, 47, 107, 0.08);
}

.profile-app-card h2,
.profile-app-card h3 {
  margin-top: 0;
  color: var(--blue-900);
}

.profile-app-card p {
  color: var(--muted);
  line-height: 1.8;
}

.wide-card p + p {
  margin-top: 14px;
}

.card-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #e7f0ff;
  color: var(--blue-800);
  font-size: 12px;
  font-weight: 800;
}

.feature-list {
  display: grid;
  gap: 14px;
}

.feature-list div {
  padding: 16px;
  border-radius: 16px;
  background: var(--sky-50);
  border: 1px solid var(--line);
}

.feature-list strong {
  display: block;
  color: var(--blue-900);
  margin-bottom: 5px;
}

.feature-list span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* =========================================================
   PURPOSE SECTION
========================================================= */
.profile-purpose-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
  margin-top: 24px;
  padding: 30px;
  border-radius: 26px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 14px 36px rgba(10, 47, 107, 0.08);
}

.profile-purpose-section h2 {
  margin: 0;
  max-width: 420px;
  color: var(--blue-900);
  font-size: 30px;
  line-height: 1.2;
}

.purpose-list {
  display: grid;
  gap: 12px;
}

.purpose-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 16px;
  background: var(--sky-50);
  border: 1px solid var(--line);
}

.purpose-item span {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: var(--blue-800);
  color: white;
  font-size: 13px;
  font-weight: 800;
}

.purpose-item p {
  margin: 2px 0 0;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 600;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1100px) {
  .admin-hero-split,
  .profile-app-grid,
  .profile-purpose-section {
    grid-template-columns: 1fr;
  }

  .admin-hero-split {
    min-height: auto;
  }

  .admin-hero-left-panel {
    min-height: 500px;
  }

  .admin-hero-right-panel {
    min-height: 380px;
  }

  .profile-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .admin-hero-copy {
    padding: 42px 0;
  }

  .admin-hero-copy h1 {
    font-size: clamp(34px, 10vw, 52px);
    letter-spacing: -1.2px;
  }

  .admin-hero-copy p {
    font-size: 15px;
  }

  .profile-stats-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .profile-stats-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .admin-hero-buttons {
    flex-direction: column;
  }

  .hero-main-btn,
  .hero-outline-btn {
    width: 100%;
  }

  .profile-app-card,
  .profile-purpose-section {
    padding: 20px;
  }
}
/* =========================================================
   TURUNIN BACKGROUND BIRU HERO
   Taruh di paling bawah CSS
========================================================= */

.admin-hero-split {
  min-height: 520px;
}

.admin-hero-left-panel {
  min-height: 520px;
}

.admin-hero-right-panel {
  min-height: 549px;
}

@media (max-width: 1100px) {
  .admin-hero-left-panel {
    min-height: 560px;
  }

  .admin-hero-right-panel {
    min-height: 420px;
  }
}

@media (max-width: 768px) {
  .admin-hero-left-panel {
    min-height: 530px;
  }

  .admin-hero-right-panel {
    min-height: 390px;
  }
}

@media (max-width: 560px) {
  .admin-hero-left-panel {
    min-height: 500px;
  }

  .admin-hero-right-panel {
    min-height: 340px;
  }
}

/* =========================================================
   GANTI BACKGROUND HERO JADI PATTERN BADUY
   Taruh di paling bawah CSS
========================================================= */

.admin-hero-split {
  background-image:
    linear-gradient(
      135deg,
      rgba(12, 74, 160, 0.78) 0%,
      rgba(13, 86, 182, 0.72) 48%,
      rgba(31, 111, 211, 0.68) 100%
    ),
    url("/images/baduy.jpg");

  background-size:
    cover,
    210px auto;

  background-repeat:
    no-repeat,
    repeat;

  background-position:
    center,
    center;
}

/* biar pattern tetap kelihatan dan dekorasi bulat lama nggak ganggu */
.admin-hero-left-panel::before,
.admin-hero-left-panel::after {
  display: none;
}

/* tambahin layer gelap tipis biar teks tetap kebaca */
.admin-hero-left-panel {
  background: rgba(5, 35, 85, 0.18);
}

/* kanan tetap foto */
.admin-hero-right-panel {
  background: transparent;
}

/* =========================================================
   SITE HEADER
========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(10, 47, 107, 0.06);
}

.header-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

/* =========================================================
   BRAND
========================================================= */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: fit-content;
  color: var(--blue-900);
  text-decoration: none;
}

.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: white;
  font-size: 22px;
  font-weight: 900;
  background-color: #0d56b6;
  background-image:
    linear-gradient(
      135deg,
      rgba(7, 45, 105, 0.62) 0%,
      rgba(10, 63, 138, 0.56) 48%,
      rgba(13, 86, 182, 0.50) 100%
    ),
    url("/images/baduy.jpg");
  background-repeat: no-repeat, repeat;
  background-size: cover, 90px auto;
  background-position: center, center;
  box-shadow: 0 12px 26px rgba(10, 63, 138, 0.22);
}

.brand h1 {
  margin: 0;
  color: var(--blue-900);
  font-size: 18px;
  line-height: 1.1;
  font-weight: 900;
}

.brand p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

/* =========================================================
   NAV MENU
========================================================= */
.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
}

.nav-menu a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: 0.2s ease;
}

.nav-menu a:hover {
  color: var(--blue-900);
  background: #e7f0ff;
}

/* =========================================================
   HEADER ACTIONS
========================================================= */
.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: fit-content;
}

/* =========================================================
   USER DROPDOWN
========================================================= */
.user-dropdown {
  position: relative;
}

.user-dropdown summary {
  list-style: none;
}

.user-dropdown summary::-webkit-details-marker {
  display: none;
}

/* tombol user/login pakai bg baduy */
.baduy-user-trigger {
  position: relative;
  overflow: hidden;
  isolation: isolate;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  min-height: 58px;
  padding: 0 28px;
  border-radius: 999px;

  color: #ffffff !important;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;

  border: 1px solid rgba(255, 255, 255, 0.16) !important;

  background-color: #074a9a;
  background-image:
    linear-gradient(
      135deg,
      rgba(12, 74, 160, 0.78) 0%,
      rgba(13, 86, 182, 0.72) 48%,
      rgba(31, 111, 211, 0.68) 100%
    ),
    url("/images/baduy.jpg") !important;

  background-repeat: no-repeat, repeat !important;
  background-size: cover, 130px auto !important;
  background-position: center, center !important;

  box-shadow:
    0 14px 30px rgba(10, 63, 138, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);

  cursor: pointer;
  transition: 0.2s ease;
}

.baduy-user-trigger:hover {
  transform: translateY(-1px);
  box-shadow:
    0 18px 36px rgba(10, 63, 138, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.user-trigger-name {
  position: relative;
  z-index: 2;
  max-width: 190px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.user-trigger-arrow {
  position: relative;
  z-index: 2;
  font-size: 12px;
  opacity: 0.95;
  margin-top: 2px;
}

.user-dropdown[open] .user-trigger-arrow {
  transform: rotate(180deg);
}

/* dropdown menu */
.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 260px;
  padding: 14px;
  border-radius: 20px;
  background: white;
  border: 1px solid var(--line);
  box-shadow:
    0 26px 70px rgba(10, 47, 107, 0.18),
    0 10px 24px rgba(10, 47, 107, 0.10);
  z-index: 50;
}

.user-dropdown-info {
  padding: 12px;
  border-radius: 16px;
  background: var(--sky-50);
  border: 1px solid var(--line);
  margin-bottom: 12px;
}

.user-dropdown-info strong {
  display: block;
  color: var(--blue-900);
  font-size: 14px;
  margin-bottom: 4px;
}

.user-dropdown-info small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  word-break: break-all;
}

/* logout button */
.dropdown-logout-btn {
  width: 100%;
  min-height: 42px;
  border: none;
  border-radius: 14px;
  background: #fff0f0;
  color: #b42318;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  font-family: inherit;
  border: 1px solid #ffd0d0;
  transition: 0.2s ease;
}

.dropdown-logout-btn:hover {
  background: #b42318;
  color: white;
}

/* login fallback */
.login-btn {
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
}

/* =========================================================
   RESPONSIVE HEADER
========================================================= */
@media (max-width: 1100px) {
  .header-inner {
    flex-wrap: wrap;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .nav-menu {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .nav-menu::-webkit-scrollbar {
    height: 4px;
  }

  .nav-menu::-webkit-scrollbar-thumb {
    background: #d7e5f7;
    border-radius: 999px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    gap: 16px;
  }

  .brand h1 {
    font-size: 16px;
  }

  .brand p {
    font-size: 11px;
  }

  .brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .baduy-user-trigger {
    min-height: 50px;
    padding: 0 20px;
    font-size: 15px;
  }

  .user-trigger-name {
    max-width: 140px;
  }

  .user-dropdown-menu {
    right: 0;
    width: 240px;
  }
}

@media (max-width: 560px) {
  .header-inner {
    align-items: flex-start;
  }

  .brand {
    max-width: 190px;
  }

  .brand h1 {
    font-size: 15px;
  }

  .brand p {
    display: none;
  }

  .baduy-user-trigger {
    min-height: 46px;
    padding: 0 16px;
    font-size: 14px;
  }

  .user-trigger-name {
    max-width: 110px;
  }

  .user-dropdown-menu {
    width: 220px;
  }

  .nav-menu a {
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }
}

/* =========================================================
   LOGOUT BUTTON - BG BADUY
   Taruh paling bawah app.css / css header
========================================================= */
.dropdown-logout-btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;

  width: 100%;
  min-height: 44px;
  border: none !important;
  border-radius: 14px;

  color: #ffffff !important;
  font-size: 14px;
  font-weight: 900;
  font-family: inherit;
  cursor: pointer;

  background-color: #074a9a;
  background-image:
    linear-gradient(
      135deg,
      rgba(12, 74, 160, 0.78) 0%,
      rgba(13, 86, 182, 0.72) 48%,
      rgba(31, 111, 211, 0.68) 100%
    ),
    url("/images/baduy.jpg") !important;

  background-repeat: no-repeat, repeat !important;
  background-size: cover, 120px auto !important;
  background-position: center, center !important;

  box-shadow:
    0 12px 26px rgba(10, 63, 138, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);

  transition: 0.2s ease;
}

.dropdown-logout-btn:hover {
  transform: translateY(-1px);

  background-color: #074a9a;
  background-image:
    linear-gradient(
      135deg,
      rgba(12, 74, 160, 0.78) 0%,
      rgba(13, 86, 182, 0.72) 48%,
      rgba(31, 111, 211, 0.68) 100%
    ),
    url("/images/baduy.jpg") !important;

  box-shadow:
    0 16px 32px rgba(10, 63, 138, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

/* =========================================================
   NAIKIN TEXT HERO ADMIN PROFILE
========================================================= */

.admin-hero-split .admin-hero-left-panel {
  align-items: flex-start !important;
}

.admin-hero-split .admin-hero-left-panel > .container {
  padding-top: 70px !important;
  padding-left: 18px;
}

.admin-hero-split .admin-hero-copy {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}