/* ===================== BASE STYLES ===================== */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  padding-bottom: 80px;
  background: #fff;
  transition: background 0.3s;
}

body.dark {
  background: #121212;
  color: #fff;
}

.content {
  padding: 20px;
}

/* ===================== DARK MODE TOGGLE ===================== */
.dark-toggle {
  position: fixed;
  top: 12px;
  right: 16px;
  z-index: 999;
  background: #0a66c2;
  color: #fff;
  border-radius: 50%;
  padding: 10px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* ===================== BOTTOM NAVIGATION ===================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 60px;
  background: #fff;
  border-top: 1px solid #ddd;
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.05);
  z-index: 998;
}

.nav-item {
  flex: 1;
  text-align: center;
  text-decoration: none;
  color: #444;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nav-item .material-icons {
  font-size: 24px;
  margin-bottom: 2px;
}

.badge-container {
  position: relative;
}

.badge {
  position: absolute;
  top: -4px;
  right: -10px;
  background: red;
  color: white;
  font-size: 10px;
  font-weight: bold;
  border-radius: 50%;
  padding: 2px 6px;
  min-width: 16px;
  line-height: 1;
}

/* ===================== FAB (Floating Action Button) ===================== */
/* ✅ FAB Wrapper Fixed to Bottom Right */
.fab-wrapper {
  position: fixed;
  bottom: 16px; /* Push to bottom edge */
  right: 16px;
  z-index: 999;
  margin-bottom: 65px;
  display: flex;
  flex-direction: column-reverse; /* Shows FAB at bottom and actions above */
  align-items: flex-end;
}

/* ✅ Main FAB Button */
.fab {
  width: 56px;
  height: 56px;
  background-color: #0a66c2;
  color: white;
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

/* ✅ Floating Buttons (Initially Hidden) */
.fab-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 10px;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.3s ease;
}

/* ✅ Show When .show Class is Active */
.fab-wrapper.show .fab-actions {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ✅ Individual Floating Buttons */
.fab-labeled-btn {
  display: flex;
  align-items: center;
  background-color: #fff;
  color: #333;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 30px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  transition: background 0.2s;
  min-height: 44px;
}

.fab-labeled-btn:hover {
  background-color: #f1f1f1;
}

.fab-labeled-btn .label {
  font-size: 14px;
  margin-right: 8px;
}

/* ✅ Mini FAB Icon */
.same-fab {
  width: 36px;
  height: 36px;
  background-color: #0a66c2;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}


/* ===================== ANIMATION ===================== */
@keyframes fadeInUp {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ===================== MOBILE ONLY ===================== */
@media (min-width: 768px) {
  .bottom-nav,
  .fab-wrapper,
  .dark-toggle {
    display: none;
  }
}
