@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

/* =========================================================
   RESET
========================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

html {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  width: 100%;
  min-height: 100vh;
  background: #f4f7fc;
  color: #172b4d;
  overflow-x: hidden;
}

/* =========================================================
   SIDEBAR
========================================================= */

.sidebar {
  position: fixed;
  top: 0;
  left: 0;

  width: 240px;
  height: 100vh;

  padding: 25px 18px;

  background: linear-gradient(180deg, #061b3a 0%, #123f78 100%);

  color: white;

  z-index: 1000;

  box-shadow: 5px 0 25px rgba(0, 0, 0, 0.15);

  overflow-y: auto;
  overflow-x: hidden;

  transition: left 0.3s ease;
}

/* LOGO SIDEBAR */

.sidebar h2 {
  display: flex;
  align-items: center;

  gap: 10px;

  color: #f6c453;

  font-size: 23px;
  font-weight: 700;

  margin-bottom: 40px;

  white-space: nowrap;
}

/* MENU SIDEBAR */

.sidebar a {
  display: flex;
  align-items: center;

  gap: 12px;

  width: 100%;

  padding: 14px;

  margin-bottom: 10px;

  color: white;

  border-radius: 12px;

  text-decoration: none;

  font-size: 14px;
  font-weight: 500;

  transition: background 0.3s ease, transform 0.3s ease;
}

.sidebar a:hover {
  background: rgba(255, 255, 255, 0.15);

  transform: translateX(5px);
}

.sidebar a i {
  font-size: 16px;
  flex-shrink: 0;
}

/* =========================================================
   MAIN
========================================================= */

.main {
  width: calc(100% - 240px);

  min-height: 100vh;

  margin-left: 240px;

  padding: 30px;

  overflow-x: hidden;
}

/* =========================================================
   MOBILE MENU BUTTON
========================================================= */

.menu-toggle {
  display: none;

  position: fixed;

  top: 15px;
  left: 15px;

  width: 45px;
  height: 45px;

  border: none;

  border-radius: 50%;

  background: #123f78;

  color: white;

  align-items: center;
  justify-content: center;

  font-size: 24px;

  cursor: pointer;

  z-index: 3000;

  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* =========================================================
   HEADER
========================================================= */

header {
  width: 100%;

  display: flex;
  align-items: center;

  min-height: 45px;
}

/* =========================================================
   PROFILE
========================================================= */

.profile {
  background: white;

  padding: 10px 20px;

  border-radius: 50px;

  display: flex;
  align-items: center;

  gap: 8px;

  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);

  font-size: 14px;

  white-space: nowrap;
}

.profile i {
  font-size: 17px;
}

/* =========================================================
   HERO
========================================================= */

.hero {
  width: 100%;

  margin-top: 25px;

  min-height: 145px;

  padding: 30px 40px;

  border-radius: 25px;

  background: linear-gradient(120deg, #082650 0%, #1762af 100%);

  color: white;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 25px;

  overflow: hidden;
}

.hero > div {
  flex: 1;
  min-width: 0;
}

.hero h2 {
  font-size: 28px;

  line-height: 1.3;

  font-weight: 700;

  word-wrap: break-word;
}

.hero p {
  margin-top: 10px;

  font-size: 14px;

  line-height: 1.5;
}

.hero img {
  width: 95px;

  max-width: 95px;

  height: auto;

  flex-shrink: 0;

  object-fit: contain;
}

/* =========================================================
   PORTAL
========================================================= */

.portal {
  width: 100%;

  margin-top: 30px;
}

/* =========================================================
   BOX
========================================================= */

.box {
  width: 100%;

  background: white;

  border-radius: 25px;

  padding: 25px;

  margin-bottom: 25px;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);

  overflow: hidden;
}

.box h2 {
  color: #123b72;

  margin-bottom: 22px;

  font-size: 20px;

  line-height: 1.3;
}

/* =========================================================
   APPLICATION GRID
========================================================= */

.apps {
  width: 100%;

  display: grid;

  grid-template-columns: repeat(5, minmax(0, 1fr));

  gap: 15px;
}

/* =========================================================
   APPLICATION CARD
========================================================= */

.app {
  width: 100%;
  min-width: 0;

  min-height: 115px;

  background: #fafcff;

  border: 1px solid #dfebfa;

  border-radius: 18px;

  display: flex;

  justify-content: center;

  align-items: center;

  flex-direction: column;

  padding: 12px;

  text-decoration: none;

  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;

  overflow: hidden;
}

.app:hover {
  transform: translateY(-5px);

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);

  background: #ffffff;
}

/* =========================================================
   APP ICON
========================================================= */

.icon {
  width: 42px;
  height: 42px;

  min-width: 42px;
  min-height: 42px;

  border-radius: 12px;

  background: #dceaff;

  display: flex;

  justify-content: center;
  align-items: center;

  color: #1762af;

  font-size: 20px;

  flex-shrink: 0;
}

/* =========================================================
   APP TITLE
========================================================= */

.app span {
  display: block;

  width: 100%;

  margin-top: 10px;

  font-size: 12px;

  line-height: 1.3;

  font-weight: 600;

  color: #203957;

  text-align: center;

  overflow-wrap: break-word;
}

/* =========================================================
   APP SMALL DESCRIPTION
========================================================= */

.app small {
  display: block;

  width: 100%;

  margin-top: 4px;

  font-size: 10px;

  line-height: 1.3;

  color: #8290a5;

  text-align: center;

  overflow-wrap: break-word;
}

/* =========================================================
   SECRET / KESEKRETARIATAN
========================================================= */

.secret {
  width: 100%;

  display: flex;

  flex-direction: column;

  gap: 15px;
}

.secret button {
  width: 100%;

  min-height: 90px;

  border: none;

  border-radius: 18px;

  background: #eef5ff;

  color: #123f78;

  font-size: 16px;

  font-weight: 600;

  display: flex;

  align-items: center;

  gap: 20px;

  padding: 20px;

  cursor: pointer;

  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.secret button:hover {
  transform: translateY(-3px);

  background: #e4efff;

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.secret button i {
  font-size: 24px;

  flex-shrink: 0;
}

/* =========================================================
   MODAL
========================================================= */

.modal {
  position: fixed;

  inset: 0;

  display: none;

  justify-content: center;
  align-items: center;

  padding: 20px;

  background: rgba(0, 0, 0, 0.5);

  z-index: 9999;
}

.modal-box {
  position: relative;

  width: 700px;

  max-width: 100%;

  max-height: 90vh;

  overflow-y: auto;
  overflow-x: hidden;

  background: white;

  border-radius: 25px;

  padding: 30px;
}

.modal-box .close {
  position: absolute;

  top: 15px;
  right: 15px;

  width: 38px;
  height: 38px;

  border: none;

  background: transparent;

  color: #123f78;

  font-size: 24px;

  cursor: pointer;

  z-index: 5;
}

.modal-box h2 {
  padding-right: 45px;

  margin-bottom: 22px;

  color: #123b72;
}

/* MODAL APPLICATION GRID */

.modal-box .apps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* =========================================================
   FOOTER
========================================================= */

footer {
  width: 100%;

  text-align: center;

  padding: 30px 10px;

  color: #8995a5;

  font-size: 13px;

  line-height: 1.5;
}

/* =========================================================
   TABLET BESAR
========================================================= */

@media (max-width: 1200px) {
  .apps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {
  .main {
    padding: 25px;
  }

  .apps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero {
    padding: 25px 30px;
  }

  .hero h2 {
    font-size: 24px;
  }

  .modal-box .apps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {
  /* =========================
       MENU BUTTON
    ========================= */

  .menu-toggle {
    display: flex;
  }

  /* =========================
       SIDEBAR
    ========================= */

  .sidebar {
    left: -260px;

    width: 240px;

    transition: left 0.3s ease;
  }

  .sidebar.active {
    left: 0;
  }

  /* =========================
       MAIN
    ========================= */

  .main {
    width: 100%;

    margin-left: 0;

    padding: 15px;

    min-height: 100vh;
  }

  /* =========================
       HEADER
    ========================= */

  header {
    min-height: 45px;

    justify-content: flex-end;
  }

  .profile {
    margin-top: 0;

    padding: 9px 15px;

    font-size: 13px;
  }

  /* =========================
       HERO
    ========================= */

  .hero {
    margin-top: 15px;

    min-height: auto;

    padding: 25px 20px;

    border-radius: 20px;

    flex-direction: column;

    text-align: center;

    gap: 18px;
  }

  .hero h2 {
    font-size: 22px;

    line-height: 1.35;
  }

  .hero p {
    font-size: 13px;

    line-height: 1.5;
  }

  .hero img {
    width: 70px;

    max-width: 70px;
  }

  /* =========================
       PORTAL
    ========================= */

  .portal {
    margin-top: 20px;
  }

  /* =========================
       BOX
    ========================= */

  .box {
    padding: 18px;

    border-radius: 20px;

    margin-bottom: 20px;
  }

  .box h2 {
    font-size: 18px;

    margin-bottom: 18px;
  }

  /* =========================
       APPLICATION
    ========================= */

  .apps {
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 12px;
  }

  .app {
    min-height: 105px;

    height: auto;

    padding: 10px;
  }

  .icon {
    width: 38px;
    height: 38px;

    min-width: 38px;
    min-height: 38px;

    font-size: 18px;

    border-radius: 11px;
  }

  .app span {
    margin-top: 8px;

    font-size: 11px;
  }

  .app small {
    font-size: 9px;
  }

  /* =========================
       SECRET
    ========================= */

  .secret {
    gap: 12px;
  }

  .secret button {
    min-height: 70px;

    padding: 15px;

    font-size: 14px;

    gap: 15px;
  }

  .secret button i {
    font-size: 21px;
  }

  /* =========================
       MODAL
    ========================= */

  .modal {
    padding: 12px;
  }

  .modal-box {
    width: 100%;

    max-height: 92vh;

    padding: 20px;

    border-radius: 20px;
  }

  .modal-box h2 {
    font-size: 18px;
  }

  .modal-box .apps {
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 10px;
  }

  /* =========================
       FOOTER
    ========================= */

  footer {
    padding: 20px 5px;

    font-size: 11px;
  }
}

/* =========================================================
   SMALL PHONE
========================================================= */

@media (max-width: 480px) {
  .main {
    padding: 12px;
  }

  /* HERO */

  .hero {
    padding: 22px 15px;

    border-radius: 18px;
  }

  .hero h2 {
    font-size: 19px;
  }

  .hero p {
    font-size: 12px;
  }

  .hero img {
    width: 60px;

    max-width: 60px;
  }

  /* BOX */

  .box {
    padding: 15px;

    border-radius: 18px;
  }

  .box h2 {
    font-size: 17px;

    margin-bottom: 15px;
  }

  /* APPS */

  .apps {
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 9px;
  }

  .app {
    min-height: 100px;

    border-radius: 15px;

    padding: 8px;
  }

  .icon {
    width: 36px;
    height: 36px;

    min-width: 36px;
    min-height: 36px;

    font-size: 17px;
  }

  .app span {
    font-size: 10px;

    margin-top: 7px;
  }

  .app small {
    font-size: 8px;
  }

  /* SECRET */

  .secret button {
    min-height: 65px;

    padding: 13px;

    font-size: 13px;
  }

  /* MODAL */

  .modal-box {
    padding: 18px;
  }

  .modal-box .apps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =========================================================
   VERY SMALL PHONE
========================================================= */

@media (max-width: 350px) {
  .apps {
    grid-template-columns: 1fr;
  }

  .modal-box .apps {
    grid-template-columns: 1fr;
  }

  .hero h2 {
    font-size: 18px;
  }

  .profile {
    font-size: 12px;
  }
}

/* =========================================================
   PREVENT HORIZONTAL OVERFLOW
========================================================= */

img,
iframe,
video,
table {
  max-width: 100%;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

/* =========================================================
   HIDE FLOATING PHONE / DEVICE MOCKUPS
   Jika ada dari halaman lain
========================================================= */

.phone,
.device,
.mockup,
.mobile-preview,
.mockup-phone,
.iphone,
.mobile-frame,
.mobile-screen,
.phone-mockup,
.iphone-mockup,
.device-mockup {
  display: none !important;

  visibility: hidden !important;
}

/* Elemen dengan class yang jelas merupakan mockup HP */

[class*="phone-mockup"],
[class*="iphone-mockup"],
[class*="device-mockup"],
[class*="mobile-preview"] {
  display: none !important;
  visibility: hidden !important;
}
