<!DOCTYPE html>
<html lang="id">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Sistem Informasi Dialog Kinerja Kota Tangerang</title>
  <!-- Bootstrap 5 -->
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
  <!-- Bootstrap Icons -->
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
  <script src="//code.jquery.com/jquery-3.6.0.min.js"></script>
  <script src="//code.jquery.com/ui/1.13.2/jquery-ui.min.js"></script>
  <!-- Tambahkan di dalam <head> -->
  <link href="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/css/select2.min.css" rel="stylesheet" />
  <script src="https://cdn.jsdelivr.net/npm/jquery@3.6.0/dist/jquery.min.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/js/select2.min.js"></script>
  <style>
    body {
      background-color: #f8f9fa;
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      margin: 0;
      padding: 0;
    }
    .header {
      background: #004085;
      color: #fff;
      padding: 0.75rem 1.5rem;
      box-shadow: 0 2px 5px rgba(0,0,0,0.1);
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 1001;
      height: 60px;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .main-content {
      margin-left: 250px;
      padding: 20px;
      background: #f8f9fa;
      min-height: 100vh;
      overflow-x: auto; /* ← Izinkan scroll horizontal jika perlu */
    }

    @media (max-width: 768px) {
      .main-content {
        margin-left: 0;
        padding: 15px;
      }
    }

		/* beri jarak antar komponen bawahan */
  .bawahan-wrapper > * {
    margin-top: .25rem; /* atau pakai 0.375rem kalau mau pas seperti bootstrap mt-1 */
  }

  /* hilangkan margin elemen pertama (biar rapi) */
  .bawahan-wrapper > *:first-child {
    margin-top: 0;
  }
  </style>
</head>
<body>

<!-- Header -->
<div class="header">
  <div class="d-flex align-items-center">
    <img src="<?= base_url('assets/img/favicon.ico') ?>" alt="Logo Kota Tangerang">
    <div>
      <strong>Sistem Informasi Dialog Kinerja (SIDIK)</strong><br>
      <small>KOTA TANGERANG</small>
    </div>
  </div>
  <!-- Profil di header (opsional mobile) -->
  <div class="d-md-none dropdown">
    <a class="text-white" href="#" role="button" data-bs-toggle="dropdown">
      <i class="bi bi-person-circle"></i>
    </a>
    <ul class="dropdown-menu dropdown-menu-end">
      <li><a class="dropdown-item" href="<?= base_url('profil') ?>">Profil</a></li>
      <li><hr class="dropdown-divider"></li>
      <li><a class="dropdown-item text-danger" href="<?= base_url('auth/logout') ?>">Logout</a></li>
    </ul>
  </div>
</div>
