body, html {
  margin: 0;
  padding: 0;
  font-family: Arial;
  height: 100%;
}
  
body.login-page {
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(to bottom right, #4e54c8, #8f94fb);
}
  
.login-box {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  text-align: center;
}

.login-box input {
  display: block;
  width: 100%;
  margin: 10px 0;
  padding: 10px;
}

.login-box button {
  padding: 10px 20px;
  cursor: pointer;
}
  
body.main-page {
  background-image: url('assets/Wallpaper.jpg');
  background-size: cover;
  background-position: center;
}

.menu-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 140px;
  padding: 10px;
  font-family: 'Segoe UI', sans-serif;
}

/* Struktur umum menu */
.menu-item {
  margin-bottom: 5px;
  padding: 10px;
  font-weight: bold;
  border-radius: 5px;
  color: black;
  cursor: pointer;
  position: relative;
  font-size: 13px;
}

/* Submenu di samping */
.submenu {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  margin-left: 5px;
  min-width: 160px;
  padding: 8px;
  border-radius: 4px;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
  z-index: 10;
}

.menu-item:hover .submenu {
  visibility: visible;
  opacity: 1;
  transform: translateX(0);
}
  
.submenu div {
  padding: 8px 12px;
  border-radius: 3px;
  white-space: nowrap;
  cursor: pointer;
}

/* WARNA MENU UTAMA + HOVER */

/* PENJUALAN - Merah Muda */
.menu-item.merah {
  background-color: #f19a94;
}
.menu-item.merah:hover {
  background-color: #e07c74;
}
.menu-item.merah .submenu {
  background-color: #f19a94;
}
.menu-item.merah .submenu div:hover {
  background-color: #e07c74;
}

/* PEMBELIAN - Biru Muda */
.menu-item.biru {
  background-color: #9ab1f1;
}
.menu-item.biru:hover {
  background-color: #7999e3;
}
.menu-item.biru .submenu {
  background-color: #9ab1f1;
}
.menu-item.biru .submenu div:hover {
  background-color: #7999e3;
}

/* INVENTORY - Ungu */
.menu-item.ungu {
  background-color: #c9a5cf;
}
.menu-item.ungu:hover {
  background-color: #b188bd;
}
.menu-item.ungu .submenu {
  background-color: #c9a5cf;
}
.menu-item.ungu .submenu div:hover {
  background-color: #b188bd;
}

/* LAPORAN - Coklat */
.menu-item.coklat {
  background-color: #d8a98a;
}
.menu-item.coklat:hover {
  background-color: #c48b6c;
}
.menu-item.coklat .submenu {
  background-color: #d8a98a;
}
.menu-item.coklat .submenu div:hover {
  background-color: #c48b6c;
}

/* MASTER - Hijau Muda */
.menu-item.hijau {
  background-color: #b6e3a0;
}
.menu-item.hijau:hover {
  background-color: #9cd883;
}
.menu-item.hijau .submenu {
  background-color: #b6e3a0;
}
.menu-item.hijau .submenu div:hover {
  background-color: #9cd883;
}

/* UTILITY - Kuning Lembut */
.menu-item.kuning {
  background-color: #f2dea0;
}
.menu-item.kuning:hover {
  background-color: #e4cb7a;
}
.menu-item.kuning .submenu {
  background-color: #f2dea0;
}
.menu-item.kuning .submenu div:hover {
  background-color: #e4cb7a;
}

/* EXIT - Krem */
.menu-item.krem {
  background-color: #f2e2b6;
}
.menu-item.krem:hover {
  background-color: #dcb654;
}
  
.app-title {
  position: absolute;
  top: 30px;
  right: 50px;
  text-align: right;
  color: yellow;
  text-shadow: 1px 1px black;
}

.app-title h2 {
  color: red;
  margin: 0;
}

.app-title p {
  color: blue;
  margin: 0;
}
  
.login-dialog {
  width: 400px;
  background-color: #f3f3f3;
  border: 2px solid #aaa;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: Arial, sans-serif;
  border-radius: 4px;
}
  
.dialog-header {
  background-color: #ccc;
  padding: 8px 10px;
  font-weight: bold;
  border-bottom: 1px solid #999;
}
  
.dialog-body {
  padding: 20px;
}
  
.login-title {
  text-align: center;
  color: deeppink;
  margin: 0 0 10px 0;
}
  
.login-dialog label {
  font-size: 15px;
  display: block;
  margin: 10px 0 5px;
  font-weight: bold;
}
  
.login-dialog input {
  font-size: 15px;
  width: 100%;
  padding: 5px;
  box-sizing: border-box;
  text-transform: uppercase;
}
  
.dialog-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-top: 15px;
  margin-right: 55px;
}
  
.login-icon {
  width: 45px;
  height: 45px;
  margin-right: 20px;
}
  
.btn-login, .btn-cancel {
  width: 100px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
  
.btn-login {
  background-color: #66ccff; /* Biru muda */
  color: white;
  border: 2px solid #3399cc;
}
  
.btn-cancel {
  background-color: #f0d9d9; /* Soft Beige */
  color: black;
  border: 2px solid #d9a3a3;
}
  
.btn-login img {
  width: 30px;
  height: 30px;
  margin-right: 8px;
}

.btn-cancel img {
  width: 26px;
  height: 26px;
  margin-right: 8px;
}

.btn-login:hover {
  background-color: #3399cc;
}
  
.btn-cancel:hover {
  background-color: #e8caca;
}

.swal2-confirm:hover {
  background-color: #a00 !important;
}

.swal2-cancel:hover {
  background-color: #a00 !important;
}

.submenu {
  display: block;             /* ubah dari display: none untuk bisa dianimasi */
  visibility: hidden;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  position: absolute;
  top: 0;
  left: 100%;
  margin-left: 5px;
  min-width: 160px;
  padding: 8px;
  border-radius: 4px;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
  z-index: 10;
  background-color: inherit; /* mewarisi warna dari parent */
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0); /* transparan tapi tetap menangkap klik */
  pointer-events: auto;
}

#overlayMenu {
  z-index: 999; /* Menutupi Main-Menu (z-index: 10) */
}

#overlayForm {
  z-index: 5000; /* Menutupi Main-Form (z-index: 1000) */
}

.msgbox-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.msgbox-window {
  background: #fff;
  width: 360px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.4);
  overflow: hidden;
  font-family: sans-serif;
}

.msgbox-icon {
  text-align: center;
  padding: 15px 0 5px;
}

.msgbox-icon-img {
  width: 64px;
  height: 64px;
}

.msgbox-caption {
  background: #3B82F6;
  color: white;
  padding: 10px;
  font-weight: bold;
  text-align: center;
  font-size: 16px;
}

.msgbox-content {
  padding: 15px 20px;
  text-align: center;
  font-size: 14px;
  color: #333;
}

.msgbox-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 15px;
  border-top: 1px solid #ccc;
}

.msgbox-btn {
  padding: 8px 20px;
  border: none;
  background: #3B82F6;
  color: white;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
}

.msgbox-btn:hover {
  background: #2563eb;
}

.hidden {
  display: none !important;
}
