/* ====== RESET ====== */
/* Mengatur margin, padding, dan box-sizing untuk semua elemen agar konsisten */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ====== BODY ====== */
/* Mengatur tampilan dasar halaman di menu */
body {
  
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  margin: 0;
  background: #fff;
  
}

/* ====== NAVBAR ====== */
/* Bagian utama navbar di menu.php */
.navbar {
  margin-top: -1px;
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #006cd8ff;
  padding: 2px 30px 6px ;
  color: white;
  position: sticky;
  top: 0;
  z-index: 998;
}

/* ====== MENU HORIZONTAL ====== */
/* Menu navigasi utama */
.menu {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 10px;
  
  
}

.menu a {
  color: white;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  position: relative;
}

.menu a i {
  color: white !important;
  font-size: 15px;

}

/* ====== DROPDOWN MENU ====== */
/* Dropdown untuk submenu */
.dropdown {
  position: relative;
  
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgb(255, 255, 255);
  min-width: 180px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  overflow: hidden;
  z-index: 999;
  font-size: 20px;
  
}

.dropdown-content a {
  color: #333;
  padding: 10px 15px;
  display: block;
  text-decoration: none;
  font-size: 14px;
}

.dropdown-content a:hover {
  background: #3399ff;
  color: white;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* ====== TOMBOL MENU (MOBILE) ====== */
/* Tombol menu yang muncul di layar kecil */
.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 15px;
  color: white;
  background: #2678cc;
  padding: 6px 12px;
  border-radius: 6px;
  border: none;
  align-items: center;
  gap: 6px;
}

.menu-toggle i {
  color: white;
  font-size: 18px;
}

/* ====== POPUP MENU (MOBILE) ====== */
/* Popup menu yang muncul saat tombol menu di klik di mobile */
.menu-popup {
  display: none;
  position: absolute;
  top: 100px;
  right: 5px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  width: 260px;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
  max-height: 80vh;
  overflow-y: auto;
}

@keyframes fadeIn {
  from {opacity: 0; transform: scale(0.95);}
  to {opacity: 1; transform: scale(1);}
}

.menu-popup .section {
  margin-bottom: 15px;
}

.menu-popup .section h4 {
  margin: 0 0 8px;
  font-size: 14px;
  border-bottom: 1px solid #eee;
  padding-bottom: 5px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 6px;
}

.menu-popup .section h4 i {
  color: white !important;
  background: #3399ff;
  padding: 4px;
  border-radius: 4px;
  font-size: 12px;
}

.menu-popup .section a {
  display: inline-block;
  margin: 4px 4px 0 0;
  padding: 7px 10px;
  font-size: 13px;
  background: #f5f5f5;
  border-radius: 6px;
  text-decoration: none;
  color: #333;
  transition: 0.2s;
}

.menu-popup .section a:hover {
  background: #3399ff;
  color: white;
}

/* ====== RESPONSIVE ====== */
/* Atur tampilan menu saat layar kecil */
@media (max-width: 768px) {
  .menu {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
}

/* ====== USER AREA ====== */
/* Bagian info user dan logout di kanan navbar */
.user-area {
  display: flex;
  align-items: center;
  gap: 20px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 6px;
  color: white;
  font-size: 14px;
  text-decoration: none;
  position: relative;
}

/* ====== DROPDOWN USER ====== */
/* Dropdown untuk menu user */
.user-dropdown {
  position: relative;
  display: inline-block;
}

.user-dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background: white;
  min-width: 200px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  border-radius: 6px;
  overflow: hidden;
  z-index: 999;
}

.user-dropdown-content a {
  color: #333;
  padding: 10px 15px;
  display: block;
  text-decoration: none;
  font-size: 13px;
}

.user-dropdown-content a:hover {
  background: #3399ff;
  color: white;
}

.user-dropdown:hover .user-dropdown-content {
  display: block;
}

/* ====== USER CIRCLE ICON ====== */
/* Icon lingkaran user */
.user-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  color: #006cd8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  border: 2px solid #fff;
}