/* =========================================================
  RESET TOTAL
========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
}

body {
  overflow-x: hidden;
  background: #f3f3f3;
  color: #202124;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}


/* =========================================================
  PAGE LAYOUT
========================================================= */

.chrome-error-page {
  width: 100%;
  min-height: 100vh;
  background: #f3f3f3;
  position: relative;
}

/* Posisi dibuat lebih ke tengah seperti halaman Chrome */
.chrome-error-content {
  width: 600px;
  position: absolute;
  top: 178px;
  left: 50%;
  transform: translateX(-50%);
}


/* =========================================================
  ICON GENERIC SEPERTI CHROME
========================================================= */

.icon {
  width: 32px;
  height: 41px;
  position: relative;
  margin-bottom: 46px;
}

.icon-generic {
  width: 32px;
  height: 41px;
  position: relative;
  border: 3px solid #6f7275;
  background: transparent;
}

/* Lipatan kanan atas */
.icon-generic::before {
  content: "";
  position: absolute;
  top: -3px;
  right: -3px;
  width: 12px;
  height: 12px;
  background: #f3f3f3;
  border-left: 3px solid #6f7275;
  border-bottom: 3px solid #6f7275;
  z-index: 2;
}

/* Garis kecil pojok kanan atas */
.icon-generic::after {
  content: "";
  position: absolute;
  top: -3px;
  right: -3px;
  width: 9px;
  height: 9px;
  border-top: 3px solid #6f7275;
  border-right: 3px solid #6f7275;
  z-index: 3;
}

/* Mata dan mulut icon */
.icon-generic {
  background:
    linear-gradient(#6f7275, #6f7275) 9px 12px / 3px 8px no-repeat,
    linear-gradient(#6f7275, #6f7275) 19px 12px / 3px 8px no-repeat,
    linear-gradient(#6f7275, #6f7275) 9px 29px / 14px 3px no-repeat,
    linear-gradient(#6f7275, #6f7275) 9px 26px / 3px 6px no-repeat,
    linear-gradient(#6f7275, #6f7275) 20px 26px / 3px 6px no-repeat;
}


/* =========================================================
  TEXT
========================================================= */

.chrome-error-content h1 {
  margin: 0 0 17px 0;
  padding: 0;
  color: #202124;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0;
}

.chrome-desc {
  margin: 0 0 18px 0;
  padding: 0;
  color: #5f6368;
  font-size: 15px;
  line-height: 1.5;
}

.chrome-desc strong {
  color: #202124;
  font-weight: 700;
}

.chrome-try {
  margin: 0;
  padding: 0;
}

.chrome-try p {
  margin: 0 0 6px 0;
  padding: 0;
  color: #5f6368;
  font-size: 15px;
  line-height: 1.4;
}

.chrome-try ul {
  margin: 0;
  padding-left: 39px;
}

.chrome-try li {
  margin: 8px 0;
  padding: 0;
  color: #5f6368;
  font-size: 15px;
  line-height: 1.2;
}

.chrome-try a {
  color: #1a73e8;
  text-decoration: none;
}

.chrome-try a:hover {
  text-decoration: underline;
}

.chrome-error-code {
  margin: 25px 0 0 0;
  padding: 0;
  color: #5f6368;
  font-size: 12px;
  line-height: 1.4;
}


/* =========================================================
  BUTTON
========================================================= */

.chrome-action-row {
  width: 600px;
  margin-top: 55px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chrome-reload-btn,
.chrome-details-btn {
  height: 32px;
  margin: 0;
  border-radius: 18px;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 13px;
  line-height: 30px;
  cursor: pointer;
}

.chrome-reload-btn {
  min-width: 79px;
  padding: 0 18px;
  border: 1px solid #1a73e8;
  background: #1a73e8;
  color: #ffffff;
  font-weight: 500;
}

.chrome-reload-btn:hover {
  background: #1765cc;
  border-color: #1765cc;
}

.chrome-details-btn {
  min-width: 76px;
  padding: 0 18px;
  border: 1px solid #9aa0a6;
  background: transparent;
  color: #3c4043;
  font-weight: 400;
}

.chrome-details-btn:hover {
  background: #eceff1;
}


/* =========================================================
  RESPONSIVE
========================================================= */

@media (max-width: 900px) {
  .chrome-error-content {
    width: calc(100% - 48px);
    top: 90px;
    left: 24px;
    transform: none;
  }

  .chrome-action-row {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .chrome-error-content {
    top: 70px;
  }

  .icon {
    margin-bottom: 42px;
  }

  .chrome-error-content h1 {
    font-size: 22px;
  }

  .chrome-desc,
  .chrome-try p,
  .chrome-try li {
    font-size: 14px;
  }

  .chrome-error-code {
    font-size: 12px;
  }

  .chrome-action-row {
    margin-top: 45px;
  }

  .chrome-reload-btn,
  .chrome-details-btn {
    height: 32px;
    font-size: 13px;
    line-height: 30px;
  }
}