* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html,
body {
  width: 100%;
  height: 100%;
}

body {
  background:
    linear-gradient(rgba(15, 23, 42, 0.65), rgba(15, 23, 42, 0.65)),
    url("img/background.png");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;

  overflow-y: auto;
}

.dashboard {
  display: flex;
  padding: 20px;
  gap: 20px;
  min-height: 100vh;
  overflow: hidden;
}
.sidebar {
  width: 270px;
  min-width: 270px;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 30px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: 0.45s ease;
  min-height: calc(100vh - 40px);
  position: relative;

  z-index: 1;
}

.logo {
  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  transition: 0.35s;
}

.logo img {
  width: 90px;

  margin-bottom: 15px;
}

.logo h2 {
  color: white;

  font-size: 23px;

  font-weight: 600;
}

.logo p {
  color: #d6d6d6;

  margin-top: 6px;

  font-size: 14px;
}
.sidebar ul {
  list-style: none;

  margin-top: 40px;
}

.sidebar ul li {
  margin-bottom: 12px;
}
.sidebar ul li a {
  display: flex;

  align-items: center;

  gap: 16px;

  padding: 15px 18px;

  border-radius: 15px;

  color: white;

  text-decoration: none;

  font-size: 15px;

  transition: all 0.35s ease;
}

.sidebar ul li a i {
  width: 24px;

  font-size: 20px;
  text-align: center;

  transition: 0.35s;
}

.sidebar ul li a:hover {
  background: rgba(255, 255, 255, 0.15);

  transform: translateX(8px);
}
.sidebar ul li a:hover i {
  transform: scale(1.2);
}

.sidebar.close {
  width: 95px;

  min-width: 95px;

  padding: 30px 15px;
}
.sidebar.close ul li a {
  justify-content: center;
  display: flex;
  align-items: center;

  padding: 15px 0;
}
.sidebar.close ul li a i {
  margin: 0;
  width: auto;
}
.sidebar.close span {
  display: none;
}
.sidebar.close .logo h2,
.sidebar.close .logo p {
  display: none;
}
.sidebar.close .logo img {
  width: 55px;

  margin-bottom: 0;
}
.sidebar.close .logout a {
  display: flex;

  justify-content: center;

  align-items: center;
}
.sidebar.close .logout span {
  display: none;
}
/* ===========================
   ACTIVE MENU
=========================== */

.sidebar ul li a.active {
  background: rgba(255, 255, 255, 0.18);

  color: white;

  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.sidebar ul li a.active i {
  color: #ffffff;
}
.logout {
  margin-top: 30px;

  padding-top: 25px;

  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.logout a {
  display: flex;

  align-items: center;

  justify-content: center;

  gap: 12px;

  text-decoration: none;

  color: white;

  padding: 15px;

  border-radius: 15px;

  background: #d63031;

  transition: 0.3s;
}

.logout a:hover {
  background: #dc2626;
}
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;

  overflow-y: auto;
  overflow-x: auto;
}

/* ===========================
   HEADER
=========================== */

.topbar {
  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 18px 25px;

  border-radius: 20px;

  background: rgba(255, 255, 255, 0.08);

  backdrop-filter: blur(20px);

  border: 1px solid rgba(255, 255, 255, 0.12);

  position: sticky;
  top: 20px;

  z-index: 2000;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 15px;

  min-width: fit-content;
}

.topbar-left h2 {
  color: white;

  font-size: 28px;

  font-weight: 700;
}
.topbar-right {
  flex-wrap: wrap;
}
.admin {
  color: white;

  font-weight: 600;

  display: flex;

  align-items: center;

  gap: 10px;

  font-size: 17px;
  white-space: nowrap;
}
.menu-btn {
  width: 45px;
  height: 45px;

  display: flex;
  justify-content: center;
  align-items: center;

  flex-shrink: 0;

  border: none;
  border-radius: 12px;

  background: rgba(255, 255, 255, 0.08);

  color: #fff;

  cursor: pointer;

  position: relative;
  z-index: 9999;
}
.menu-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}
.menu-btn i {
  font-size: 20px;
  color: #fff;
}

.topbar-right {
  display: flex;

  align-items: center;

  gap: 25px;
}

.datetime {
  display: flex;

  flex-direction: column;

  align-items: flex-end;
}

.datetime span {
  color: white;

  font-size: 16px;

  font-weight: 600;
}

.datetime small {
  color: rgba(255, 255, 255, 0.75);

  margin-top: 3px;

  font-size: 13px;
}

/* ===========================
   CARD STATISTIK
=========================== */

.cards {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));

  gap: 25px;

  margin-top: 20px;
}

.card {
  display: flex;

  align-items: center;

  gap: 20px;

  text-decoration: none;

  padding: 25px;

  border-radius: 22px;

  background: rgba(255, 255, 255, 0.08);

  backdrop-filter: blur(20px);

  border: 1px solid rgba(255, 255, 255, 0.12);

  transition: 0.35s;

  color: white;

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.card:hover {
  transform: translateY(-8px);

  background: rgba(255, 255, 255, 0.14);
}

.card-icon {
  width: 65px;

  height: 65px;

  border-radius: 18px;

  background: #4f8ef7;

  display: flex;

  justify-content: center;

  align-items: center;

  font-size: 28px;

  color: white;

  flex-shrink: 0;
}
.card-info h2 {
  font-size: 32px;

  margin-bottom: 5px;

  color: white;
}

.card-info p {
  color: rgba(255, 255, 255, 0.85);

  font-size: 15px;
}
.sidebar {
  transition: 0.4s ease;
}
.sidebar.close {
  width: 90px;

  min-width: 90px;
}
.sidebar.close h2,
.sidebar.close p,
.sidebar.close nav span,
.sidebar.close .logout span {
  display: none;
}
nav {
  margin-top: 35px;
}

/* ===========================
   WELCOME SECTION
=========================== */

.welcome {
  margin-top: 20px;

  padding: 35px 40px;

  border-radius: 25px;

  background: rgba(255, 255, 255, 0.08);

  backdrop-filter: blur(20px);

  border: 1px solid rgba(255, 255, 255, 0.12);

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);

  position: relative;

  overflow: hidden;
}

.welcome::before {
  content: "";

  position: absolute;

  top: -60px;

  right: -60px;

  width: 180px;

  height: 180px;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.08);

  filter: blur(10px);
}

.welcome h1 {
  color: white;

  font-size: 34px;

  font-weight: 700;

  margin-bottom: 12px;

  position: relative;

  z-index: 2;
}

.welcome p {
  color: rgba(255, 255, 255, 0.85);

  font-size: 16px;

  line-height: 1.8;

  max-width: 700px;

  position: relative;

  z-index: 2;
}

.welcome span {
  color: #7dd3fc;

  font-weight: 600;
}
/* ===========================
   TABLET
=========================== */

@media (max-width: 992px) {
  .sidebar {
    width: 90px;
    min-width: 90px;
    position: fixed;
    left: -300px;
    height: calc(100vh - 80px);
    top: 100px;
    position: fixed;

    z-index: 1000;
  }
  .sidebar.show {
    left: 20px;
  }

  .sidebar span,
  .sidebar h2,
  .sidebar p {
    display: none;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .sidebar ul li a {
    display: flex;
    justify-content: center;
    align-items: center;

    padding: 16px 0;
  }

  .sidebar ul li a i {
    width: auto;
    margin: 0;
    font-size: 22px;
    text-align: center;
  }

  .sidebar {
    -webkit-overflow-scrolling: touch;
    z-index: 1000;
  }
}
/* ===========================
   MOBILE
=========================== */

@media (max-width: 992px) {
  .dashboard {
    flex-direction: column;
  }

  .sidebar {
    position: fixed;

    left: -300px;

    top: 20px;

    z-index: 1000;
    transition: 0.4s;
    height: calc(100vh - 40px);
    overflow-y: auto;
    overflow-x: hidden;
  }
  .sidebar::-webkit-scrollbar {
    width: 0;
  }

  .sidebar {
    scrollbar-width: none;
  }
  .sidebar.show {
    left: 20px;
  }

  .main-content {
    width: 100%;
  }

  .cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .topbar {
    flex-direction: column;

    align-items: flex-start;

    gap: 15px;
    position: relative;
    z-index: 2000;
  }

  .topbar-right {
    width: 100%;

    display: flex;

    justify-content: space-between;

    align-items: center;
  }
}
@media (max-width: 768px) {
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .data-table {
    min-width: 1000px;
  }

  .table-responsive::-webkit-scrollbar {
    height: 6px;
  }

  .table-responsive::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 20px;
  }
  .sidebar ul li a {
    display: flex;
    justify-content: center;
    align-items: center;

    padding: 16px 0;
  }

  .sidebar ul li a i {
    width: auto;
    margin: 0;
    font-size: 22px;
    text-align: center;
  }

  .sidebar {
    -webkit-overflow-scrolling: touch;
    z-index: 1000;
  }
}

/* =======================================
   CONTENT CARD
======================================= */

.content-card {
  margin-top: 30px;
}

.toolbar {
  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 20px;

  margin-bottom: 25px;

  flex-wrap: wrap;
}
.btn-tambah {
  display: flex;

  align-items: center;

  gap: 10px;

  padding: 14px 24px;

  text-decoration: none;

  color: white;

  background: #16a34a;

  border-radius: 14px;

  font-weight: 600;

  transition: 0.3s;
}

.btn-tambah:hover {
  background: #15803d;

  transform: translateY(-2px);
}
.search-form {
  display: flex;

  align-items: center;

  gap: 15px;
}

.search-box {
  display: flex;

  align-items: center;

  gap: 12px;

  padding: 12px 18px;

  width: 360px;

  border-radius: 14px;

  background: rgba(255, 255, 255, 0.08);

  backdrop-filter: blur(15px);

  border: 1px solid rgba(255, 255, 255, 0.12);
}

.search-box i {
  color: #dcdcdc;
}

.search-box input {
  width: 100%;

  background: none;

  border: none;

  outline: none;

  color: white;

  font-size: 15px;
}

.search-box input::placeholder {
  color: #d5d5d5;
}
.btn-search {
  padding: 12px 22px;

  border: none;

  border-radius: 14px;

  background: #2563eb;

  color: white;

  cursor: pointer;

  font-weight: 600;

  transition: 0.3s;
}

.btn-search:hover {
  background: #1d4ed8;
}
.table-card {
  padding: 25px;

  border-radius: 25px;

  background: rgba(255, 255, 255, 0.08);

  backdrop-filter: blur(15px);

  border: 1px solid rgba(255, 255, 255, 0.12);
}
.table-responsive {
  width: 100%;
}
.table-responsive::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);

  border-radius: 20px;
}
/* =======================================
   TABEL DATA
======================================= */

.data-table {
  width: 100%;

  border-collapse: collapse;

  color: white;
  table-layout: fixed;
}
.data-table thead {
  background: rgba(255, 255, 255, 0.12);
}

.data-table th {
  padding: 12px 12px;
  color: #ffffff;

  text-align: left;

  font-size: 11px;
  text-transform: uppercase;

  letter-spacing: 0.5px;
  font-weight: 600;
}

.data-table td {
  padding: 12px 12px;
  font-size: 12px;
  color: #f1f1f1;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  vertical-align: middle;
}
.data-table tbody tr {
  transition: 0.25s;
}

.data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.05);
}
/* Kolom Nomor */
.data-table th:first-child,
.data-table td:first-child {
  width: 70px;
  text-align: center;
  vertical-align: middle;
  font-weight: 600;
}
.data-table img {
  width: 50px;

  height: 50px;

  border-radius: 12px;

  object-fit: cover;

  border: 2px solid rgba(255, 255, 255, 0.15);
}
.aksi {
  display: flex;

  justify-content: center;

  align-items: center;

  gap: 8px;
}

.aksi a {
  width: 36px;

  height: 36px;
  padding: 8px 14px;

  min-width: 45px;

  display: flex;

  justify-content: center;

  align-items: center;

  text-decoration: none;

  color: white;

  border-radius: 10px;

  transition: 0.3s ease;

  flex-shrink: 0;
}

.edit {
  background: #2563eb;
}

.edit:hover {
  background: #1d4ed8;

  transform: translateY(-2px);
}

.hapus {
  background: #dc2626;
}

.hapus:hover {
  background: #b91c1c;

  transform: translateY(-2px);
}

.aksi i {
  font-size: 14px;
}
.data-table thead {
  background: rgba(255, 255, 255, 0.12);
}
@media (max-width: 768px) {
  .toolbar {
    flex-direction: column;

    align-items: stretch;
  }

  .search-form {
    width: 100%;
  }

  .search-box {
    width: 100%;
  }

  .btn-search {
    width: 120px;
  }
}
html {
  scroll-behavior: smooth;
}
