body {
  background: linear-gradient(135deg, #e0eafc 0%, #cfdef3 100%);
  /* Global site font: Segoe UI preferred */
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.main-container svg {
  margin: 0 auto 30px auto;
  margin-left: 100px;
  display: block;
}

.logo-container {
  width: 100%;
  text-align: center;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-container {
  background: #fff;
  padding: 2.5rem 2rem;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(44, 62, 80, 0.12);
  max-width: 400px;
  width: 100%;
  text-align: center;
}

.main-container h1 {
  color: #2d3e50;
  margin-bottom: 1rem;
  font-weight: 700;
  font-size: 18px !important;
}
.main-container h2 {
  font-size: 16px !important;
}
.main-container p {
  color: #34495e;
  margin-bottom: 2rem;
  font-size: 11px !important;
}
.btn-main {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: linear-gradient(90deg, #6c63ff 0%, #48c6ef 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 11px !important;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-main:hover {
  background: linear-gradient(90deg, #48c6ef 0%, #6c63ff 100%);
}

/* Tambahkan aturan CSS untuk responsivitas */

/* Hamburger / sidebar toggle - hidden by default, visible on small screens */
.sidebar-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 8px;
  margin-right: 8px;
  cursor: pointer;
}
.sidebar-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 4px 0;
  border-radius: 2px;
}

/* Small screens: show hamburger and adjust layout.
   Sidebar component handles sliding (see sidebar.php styles for max-width:600px). */
@media (max-width: 768px) {
  .sidebar-toggle {
    display: inline-block;
  }
  .header-content {
    padding-left: 12px;
  }
  .content {
    margin-left: 0 !important;
    width: 100% !important;
    padding: 10px !important;
  }

  body {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .header {
    text-align: center !important;
    padding: 10px !important;
    font-size: 1.2rem !important;
  }

  .menu {
    flex-direction: column !important;
  }
}

/* Tambahkan aturan untuk mencegah overflow */
html,
body {
  overflow-x: hidden;
}

/* Pastikan elemen tidak melampaui lebar layar */
#sidebar,
.content {
  max-width: 100%;
  box-sizing: border-box;
}

/* Perbaiki elemen label agar tidak melampaui lebar */
.label {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-sizing: border-box;
}

/* Tombol aksi sejajar di place_sign_list.php */
.action-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
  white-space: nowrap;
}

/* Jika tombol berada di dalam tabel, pastikan vertikalnya di tengah */
table td,
table th {
  vertical-align: middle;
}

/* Responsif ringan untuk tampilan kecil */
@media (max-width: 1024px) {
  body {
    padding: 10px;
  }
  
  .main-container {
    padding: 1.5rem 1rem;
    margin: -80px auto 0 auto;
    width: calc(100% - 20px);
    box-sizing: border-box;
  }
  
  .logo-container {
    text-align: center;
    margin-bottom: 20px;
  }
  
  .main-container .logo-container svg {
    display: inline-block !important;
    margin: 0 auto 20px auto !important;
    margin-left: 40px !important;
  }
  
  .main-container > svg {
    margin: 0 auto 20px auto !important;
    margin-left: 40px !important;
  }
}

@media (max-width: 480px) {
  .action-buttons {
    gap: 6px;
  }
  .action-buttons .btn-action,
  .action-buttons .btn {
    padding: 6px 8px;
    font-size: 13px;
  }
}
