* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  display: flex;
  min-height: 100vh;
  background: #f0f4f8;
  color: #222;
}

/* Sidebar */
.sidebar {
  width: 250px;
  background: #0d47a1;
  color: white;
  float: left;
  min-height: 100vh;
  transition: 0.3s;
  overflow: hidden;
  position: fixed;
}

.sidebar.closed {
  width: 70px;
}

.sidebar-header {
  display: flex;
  align-items: center;
  padding: 15px;
  background: #1565c0;
  position: relative;
}

.sidebar-header .logo {
  width: 35px;
  margin-right: 10px;
}

.sidebar-header h2 {
  font-size: 18px;
  white-space: nowrap;
}

.sidebar-header button {
  position: absolute;
  right: 10px;
  top: 10px;
  background: none;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 18px;
}

/* Menu */
.sidebar-menu {
  list-style: none;
  margin-top: 15px;
}

.sidebar-menu li {
  padding: 10px 20px;
}

.sidebar-menu a {
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: 0.3s;
}

.sidebar-menu a:hover {
  background: #1976d2;
  border-radius: 5px;
}

.sidebar.closed .sidebar-menu a span {
  display: none;
}

/* Submenu */
.dropdown .submenu {
  display: none;
  list-style: none;
  padding-left: 20px;
}

.dropdown.open .submenu {
  display: block;
}

.right {
  margin-left: auto;
}

/* Konten */
.content {
  margin-left: 250px;
  width: calc(100% - 250px);
  padding: 20px;
  overflow-y: auto;
  height: calc(100vh - 50px);
  transition: 0.3s;
}

.sidebar.closed ~ .content {
  margin-left: 70px;
  width: calc(100% - 70px);
}

.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dark-btn {
  background: none;
  border: 2px solid #1565c0;
  color: #1565c0;
  border-radius: 50%;
  padding: 5px 8px;
  cursor: pointer;
  font-size: 16px;
  transition: 0.3s;
}

.dark-btn:hover {
  background: #1565c0;
  color: white;
}

.card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  padding: 15px;
  margin: 20px 0;
}

/* Footer */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #0d47a1;
  color: white;
  text-align: center;
  padding: 10px 0;
  font-size: 14px;
}

/* Dark mode */
body.dark {
  background: #121212;
  color: #ddd;
}

body.dark .content {
  background: #1e1e1e;
}

body.dark .card {
  background: #2a2a2a;
  color: white;
}

body.dark footer {
  background: #212121;
}

/* Scroll content */
.content-body {
  height: 75vh;
  overflow-y: auto;
  padding-right: 10px;
}

/* Responsif */
@media screen and (max-width: 768px) {
  .sidebar {
    position: fixed;
    z-index: 100;
  }
  .content {
    margin-left: 70px;
  }
}
/* Tabel data */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  font-size: 15px;
}

.data-table thead {
  background: #1976d2;
  color: white;
}

.data-table th, .data-table td {
  padding: 10px 12px;
  border: 1px solid #ddd;
  text-align: left;
}

.data-table tr:nth-child(even) {
  background: #f9f9f9;
}

.data-table tr:hover {
  background: #e3f2fd;
}

/* Tombol aksi */
.btn-edit, .btn-delete {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  padding: 5px;
  border-radius: 5px;
  transition: 0.3s;
}

.btn-edit {
  color: #1565c0;
}

.btn-delete {
  color: #c62828;
}

.btn-edit:hover {
  background: #bbdefb;
}

.btn-delete:hover {
  background: #ffcdd2;
}

/* Mode gelap untuk tabel */
body.dark .data-table thead {
  background: #424242;
}

body.dark .data-table tr:nth-child(even) {
  background: #2a2a2a;
}

body.dark .data-table td, body.dark .data-table th {
  border-color: #444;
}
form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

input, select {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.btn-tambah, .btn-kembali {
  display: inline-block;
  background: #1565c0;
  color: white;
  padding: 8px 15px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
  width: fit-content;
}

.btn-tambah:hover {
  background: #0d47a1;
}

.btn-kembali {
  background: gray;
}

.btn-kembali:hover {
  background: #555;
}

@media print {
  body * {
    visibility: hidden;
  }
  #print-area, #print-area * {
    visibility: visible;
  }
  #print-area {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    padding: 0 40px;
  }
  .no-print {
    display: none !important;
  }
  @page {
    size: A4;
    margin: 15mm;
  }
}

.kop-surat {
  display: flex;
  align-items: center;
  border-bottom: 3px solid #000;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.kop-surat img {
  width: 80px;
  height: 80px;
  margin-right: 15px;
}

.kop-surat h3 {
  margin: 0;
  font-weight: 700;
}

.kop-surat p {
  margin: 0;
  font-size: 14px;
}

.laporan-header {
  text-align: center;
  margin-bottom: 15px;
}

