/* Umum */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f2f4f8;
    margin: 0;
    padding: 0;
}

.background-logo {
    width: 100%;
    display: flex;
    justify-content: center;
    padding-top: 20px;
    padding-bottom: 5px;
    background-color: #fff; /* atau sesuaikan */
}

.logo-left {
    height: 90px !important; /* Lebih besar dari default */
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-wrapper img {
    height: 60px; /* sesuaikan ukuran logo */
    object-fit: contain;
}

.logo-separator {
    width: 1px;
    height: 80px;
    background-color: #888;
}

/* Login page */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    flex-direction: column;
}

.centered-content {
    background: white;
    padding: 36px 28px;
    border-radius: 12px;
    box-shadow: 0px 0px 24px rgba(0, 0, 0, 0.12);
    max-width: 420px;  /* ⬅️ lebih besar dari 300-350 */
    width: 90%;        /* ⬅️ lebih fleksibel untuk mobile */
    box-sizing: border-box;
    overflow: hidden;
}

.centered-content h2 {
    margin-bottom: 24px;
    text-align: center;
    font-size: 22px;
    overflow-y: auto;
}

.form-box input[type="text"] {
    width: 100%;
    padding: 14px;         /* ⬅️ lebih tinggi */
    margin: 12px 0 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
}

.form-box input[type="password"] {
    width: 100%;
    padding: 14px;         /* ⬅️ lebih tinggi */
    margin: 12px 0 24px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
}

.form-box button {
    width: 100%;
    padding: 14px;
    background-color: #0066cc;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
}

.form-box button:hover {
    background-color: #0052a3;
}

.error-message {
    color: red;
    font-size: 0.95em;
    margin-top: -14px;
    margin-bottom: 14px;
    text-align: center;
}

h2 {
    text-align: center;
    margin-top: 30px;
}

/* Wrapper untuk scroll horizontal di mobile */
.table-container {
    width: 100%;
    overflow-x: auto;
}

/* Tabel utama */
table {
    width: max-content;
    min-width: 100%; /* Pastikan tidak sempit di layar kecil */
    border-collapse: collapse;
    background: white;
    margin: 20px auto;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    table-layout: auto;
}

/* Header dan isi tabel */
table th, table td {
    padding: 12px;
    border: 1px solid #ccc;
    text-align: center;
    vertical-align: middle;
    font-size: 14px;
    white-space: nowrap;        /* Mencegah value stacking */
    overflow: hidden;
    text-overflow: ellipsis;    /* Tambahkan "..." jika terlalu panjang */
}

/* Header khusus: biarkan wrapping per kata */
table th {
    background-color: #2C3E6C;
    color: white;
    white-space: normal; /* Izinkan wrap hanya di header */
}

/* Striping */
table tr:nth-child(even) {
    background-color: #ffffff;
}

table tr:nth-child(odd) {
    background-color: #f9f9f9;
}

.link-lihat {
    position: relative;
    color: #0D47A1;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}

.link-lihat::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background-color: #000000;
    transition: width 0.3s ease;
}

.link-lihat:hover::after {
    width: 100%;
}

/* Style for the logo in top-left corner */
.logo-header {
    padding: 16px 24px;
}

/* Main container styling */
.container {
    margin: 20px;
    padding-top: 10px;
}

/* Biar tabel bisa scroll horizontal di layar kecil */
.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Tambahkan untuk menghindari tabel terlalu lebar */
table {
    min-width: 600px;
    border-collapse: collapse;
}

.baris-tidak-laik td {
    background-color: #eee !important;
    color: #888;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
}

/* popup notif */
.popup-notif {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}

.popup-notif.show {
    opacity: 1;
}

/* === Sidebar Style (untuk admin viewer & uploader) === */
#sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    background-color: #2C3E6C;
    width: 220px;
    padding: 20px;
    color: #fff;
    display: flex;
    flex-direction: column;
    border-right: 2px solid #2C3E6C;
    overflow-y: auto;
    justify-content: space-between;
    flex-shrink: 0;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.3);
    background-image: url('/static/assets/topography.svg');
    background-repeat: repeat;
    background-size: contain;
}

#sidebar-menu {
    padding: 1.5rem 1rem;
}

#sidebar-menu ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

#sidebar-menu ul li {
    margin-bottom: 15px;
}

#sidebar-menu ul li a {
    display: block;
    padding: 10px 15px;
    border-radius: 8px;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    background-color: transparent;
    transition: background-color 0.3s ease, padding-left 0.3s ease;
}

#sidebar-menu ul li a:hover {
    background-color: #1A2C50;
    padding-left: 20px;
}

#sidebar-menu ul li a.active {
    background-color: #1A2C50;
    padding-left: 20px;
}

.sidebar-bottom {
    margin-top: auto;
}
/* Tombol hamburger */
#hamburger-toggle {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1100;
    background: #ffffff;
    border: 1px solid #ccc;
    padding: 0.5rem 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 4px;
}

/* Show Sidebar */
.sidebar-visible {
    transform: translateX(0);
}

.sidebar-hidden {
    transform: translateX(-100%);
}

/* Konten utama: geser kalau sidebar terbuka */
body.sidebar-open .container-hamburger {
    margin-left: 260px;
    transition: margin-left 0.3s ease;
}

/* Konten utama default */
.container-hamburger {
    margin-left: 0; /* default saat sidebar hidden */
    margin-top: 0 !important;
    padding: 2rem;
    transition: margin-left 0.3s ease;
}

/* Sidebar khusus hamburger */
#sidebar-hamburger {
    position: fixed; /* GANTI sticky */
    top: 0;
    left: 0;
    height: 100vh;
    width: 220px;
    background-color: #2C3E6C;
    padding: 20px;
    color: #fff;
    display: flex;
    flex-direction: column;
    border-right: 2px solid #2C3E6C;
    overflow-y: auto;
    flex-shrink: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
    transform: translateX(-100%);
    background-image: url('/static/assets/topography.svg');
    background-repeat: repeat;
    background-size: contain;
}

#sidebar-hamburger h3{
    padding-top: 20px;
}

#sidebar-hamburger.sidebar-visible {
    transform: translateX(0);
}

#sidebar-hamburger.sidebar-hidden {
    transform: translateX(-100%);
}

/* Main Content */
#main-content {
    flex-grow: 1;
    padding: 40px;
}

#main-content h2 {
    text-align: center;
    font-weight: bold;
    margin-top: -10px;
    margin-bottom: 8px;
    font-size: clamp(12px, 2.2vw, 20px);
    padding: 0 16px;
    padding-bottom: 8px;
    box-sizing: border-box;
    max-width: 100%;
}

.logo-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px; /* Jarak antar logo */
    margin-top: 50px;
    flex-wrap: wrap; /* agar mobile tetap rapi */
}

.logo-small {
    height: 80px;
    max-width: 100%;
    object-fit: contain;
}

/* Responsive scroll */
#roomList::-webkit-scrollbar {
    width: 6px;
}
#roomList::-webkit-scrollbar-thumb {
    background-color: #cccccc;;
    border-radius: 4px;
    margin-left: 4px;
}

/* Kontainer Pilihan Ruangan */
.pilihan-container {
    flex: 1;
    padding: 2rem;
    background-color: #f7f9fc;
}

.pilihan-container h2 {
    margin-top: 0;
    font-size: 1.75rem;
    color: #333;
}

.search-bar {
    margin-bottom: 1.5rem;
}

#searchInput {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 300px;
    max-width: 100%;
}

.room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.room-box {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.room-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.room-box img {
    width: 100%;
    max-width: 120px;
    height: auto;
    margin-bottom: 0.75rem;
    border-radius: 8px;
}

.room-name {
    font-weight: 600;
    font-size: 1rem;
    color: #333;
}

/* === Table inside admin viewer === */
.table-container {
    overflow-x: auto;
}

#alat-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

#alat-table th, #alat-table td {
    border: 1px solid #ccc;
    padding: 8px 10px;
    text-align: center;
    font-size: 14px;
}

#alat-table th {
    background-color: #2C3E6C;
    color: white;
}

#alat-table td select {
    padding: 4px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.btn-back {
    display: inline-block;
    background-color: #f2f4f8;    /* Latar belakang soft biru */
    color: #004080;               /* Warna teks biru tua */
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
    margin-bottom: 16px;
}

.btn-back:hover {
    background-color: #c6d7e4;    /* Warna hover sedikit lebih gelap */
    color: #002e5a;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 5px;
    font-family: sans-serif;
    flex-wrap: wrap;
}

.pagination a, .pagination span {
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    text-decoration: none;
    color: #0066cc;
    font-weight: bold;
    background-color: #f9f9f9;
    transition: background-color 0.2s, color 0.2s;
}

.pagination a:hover {
    background-color: #0066cc;
    color: white;
}

.pagination .active-page {
    background-color: #0066cc;
    color: white;
    pointer-events: none;
}

.pagination .disabled {
    color: #999;
    border-color: #eee;
    pointer-events: none;
    background-color: #f0f0f0;
}

/* Wrapper Konten Tengah + Sidebar Kanan */
.main-wrapper {
  flex: 1;
  padding: 0px 15px;
}

/* Konten Pertama (di atas sidebar kanan) */
.konten-pertama {
  text-align: center;
  padding-bottom: 8px;
}

/* Wrapper untuk konten kedua dan sidebar kanan */
.konten-bawah-wrapper {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 15px;
}

/* Konten Kedua (tengah bawah) */
.konten-kedua {
    flex: 1;
    background-color: #ffffff;
    border: 1px solid #f3f4f8;
    padding: 0px 1rem;
    padding-top: 1rem;
    border-radius: 8px;
    color: #990000;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin: 0;
}

.konten-kedua h3 {
    margin-top: 0;
    color: #000000;
}

.konten-kedua ul {
    list-style-type: disc;
    margin-left: 1.5rem;
}

.box-rusak {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    font-weight: 500;
    font-size: 14px;
    background-color: #f1f1f1;
    color: #333;
}

.box-reminder {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    font-weight: 500;
    font-size: 14px;
    background-color: #f1f1f1;
    color: #333;
}

/* Warna untuk reminder tenggang */
.box-kuning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffdd87;
}

.box-merah {
    background-color: #fff4f4;
    color: #990000;
    border: 1px solid #ff9999;
}

/* Warna khusus box-rusak bisa disesuaikan juga (optional override) */
.box-rusak {
    background-color: #fff4f4;
    color: #990000;
    border: 1px solid #ff9999;
}

/* Sidebar Kanan */
#sidebar-kanan {
  width: 240px;
  background-color: #ffffff;
  padding: 0px 20px;
  border-left: 4px solid #0066cc;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  min-height: 100%; /* mengikuti tinggi konten kedua */
}

/* FOTO DASHBOARD ADMIN_VIEWER */
.layout-container {
    display: flex;
    flex-direction: row;
    height: 100vh;
    overflow: auto;
}

.foto-slider-wrapper {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.foto-slider {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s linear;
}

.foto-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

/* Panah Navigasi */
.nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.4);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 10px;
  cursor: pointer;
  z-index: 10;
  display: none;
}

.foto-slider-wrapper:hover .nav-button {
  display: block;
}

.left {
  left: 10px;
}

.right {
  right: 10px;
}

/* Dots Indicator */
.dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.dots .dot {
  width: 8px;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  cursor: pointer;
}

.dots .dot.active {
  background-color: white;
}

#main-content {
    flex-grow: 1;
    padding: 40px;
    box-sizing: border-box;
    overflow-y: auto;
}

.right-section{
    width: 100%;
}

/* UPLOAD FOTO DASHBOARD UTK ADMIN_UPLOADER */
#upload-form {
  margin-bottom: 30px;
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

#upload-form input[type="file"] {
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #f9f9f9;
}

#upload-form button {
  padding: 8px 16px;
  border: none;
  background-color: #0066cc;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#upload-form button:hover {
  background-color: #004999;
}

/* Foto grid */
.foto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

/* Item tiap foto */
.foto-grid-item {
  position: relative;
  border: 1px solid #ddd;
  padding: 5px;
  border-radius: 8px;
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: center;
}

.foto-grid-item img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 6px;
}

/* Tombol hapus */
.foto-grid-item button {
  margin-top: 8px;
  padding: 6px 10px;
  background-color: #d9534f;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
}

.foto-grid-item button:hover {
  background-color: #c9302c;
}

/* Container form */
.form-section {
    background-color: #f9f9f9;
    padding: 24px;
    border: 1px solid #ddd;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

/* Judul form */
.form-section h2 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: #333;
}

/* Label dan input group */
.form-section label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #555;
}

.form-section input,
.form-section select,
.form-section textarea {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
}

/* Tombol */
.form-section button {
    background-color: #0077cc;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.form-section button:hover {
    background-color: #005fa3;
}

.popup-sukses {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #ffffff; /* Background putih */
    color: #333333; /* Teks hitam */
    border-left: 6px solid #2e7d32; /* Aksen hijau untuk sukses */
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1rem;
    animation: fadeInOutNotif 3s ease-in-out;
    min-width: 240px;
    max-width: 320px;
    text-align: left;
    align-items: center;
    gap: 0.75rem;
}

.popup-sukses::before {
    content: "✔️";
    font-size: 1.2rem;
}

.legalitas-container {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;      /* tengah secara horizontal */
    justify-content: flex-start;
    box-sizing: border-box;
}

.legalitas-container h1 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.legalitas-container p {
    text-align: justify;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    font-size: 1rem;
    line-height: 1.6;
}

.dokumen-legalitas {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 50px;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 800px;
}

.dokumen-legalitas img {
    width: 300px;
    height: auto;
    cursor: zoom-in;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

#image-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    cursor: zoom-out;
}

#image-popup img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
}

.regulasi-container {
    display: flex;
    justify-content: center;
    align-items: stretch; /* Stretch box agar sama tinggi */
    flex-wrap: nowrap; /* penting agar tidak turun ke bawah */
    gap: 40px;
    margin-top: 12px;
    padding: 0 2rem;
    padding-bottom: 3rem !important;
}

.regulasi-box {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
    flex: 1; /* agar keduanya isi ruang secara merata */
    min-height: 250px;
    max-width: 450px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column; /* agar isi tetap vertikal */
    justify-content: space-between; /* bantu isi seimbang */
}

.regulasi-box h2 {
    color: #003366;
    margin-bottom: 1rem;
    text-align: center;
}

.regulasi-box ol {
    padding-left: 1.2rem;
}

.regulasi-box li {
    margin-bottom: 16px;
    line-height: 1.6;
    text-align: justify; /* Justify text agar rapi */
}

.regulasi-box a {
    display: inline-block;
    margin-top: 4px;
    text-decoration: none;
    color: #0066cc;
    font-weight: 500;
}

.regulasi-box a:hover {
    text-decoration: underline;
}

/* Kontainer utama konten dokumentasi */
.konten-dokumentasi {
    flex: 1;
    padding: 30px 0;
    background-color: #f8f9fa;
    display: flex;
    justify-content: flex-start; /* geser ke kiri */
    align-items: flex-start;
}

/* Kontainer video */
.video-container {
    background: #ffffff;
    padding: 20px 0px;
    border-radius: 12px;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    max-width: 900px;
    width: 100%;
    text-align: center;
    margin: 0 auto;
}

/* Judul */
.video-container h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 20px;
    color: #2C3E6C;
}

/* Video */
.video-container video {
    max-width: 80%;
    height: auto;
    border-radius: 8px;
    outline: none;
    background: #000;
    object-fit: cover;
    filter: brightness(0.95);
}

.konten-pengaduan {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 2rem 2rem 11rem; /* padding kiri diperbesar */
    text-align: center;
    background-color: #F3F4F8;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
    gap: 1.5rem;
}

.judul-pengaduan {
    font-size: 2rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.deskripsi-pengaduan {
    font-size: 1rem;
    color: #666;
    margin: 0;
    max-width: 600px;
}

.pengaduan-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    width: 100%;
    max-width: 900px;
    box-sizing: border-box;
}

.pengaduan-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 1.5rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    transition: transform 0.3s ease;
}

.pengaduan-card:hover {
    transform: translateY(-5px);
}

.btn-hubungi {
    background-color: #4169E1; /* Royal Blue */
    color: white;
    margin-top: 15px;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.btn-hubungi:hover {
    background-color: #3558c7; /* versi sedikit lebih gelap untuk efek hover */
}
/* Bungkus input dan dropdown dalam container agar posisinya relatif */
.search-container {
    position: relative;
    width: 100%;
    max-width: 400px; /* atur sesuai kebutuhan */
    margin: 0 auto;
    box-sizing: border-box;
}

/* Input pencarian */
#searchInput {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}
/* Bungkus input dan dropdown agar posisinya relatif */
.search-wrapper {
    position: relative;
    width: 300px; /* atur ukuran kecil di sini */
}

/* Input search */
#searchInput {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    box-sizing: border-box;
}

/* Dropdown hasil pencarian */
#dropdownSearchOptions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%; /* mengikuti input */
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 160px;
    overflow-y: auto;
    display: none;
    margin-top: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    box-sizing: border-box;
}

/* Isi dropdown */
#dropdownSearchOptions div {
    padding: 10px 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#dropdownSearchOptions div:hover {
    background-color: #f0f0f0;
}

.sidebar-logo-wrapper {
    margin-top: auto;
    padding: 16px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-top: 1px solid #ddd;
    background-color: #F3F4F8; 
    border-radius: 8px;
    box-shadow: 0 -2px 6px rgba(0,0,0,0.05);
}

.sidebar-logo-wrapper img {
    height: 40px;
    object-fit: contain;
}

.sidebar-logo-wrapper .logo-separator {
    width: 1px;
    height: 30px;
    background-color: #ccc;
}

.logo-sidebar-left {
    height: 55px !important; 
    object-fit: contain;
}

.logo-sidebar-right {
    height: 30px !important;
    object-fit: contain;
}

@keyframes fadeInOutNotif {
    0% { opacity: 0; transform: translateY(-10px); }
    10%, 90% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-10px); }
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { opacity: 0; }
}

/* === Mobile Responsive (≤768px) === */
@media screen and (max-width: 768px) {
    .background-logo {
        background-size: contain;
        height: 80px;
        top: 24px;
    }

    .login-page {
        padding-top: 160px;
    }

    .centered-content {
        max-width: 96%;         /* ⬅️ lebar lebih fleksibel */
        padding: 32px 24px;
    }
    
    .form-box input[type="password"], .form-box[type="text"],
    .form-box button {
        font-size: 16px;
        padding: 13px;
        width: 100%;
        box-sizing: border-box;
    }

    .centered-content h2 {
        font-size: 22px;          /* Judul lebih besar */
        margin-bottom: 24px;
    }

    body {
        margin: 0;
        padding: 0;
        font-size: 14px;
        overflow-x: hidden;
    }

    .foto-rs {
        width: 100%;           /* Full lebar layar */
        height: 150px;         /* Atur tinggi sesuai kebutuhan */
        object-fit: cover;     /* Potong agar tetap proporsional */
        margin: 0;
        padding: 0;
        border: none;
        display: block;
    }

    /* Main Content */
    #main-content {
        flex-grow: 1;
        padding: 40px;
    }

    #main-content h2 {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: clip;
        white-space: normal;
        margin-top: -25px;
    }

    .logo-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px; /* Jarak antar logo */
    padding-top: 15px;
    margin-top: 20px;
    flex-wrap: wrap; /* agar mobile tetap rapi */
    }

    .logo-small {
        height: 80px;
        max-width: 100%;
        object-fit: contain;
    }

    .btn-back {
    font-size: 15px;
    padding: 12px 18px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    }

    table {
        width: 100%;
        border-collapse: collapse;
        font-size: 13px;
        table-layout: auto;
    }

    table th, table td {
        padding: 8px;
        text-align: left;
        word-wrap: break-word;
        max-width: 100px; /* Optional: batasi kolom biar nggak panjang banget */
    }

    #alat-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 13px;
        table-layout: auto;
    }

    #alat-table th, #alat-table td {
        padding: 8px;
        text-align: left;
        word-wrap: break-word;
        max-width: 200px; /* Optional: batasi kolom biar nggak panjang banget */
    }

    /* Optional: buat tabel bisa scroll horizontal jika terlalu lebar */
    .table-wrapper {
        overflow-x: auto;
        width: 100%;
    }

    .table-container {
        overflow-x: auto;
    }

    #hamburger-toggle {
        display: block;
    }

    #sidebar {
        width: 80%;
    }
}