* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  min-height: 100vh;
  color: white;
  background:
    radial-gradient(circle at top right, rgba(255, 176, 32, 0.2), transparent 35%),
    radial-gradient(circle at bottom left, rgba(0, 200, 255, 0.14), transparent 35%),
    #090b13;
}

.forgot-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.forgot-box {
  width: 100%;
  max-width: 460px;
  padding: 34px;
  border-radius: 30px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
  backdrop-filter: blur(18px);
}

.logo {
  display: inline-block;
  color: white;
  text-decoration: none;
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 28px;
}

.logo span {
  color: #ffb020;
}

.forgot-box h2 {
  font-size: 34px;
  margin-bottom: 10px;
}

.sub-text {
  color: #aab3d4;
  line-height: 1.6;
  margin-bottom: 28px;
}

.input-group {
  margin-bottom: 18px;
}

.input-group label {
  display: block;
  margin-bottom: 9px;
  color: #dbe2ff;
  font-weight: 700;
  font-size: 14px;
}

.input-group input {
  width: 100%;
  height: 52px;
  border-radius: 15px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.22);
  color: white;
  padding: 0 16px;
  font-size: 15px;
  outline: none;
}

.input-group input:focus {
  border-color: #ffb020;
  box-shadow: 0 0 0 3px rgba(255, 176, 32, 0.12);
}

.input-group input::placeholder {
  color: #747d9f;
}

.main-btn {
  width: 100%;
  height: 56px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #ffb020, #ff7900);
  color: #111;
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 15px 30px rgba(255, 145, 0, 0.25);
  margin-bottom: 18px;
}

.reset-area {
  display: none;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

#message {
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  margin-top: 8px;
}

.success {
  color: #00ff99;
}

.error {
  color: #ff6b6b;
}

.back-login {
  text-align: center;
  margin-top: 22px;
}

.back-login a {
  color: #ffb020;
  text-decoration: none;
  font-weight: 800;
}

/* ===== FIX SIDEBAR KHOẢNG CÁCH NÚT BỊ NHẢY KHI BẤM ===== */
.sidebar,
.sidebar-inner,
.menu-group {
  box-sizing: border-box !important;
}

.sidebar-inner {
  overflow: hidden !important;
}

.menu-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  margin-bottom: 18px !important;
}

/* Tất cả nút menu có cùng chiều cao/khoảng cách */
.menu-item {
  box-sizing: border-box !important;
  min-height: 48px !important;
  height: 48px !important;
  padding: 0 14px !important;
  margin: 0 !important;
  border: 1px solid transparent !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  line-height: 1 !important;
  transform: none !important;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease, border-color .18s ease !important;
}

/* Không cho hover/active đẩy nút khác */
.menu-item:hover,
.menu-item.active {
  transform: none !important;
  margin: 0 !important;
  padding: 0 14px !important;
  min-height: 48px !important;
  height: 48px !important;
}

/* Nếu active có border thì không làm thay đổi kích thước */
.menu-item.active {
  border: 1px solid rgba(45, 212, 191, 0.45) !important;
}

/* Ẩn label phụ như Kiếm Tiền, không để chừa khoảng trắng */
.menu-label:not(:first-child) {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
}

/* Label Tổng Quan cố định */
.menu-label:first-child {
  margin: 0 0 12px 14px !important;
  height: auto !important;
}

/* Icon và chữ không làm nút cao thấp khác nhau */
.menu-icon {
  width: 20px !important;
  min-width: 20px !important;
  height: 20px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
}

.menu-item span:last-child {
  line-height: 1 !important;
}

/* ===== FINAL FIX SIDEBAR: CHẶN GIÃN NÚT RÚT TIỀN / GIỚI THIỆU ===== */
.sidebar {
  width: 255px !important;
  min-width: 255px !important;
  max-width: 255px !important;
  overflow: hidden !important;
}

.sidebar-inner {
  width: 100% !important;
  height: 100% !important;
  padding: 18px 14px !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

.menu-group {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  margin: 0 0 18px 0 !important;
  padding: 0 !important;
}

.menu-label {
  display: none !important;
}

.menu-label:first-child {
  display: block !important;
  width: 100% !important;
  height: 16px !important;
  line-height: 16px !important;
  margin: 0 0 8px 14px !important;
  padding: 0 !important;
  font-size: 11px !important;
}

/* Cố định tuyệt đối kích thước mọi nút menu */
.sidebar .menu-item,
.sidebar .menu-item:link,
.sidebar .menu-item:visited,
.sidebar .menu-item:hover,
.sidebar .menu-item:active,
.sidebar .menu-item.active,
.sidebar a.menu-item,
.sidebar a.menu-item:hover,
.sidebar a.menu-item.active {
  width: 100% !important;
  max-width: 100% !important;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  margin: 0 !important;
  padding: 0 14px !important;
  border: 1px solid transparent !important;
  border-radius: 16px !important;
  box-sizing: border-box !important;

  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;

  flex: 0 0 48px !important;
  flex-shrink: 0 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  transform: none !important;
  position: relative !important;
  left: 0 !important;
  top: 0 !important;
  cursor: pointer !important;
}

/* Active chỉ đổi màu, KHÔNG đổi kích thước */
.sidebar .menu-item.active,
.sidebar a.menu-item.active {
  background: linear-gradient(135deg, #7c3aed, #4f46e5) !important;
  color: #ffffff !important;
  border-color: rgba(45, 212, 191, 0.45) !important;
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.28) !important;
}

/* Hover chỉ đổi màu, không dịch chuyển */
.sidebar .menu-item:hover,
.sidebar a.menu-item:hover {
  background: rgba(124, 58, 237, 0.16) !important;
  color: #ffffff !important;
  transform: none !important;
}

/* Icon và chữ cố định, không làm nút cao lên */
.sidebar .menu-icon {
  width: 20px !important;
  min-width: 20px !important;
  max-width: 20px !important;
  height: 20px !important;
  min-height: 20px !important;
  max-height: 20px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 20px !important;
  font-size: 15px !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: 0 0 20px !important;
}

.sidebar .menu-item span:not(.menu-icon) {
  display: inline-block !important;
  line-height: 20px !important;
  height: 20px !important;
  margin: 0 !important;
  padding: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Chặn pseudo element hoặc hiệu ứng cũ che click */
.sidebar .menu-item::before,
.sidebar .menu-item::after {
  pointer-events: none !important;
  display: none !important;
}

/* Nút đăng xuất cố định dưới cùng */
.sidebar .logout-btn {
  margin-top: auto !important;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  flex: 0 0 48px !important;
}
