/* === HEADER UTAMA === */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  height: 70px;
  background: linear-gradient(to right, rgba(20, 22, 28, 0.6), rgba(10, 12, 16, 0.6));
  backdrop-filter: blur(12px);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* === JUDUL HEADER === */
.header h1 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* === KANAN HEADER: TEMA + LOGOUT === */
.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* === TOGGLE TEMA === */
.theme-toggle-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle-container i {
  color: var(--highlight);
  font-size: 1rem;
}

/* === SWITCH SLIDER === */
.switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 22px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background-color: #444;
  transition: 0.4s;
  border-radius: 34px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

.slider:before {
  content: "";
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--highlight);
}

input:checked + .slider:before {
  transform: translateX(20px);
}

/* === TOMBOL LOGOUT === */
.header .logout {
  padding: 8px 14px;
  background: linear-gradient(to bottom right, rgba(31, 44, 63, 0.75), rgba(20, 30, 50, 0.7));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--border-radius);
  color: white;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 191, 255, 0.15);
  backdrop-filter: blur(8px);
}

.header .logout:hover {
  background: linear-gradient(to bottom right, rgba(44, 63, 93, 0.8), rgba(30, 42, 70, 0.75));
  box-shadow: 0 0 15px rgba(0, 191, 255, 0.3);
}
.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}