<!DOCTYPE html>
<html lang="id">
<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1" />
  <title>Splash Screen</title>
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" />
  <style>
    body, html {
      height: 100%;
      margin: 0;
      background-color: #f8f9fa; /* ganti sesuai tema */
    }
    .splash-container {
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
    }
    .logo {
      max-width: 200px;
      margin-bottom: 20px;
    }
    .loading-gif {
      width: 50px;
      height: 50px;
    }
  </style>
</head>
<body>
  <div class="splash-container">
    <img src="<?=base_url()?>img/login.jpg" alt="Logo" class="logo" />
    <img src="<?=base_url()?>img/loading.gif" alt="Loading..." class="loading-gif" />
  </div>

<script>
  setTimeout(() => {
    window.location.href = "<?=base_url()?>vwarga/dashboard";
  }, 3000); // 3 detik
</script>
</body>
</html>