/* Sidebar container */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 220px;
  height: 100vh;
  background-color: #1565C0;
  display: flex;
  flex-direction: column;
  padding-top: 20px;
  padding-bottom: 20px;
  box-sizing: border-box;
  transition: left 0.3s ease, transform 0.3s ease;
  z-index: 1000;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);

  /* penting: buat sidebar full tinggi jadi flex container kolom */
  justify-content: space-between;
  /* Logo di atas, logout di bawah */
}

/* Logo container - tetap di atas */
.logo {
  width: 100%;
  padding: 15px 0;
  display: flex;
  justify-content: center;
  /* tengah horizontal */
  align-items: center;
  /* tengah vertical */
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
  /* jangan menyusut */
}

/* Logo image */
.logo img {
  max-width: 60%;
  height: auto;
  object-fit: contain;
}

/* Menu items container */
.menu-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 15px 10px;
  flex-grow: 1;
  justify-content: flex-start;
  padding-top: 30px;
}

/* Menu link */
.menu-items a {
  color: #fff;
  background-color: transparent;
  padding: 12px 16px;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
  display: block;
  width: 100%;
  transition: all 0.3s ease;
  text-align: left;
  box-shadow: none;
  border-left: 4px solid transparent;
}

.menu-items a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-left-color: #fff;
  box-shadow: none;
}

.menu-items a.active {
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-weight: 700;
  border-left-color: #FFD600;
  box-shadow: none;
}

/* Logout container - selalu nempel bawah */
.logout {
  padding: 15px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
  /* jangan menyusut */
}

.logout a {
  color: #fff;
  background-color: #E53935;
  padding: 12px 16px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  display: block;
  width: 100%;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logout a:hover {
  background-color: #C62828;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Hamburger */
.hamburger {
  position: fixed;
  top: 15px;
  left: 15px;
  font-size: 22px;
  background: #1565C0;
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  z-index: 1100;
  user-select: none;
  border: none;
  transition: all 0.2s ease;
  display: block;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  -webkit-tap-highlight-color: transparent;
}

.hamburger:hover {
  background: #0d47a1;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hamburger:active {
  background: transparent;
  box-shadow: none;
  opacity: 0.5;
  transform: translateY(0) scale(0.95);
}

/* Overlay untuk mobile */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
  display: block;
  opacity: 1;
}

/* Responsive - sidebar toggle */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .sidebar {
    left: -220px;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.2);
  }

  .sidebar.active {
    left: 0;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.3);
  }

  .sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 999;
  }

  .sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .menu-items a,
  .logout a {
    padding: 14px 12px;
    font-size: 14px;
  }

  .logo img {
    max-width: 55%;
  }
}

/* Tablet */
@media (max-width: 1024px) {
  .hamburger {
    display: block;
  }

  .sidebar {
    left: -220px;
    /* default tertutup */
  }

  .sidebar.active {
    left: 0;
    /* muncul saat hamburger diklik */
  }

  .main {
    margin-left: 0;
  }

  .main.shift {
    margin-left: 220px;
  }
}

/* Desktop besar */
@media (min-width: 1025px) {
  .sidebar {
    left: 0;
    /* default terbuka */
  }

  .sidebar.active {
    left: -220px;
    /* tertutup saat hamburger diklik */
  }

  .main {
    margin-left: 220px;
    /* default sidebar terbuka */
    transition: margin-left 0.3s ease;
  }

  .main.shift {
    margin-left: 220px;
    /* tetap 220px saat shift */
  }

  /* Ketika sidebar ditutup, main content margin jadi 0 */
  .main.closed {
    margin-left: 0;
  }

  .sidebar-overlay {
    display: none !important;
  }
}

/* Global Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Inter", sans-serif;
}

html,
body {
  height: 100%;
}

/* ===== LOGIN PAGE ===== */
body.login-page {
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg,
      #0d47a1,
      #1565c0,
      #fbc02d,
      #fff176);
  background-size: 300% 300%;
  animation: gradientMove 14s ease infinite;
  overflow: hidden;
}

body.login-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: -1;
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* ===== LOGIN CARD ===== */
.login-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: 45px 40px;
  border-radius: 24px;

  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
  text-align: center;

  animation: fadeUp 1s ease forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== LOGIN LOGO ===== */
.login-card .icon img {
  width: 90px;
  margin-bottom: 20px;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease;
}

.login-card .icon img:hover {
  transform: scale(1.08);
}

/* ===== LOGIN TITLE ===== */
.login-card h1 {
  color: #fff;
  font-size: 28px;
  margin-bottom: 5px;
  letter-spacing: 1px;
}

.login-card .subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin-bottom: 25px;
}

/* ===== LOGIN INPUT & SELECT ===== */
.input-container {
  position: relative;
  width: 100%;
  margin: 15px 0;
}

.input-container i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  width: 24px;
  text-align: center;
  z-index: 2;
  transition: color 0.3s ease;
}

.input-container:focus-within i {
  color: #FFD600;
  /* Berubah warna kuning saat diklik/fokus */
}

.login-card input {
  width: 100%;
  padding: 14px 16px 14px 56px;
  /* Diubah ke 56px supaya spasi teks dan icon lebih lebar dan tidak berdempetan */
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  font-size: 15px;
  color: #fff;

  background: rgba(255, 255, 255, 0.15);
  outline: none;
  transition: all 0.3s ease;
}

.login-card select {
  width: 100%;
  padding: 14px 16px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  font-size: 15px;
  color: #fff;

  background: rgba(255, 255, 255, 0.15);
  outline: none;
  transition: all 0.3s ease;
  appearance: none;
  /* Hilangkan panah default select bawaan browser agar lebih bersih */
}

/* Khusus Select tambahkan icon panah buatan agar tidak polos */
.login-card select {
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23FFFFFF%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 16px top 50%;
  background-size: 12px auto;
}

/* Memperbaiki warna opsi dropdown ketika di-klik (agar tidak transparan di beberapa browser) */
.login-card select option {
  background: #1565C0;
  color: #fff;
}

.login-card input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.login-card input:focus,
.login-card select:focus {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* ===== LOGIN BUTTON ===== */
.login-card .btn-login {
  width: 100%;
  margin-top: 25px;
  padding: 14px;
  border-radius: 12px;
  border: none;

  background: linear-gradient(135deg, #FFD600, #FBC02D);
  color: #0d47a1;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;

  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.login-card .btn-login:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(255, 214, 0, 0.4);
  background: linear-gradient(135deg, #FBC02D, #F9A825);
}

/* ===== LOGIN FOOTER TEXT ===== */
.login-card p {
  margin-top: 18px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

.login-card p a {
  color: #ffeb3b;
  font-weight: 600;
  text-decoration: none;
}

.login-card p a:hover {
  text-decoration: underline;
}

/* ===== REGISTER CARD ===== */
.register-card {
  width: 100%;
  max-width: 400px;
  padding: 45px 40px;
  border-radius: 24px;

  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
  text-align: center;
  animation: fadeUp 1s ease forwards;
}

.register-card .icon img {
  width: 90px;
  margin-bottom: 20px;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease;
}

.register-card .icon img:hover {
  transform: scale(1.08);
}

.register-card h1 {
  color: #fff;
  font-size: 30px;
  margin-bottom: 25px;
  letter-spacing: 1px;
}

.register-card input,
.register-card select {
  width: 100%;
  padding: 14px 16px;
  margin: 10px 0;
  border-radius: 14px;
  border: none;
  outline: none;
  font-size: 15px;

  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  transition: all 0.3s ease;
}

.register-card input::placeholder {
  color: rgba(255, 255, 255, 0.8);
}

.register-card input:focus,
.register-card select:focus {
  background: rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

.register-card button {
  width: 100%;
  margin-top: 18px;
  padding: 14px;
  border-radius: 14px;
  border: none;

  background: linear-gradient(135deg, #ffd600, #ffea00);
  color: #0d47a1;
  font-size: 16px;
  font-weight: 600;

  cursor: pointer;
  transition: all 0.3s ease;
}

.register-card button:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 25px rgba(255, 214, 0, 0.4);
}

.register-card p {
  margin-top: 18px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

.register-card p a {
  color: #ffeb3b;
  font-weight: 600;
  text-decoration: none;
}

.register-card p a:hover {
  text-decoration: underline;
}

/* ===== DASHBOARD PAGE ===== */
.main {
  margin-left: 220px;
  padding: 30px;
  transition: margin-left 0.3s ease;
  min-height: 100vh;
  background: #f5f5f5;
}

.main h2 {
  color: #1565C0;
  font-size: 28px;
  margin-bottom: 20px;
}

.main.shift {
  margin-left: 0;
}

.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.card {
  background: #fff;
  padding: 20px;
  border-radius: 0;
  border: 1px solid #e0e0e0;
  box-shadow: none;
  text-align: center;
  border-bottom: 3px solid #1565C0;
}

.card h4 {
  color: #666;
  margin-bottom: 15px;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#grafikTamu {
  width: 100%;
  margin-top: 40px;
  background: #fff;
  padding: 20px;
  border: 1px solid #e0e0e0;
}

/* ===== DATA TAMU PAGE ===== */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.top-bar h3 {
  margin: 0;
  color: #1565C0;
  font-size: 24px;
}

.add-btn {
  background: #1565C0;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
}

.add-btn:hover {
  background: #0d47a1;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(21, 101, 192, 0.3);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

th,
td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}

th {
  background: #1565C0;
  color: #fff;
  font-weight: 600;
}

tr:last-child td {
  border-bottom: none;
}

.status.masuk {
  color: #2196F3;
  font-weight: bold;
}

.status.keluar {
  color: #FFC107;
  font-weight: bold;
}

.action-btn {
  padding: 8px 12px;
  margin: 0 4px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  color: #fff;
  font-weight: 600;
  font-size: 12px;
  transition: opacity 0.3s;
}

.edit-btn {
  background: #2196F3;
}

.status-btn {
  background: #FF9800;
}

.print-btn {
  background: #4CAF50;
}

.action-btn:hover {
  opacity: 0.8;
}

.action-btn:disabled {
  background: #9e9e9e !important;
  cursor: not-allowed;
  opacity: 0.7;
  transform: none !important;
  box-shadow: none !important;
}

/* ===== MODAL FORM ===== */
#modalForm {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

#modalForm.show {
  display: flex;
}

#modalForm .card {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

#modalForm h3 {
  margin-bottom: 20px;
  color: #1565C0;
  font-size: 20px;
}

#modalForm label {
  display: block;
  margin-top: 15px;
  margin-bottom: 5px;
  color: #333;
  font-weight: 600;
  font-size: 14px;
}

#modalForm input,
#modalForm select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s;
}

#modalForm input:focus,
#modalForm select:focus {
  border-color: #1565C0;
  box-shadow: 0 0 0 2px rgba(21, 101, 192, 0.1);
}

.modal-buttons {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.btn-save,
.btn-cancel {
  flex: 1;
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s;
}

.btn-save {
  background: #4CAF50;
  color: #fff;
}

.btn-save:hover {
  background: #45a049;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-cancel {
  background: #f44336;
  color: #fff;
}

.btn-cancel:hover {
  background: #da190b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

/* ===== RESPONSIVE MAIN CONTENT ===== */
@media (max-width: 768px) {
  .main {
    margin-left: 0;
    padding: 15px;
    padding-top: 70px;
  }

  .main h2 {
    font-size: 22px;
    margin-bottom: 15px;
  }

  .dashboard-cards {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .card {
    padding: 15px;
  }

  .top-bar {
    flex-direction: column;
    gap: 10px;
  }

  .add-btn {
    width: 100%;
  }

  table {
    font-size: 12px;
  }

  th,
  td {
    padding: 8px 4px;
  }

  .action-btn {
    padding: 6px 8px;
    font-size: 10px;
    margin: 2px;
  }

  #modalForm .card {
    max-width: 95%;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .main {
    padding: 10px;
    padding-top: 60px;
  }

  .main h2 {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .card {
    padding: 10px;
  }

  .card h4 {
    font-size: 12px;
  }

  .card p {
    font-size: 18px !important;
  }

  .top-bar h3 {
    font-size: 16px;
  }

  .add-btn {
    padding: 10px 12px;
    font-size: 12px;
  }

  .action-btn {
    padding: 5px 6px;
    font-size: 9px;
  }

  table {
    font-size: 10px;
  }

  th,
  td {
    padding: 6px 2px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .main {
    margin-left: 200px;
    padding: 25px;
  }

  .dashboard-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* MOBILE & TABLET */
@media (max-width: 1024px) {
  .hamburger {
    display: block !important;
  }
}

.welcome-text {
  margin-top: 10px;
  font-size: 16px;
  color: #1565C0;
}

/* ===== LOGIN SELECT (DROPDOWN) ===== */
.login-card select {
  width: 100%;
  padding: 14px 42px 14px 16px;
  margin: 10px 0;
  border-radius: 14px;
  border: none;
  outline: none;
  font-size: 15px;
  font-weight: 500;

  background-color: rgba(255, 255, 255, 0.25);
  color: #fff;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23ffffff' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px;

  transition: all 0.3s ease;
}

/* Hover */
.login-card select:hover {
  background-color: rgba(255, 255, 255, 0.35);
}

/* Focus */
.login-card select:focus {
  background-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

/* Option */
.login-card select option {
  color: #333;
  background: #fff;
  font-weight: 500;
}

/* ===== LAPORAN PAGE ===== */
.report-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

/* Filter Card */
.filter-card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #e0e0e0;
}

.filter-card h4 {
  margin-bottom: 15px;
  color: #1565C0;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: flex-end;
}

.form-group {
  flex: 1;
  min-width: 200px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  margin-bottom: 5px;
}

.form-control {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
}

.form-actions {
  display: flex;
  gap: 10px;
}

.btn-filter,
.btn-reset {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s;
}

.btn-filter {
  background: #1565C0;
  color: white;
}

.btn-filter:hover {
  background: #0d47a1;
  transform: translateY(-2px);
}

.btn-reset {
  background: #f5f5f5;
  color: #333;
  border: 1px solid #ddd;
}

.btn-reset:hover {
  background: #e0e0e0;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.stat-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
  transition: transform 0.3s;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-card .icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
}

.stat-card .info h5 {
  font-size: 14px;
  color: #777;
  margin-bottom: 5px;
  font-weight: 500;
}

.stat-card .info h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 2px;
  color: #333;
}

.stat-card .info small {
  font-size: 12px;
  color: #999;
}

/* Colors */
.stat-card.blue .icon {
  background: linear-gradient(135deg, #42a5f5, #1976d2);
  box-shadow: 0 4px 10px rgba(33, 150, 243, 0.3);
}

.stat-card.green .icon {
  background: linear-gradient(135deg, #66bb6a, #388e3c);
  box-shadow: 0 4px 10px rgba(76, 175, 80, 0.3);
}

.stat-card.orange .icon {
  background: linear-gradient(135deg, #ffa726, #f57c00);
  box-shadow: 0 4px 10px rgba(255, 152, 0, 0.3);
}

.stat-card.red .icon {
  background: linear-gradient(135deg, #ef5350, #d32f2f);
  box-shadow: 0 4px 10px rgba(244, 67, 54, 0.3);
}

/* Table Style Update */
.table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.table th {
  background: #f8f9fa;
  color: #333;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  border-bottom: 2px solid #e0e0e0;
}


/* Status Badges */
.status-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
  text-align: center;
  min-width: 80px;
}

.status-badge.masuk {
  background-color: #e3f2fd;
  color: #1565C0;
  border: 1px solid #bbdefb;
}

.status-badge.keluar {
  background-color: #fff3e0;
  color: #ef6c00;
  border: 1px solid #ffe0b2;
}

.status-badge.selesai {
  background-color: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}

/* Enhanced Table */
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  margin-top: 10px;
}

.table thead th {
  background: #f8f9fa;
  color: #444;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
  padding: 16px;
  border-bottom: 2px solid #eaebec;
  text-align: left;
}

.table tbody td {
  padding: 16px;
  border-bottom: 1px solid #f1f1f1;
  color: #333;
  font-size: 14px;
  vertical-align: middle;
}

.table tbody tr:last-child td {
  border-bottom: none;
}

.table tbody tr:hover {
  background-color: #fafbfc;
}


@media(max-width: 768px) {
  .filter-form {
    flex-direction: column;
    align-items: stretch;
  }

  .form-actions {
    margin-top: 10px;
  }
}