/* style.css */

/* ===== Umum ===== */
body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f8f9fa;
}

h1, h2, h3, h5 {
  font-weight: 600;
}

/* ===== Layout Login ===== */
#loginScreen {
  display: flex;
  min-height: 100vh;
  flex-wrap: wrap;
}

.left-side {
  flex: 1;
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.left-side .bg-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.right-side {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background-color: #fff;
}

.login-box {
  width: 100%;
  max-width: 360px;
  text-align: center;
}

.login-box .logo-login {
  max-width: 80px;
  margin-bottom: 15px;
}

#loginBtn {
  font-weight: 600;
  width: 100%;
}

/* ===== Dashboard ===== */
header {
  background-color: #198754;
  color: white;
  padding: 12px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

header .header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-kua {
  width: 40px;
  height: auto;
}

.table-responsive {
  background: white;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow-x: auto; /* scroll horizontal di HP */
}

.table-responsive table {
  width: 100%;
  min-width: 600px; /* agar tidak pecah */
}

/* ===== Modal ===== */
.modal-content {
  border-radius: 8px;
}

.modal-header {
  border-bottom: 1px solid #dee2e6;
}

.modal-footer {
  border-top: 1px solid #dee2e6;
}

/* ===== Preview Modal ===== */
#previewBody iframe,
#previewBody img {
  width: 100%;
  height: 80vh;
  border: none;
}

/* ===== Footer ===== */
.footer {
  background: #343a40;
  color: white;
  text-align: center;
  padding: 10px;
  font-size: 14px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  /* Login */
  #loginScreen {
    flex-direction: column;
  }

  .left-side {
    display: none;
  }

  .right-side {
    padding: 20px;
  }

  /* Dashboard Header */
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  header .header-left {
    flex-direction: column;
    align-items: flex-start;
  }

  header input[type="search"] {
    width: 100%;
  }

  /* Tombol */
  header .btn {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .login-box {
    max-width: 100%;
  }

  table {
    font-size: 12px;
  }

  .footer {
    font-size: 12px;
  }
}
