:root{
    --blue:#343a56;
    --gray:#8a8a8a;
    --bg:#eeeeee;
}



html, body {
  background: white;
  height: 100%;
  margin: 0;
  font-family: Arial, sans-serif;
}



/* ============================= */
/* NAVBAR CUSTOM                 */
/* ============================= */

.mbg-navbar {
  background-color: var(--blue);
  padding-top: 12px;
  padding-bottom: 12px;
}

.logo-box {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* biar img nggak keluar kotak */
}

.logo-img {
  width: 80%;
  height: auto;
  object-fit: contain;
}

/* Brand Name */
.brand-name {
  color: white;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  
}



.judul{
  color: white;
  
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 20px;
}


/* 
Fade / overlay
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(9, 48, 107, 0.65); /* biru transparan */
*/

/* Pastikan konten di atas overlay */
.container {
  z-index: 1;
}






/*################## TABLE #################*/

.table-wrapper {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  
}

/* AREA PUTIH DENGAN TINGGI TETAP */
/* Area scroll */
.table-scroll {
  max-height: 420px;
  min-height: 420px;
  overflow-y: auto;
  background-color: white;
  
}

/* Sticky header */
.table thead th {
  position: sticky;
   border-radius: 20px !important;
  top: 0;

  color: var(--blue);
  opacity: 75%;
  font-weight: 400;
  
  z-index: 3;
  
}

.table thead {
 
  border-radius: 20px !important;
}

/* Hilangkan border grid */
.table th,
.table td {
  border: none;

 color: var(--blue);
}

/* Garis pemisah halus */
.table tbody tr {
  border-bottom: 1px solid  #2e2e2e3b;
}



/* ============================= */
/* BUTTON DI DALAM TABLE        */
/* ============================= */

.table .btn {
  background-color: var(--bg);
  border-color: var(--blue);
  border-color: var(--blue) !important;
  color: var(--blue) !important;
}

.table .btn:hover {
  background-color: #2a2f45 !important; /* versi lebih gelap */
  border-color: #2a2f45 !important;
  color: #ffffff !important;
}

.table .btn:focus,
.table .btn:active {
  background-color: #23283c !important;
  border-color: #23283c !important;
  box-shadow: none !important;
}



/*################## LOGIN PAGE #################*/

.login-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
}

.login-card h4 {
  color: #333;
}

.login-card .form-control {
  border-radius: 8px;
}

.login-card .btn-primary {
  border-radius: 8px;
  font-weight: 500;
}




.history {
 
 border: none !important;
}



.header-bar {
  background: var(--blue); /* dark blue transparan */
  backdrop-filter: blur(6px);
  border-radius: 10px;
}

/* ============================= */
/* STYLE BARIS TABEL CUSTOM     */
/* ============================= */

/* Hilangkan border collapse bawaan */
.table {
  border-collapse: separate !important;
  border-spacing: 0 12px !important; /* jarak antar baris */
}

/* Warna background tiap baris */
.table tbody tr {
  background-color: #dcdcdc !important; /* grey */
  transition: 0.2s ease-in-out;
}

/* Hover effect biar elegan */
.table tbody tr:hover {
  background-color: #cfcfcf !important;
}

/* Supaya sudutnya rounded */
.table tbody tr td:first-child {
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

.table tbody tr td:last-child {
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

/* Biar isi cell tetap rapi */
.table tbody td {

  background: transparent !important;
  border: none !important;
  padding: 12px;
}



/* SEARCH BUTTON STYLE */
#searchBtn {
  background-color: white;
  border-color: white;
  color: var(--blue);
}

#searchBtn:hover {
  background-color: var(--bg);
  color: var(--blue);
}



.create_sensor {
 border: white 1px solid;
 background-color: var(--blue);
 color: white;
}
.create_sensor:hover {
 background-color: white;
 color: var(--blue);
 border: var(--blue) 1px solid;
}
