/* ===== BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #1f1f2f;
  font-family: 'Segoe UI', sans-serif;
  min-height: 100vh;
  padding-bottom: 100px;
  overflow-x: hidden;
  color: #e0e0e0;
}

/* ===== MAGIC NAVIGATION ===== */
.magic-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 20px;
  width: 95%;
  max-width: 900px;
  height: 90px; /* Increased height */
  background: #2a2a3a;
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  z-index: 100;
  padding: 0 10px;
}

.magic-nav ul {
  display: flex;
  width: 100%;
  justify-content: space-around;
  position: relative;
  padding: 0;
  margin: 0;
}

.magic-nav ul li {
  list-style: none;
  width: 16.66%;
  position: static; /* Changed for better indicator positioning */
  z-index: 2;
  text-align: center;
}

/* ===== MENU ITEMS ===== */
.magic-nav ul li a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 70px;
  text-decoration: none;
  padding: 0 5px;
}

.magic-nav ul li a .icon {
  position: relative;
  display: block;
  font-size: 1.6em;
  color: #aaa;
  transition: all 0.3s;
  margin-top: 5px;
}

.magic-nav ul li a .text {
  position: relative;
  color: #aaa;
  font-weight: 500;
  font-size: 0.75em;
  margin-top: 8px;
  transition: all 0.3s;
}

/* Active/Hover States */
.magic-nav ul li.active a .icon,
.magic-nav ul li:hover a .icon {
  color: #4caf50;
  transform: translateY(-5px);
}

.magic-nav ul li.active a .text,
.magic-nav ul li:hover a .text {
  color: #fff;
}

/* ===== LARGE BLACK-BORDERED INDICATOR ===== */
.indicator {
  position: absolute;
  top: -50px;
  width: 80px;
  height: 80px;
  background: rgba(76, 175, 80, 0.7);
  border-radius: 50%;
  border: 6px solid #000;
  transition: all 0.5s cubic-bezier(0.28, 0.84, 0.42, 1.1);
  z-index: 1;
  transform: translateX(0);
  box-sizing: content-box;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* ===== SIDEBAR ===== */
.sidebar {
  position: fixed;
  left: -280px;
  top: 0;
  width: 250px;
  height: 100vh;
  background: #2a2a3a;
  box-shadow: 5px 0 15px rgba(0,0,0,0.3);
  transition: all 0.4s ease;
  z-index: 90;
  padding: 20px;
  overflow-y: auto;
}

.sidebar.active {
  left: 0;
}

.sidebar-content {
  display: none;
  color: #e0e0e0;
}

.sidebar-content.active {
  display: block;
}

.sidebar h3 {
  color: #4caf50;
  margin-bottom: 20px;
  font-size: 1.3em;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar ul li {
  padding: 12px 0;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #3a3a4a;
}

.sidebar ul li ion-icon {
  margin-right: 10px;
  color: #4caf50;
  font-size: 1.1em;
}

.map-placeholder {
  height: 150px;
  background: #3a3a4a;
  border-radius: 8px;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
}

/* ===== BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #1f1f2f;
  font-family: 'Segoe UI', sans-serif;
  min-height: 100vh;
  padding-bottom: 100px;
  overflow-x: hidden;
  color: #e0e0e0;
}

/* ===== MAGIC NAVIGATION ===== */
.magic-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 20px;
  width: 95%;
  max-width: 900px;
  height: 90px;
  background: #2a2a3a;
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  z-index: 100;
  padding: 0 10px;
}

.magic-nav ul {
  display: flex;
  width: 100%;
  justify-content: space-around;
  position: relative;
  padding: 0;
  margin: 0;
}

.magic-nav ul li {
  list-style: none;
  width: 16.66%;
  position: static;
  z-index: 2;
  text-align: center;
}

/* ===== MENU ITEMS ===== */
.magic-nav ul li a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 70px;
  text-decoration: none;
  padding: 0 5px;
}

.magic-nav ul li a .icon {
  position: relative;
  display: block;
  font-size: 1.6em;
  color: #aaa;
  transition: all 0.3s;
  margin-top: 5px;
}

.magic-nav ul li a .text {
  position: relative;
  color: #aaa;
  font-weight: 500;
  font-size: 0.75em;
  margin-top: 8px;
  transition: all 0.3s;
}

/* Active/Hover States */
.magic-nav ul li.active a .icon,
.magic-nav ul li:hover a .icon {
  color: #4caf50;
  transform: translateY(-5px);
}

.magic-nav ul li.active a .text,
.magic-nav ul li:hover a .text {
  color: #fff;
}

/* ===== INDICATOR ===== */
.indicator {
  position: absolute;
  top: -50px;
  width: 80px;
  height: 80px;
  background: rgba(76, 175, 80, 0.7);
  border-radius: 50%;
  border: 6px solid #000;
  transition: all 0.5s cubic-bezier(0.28, 0.84, 0.42, 1.1);
  z-index: 1;
  transform: translateX(0);
  box-sizing: content-box;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* ===== SIDEBAR ===== */
.sidebar {
  position: fixed;
  left: -280px;
  top: 0;
  width: 250px;
  height: 100vh;
  background: #2a2a3a;
  box-shadow: 5px 0 15px rgba(0,0,0,0.3);
  transition: all 0.4s ease;
  z-index: 90;
  padding: 20px;
  overflow-y: auto;
}

.sidebar.active {
  left: 0;
}

.sidebar-content {
  display: none;
  color: #e0e0e0;
}

.sidebar-content.active {
  display: block;
}

.sidebar h3 {
  color: #4caf50;
  margin-bottom: 20px;
  font-size: 1.3em;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar ul li {
  padding: 12px 0;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #3a3a4a;
}

.sidebar ul li ion-icon {
  margin-right: 10px;
  color: #4caf50;
  font-size: 1.1em;
}

.map-placeholder {
  height: 150px;
  background: #3a3a4a;
  border-radius: 8px;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
}

/* ===== QUICK FOOTER ===== */
.quick-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  padding: 10px;
  background: white;
  box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
  z-index: 99;
}

.action-btn {
  padding: 12px 20px;
  background: #4caf50;
  border: none;
  border-radius: 50px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9em;
  color: white;
  cursor: pointer;
  transition: all 0.3s;
}

.action-btn:hover {
  background: #3d8b40;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(76, 175, 80, 0.4);
}

/* ===== DESKTOP ENHANCEMENTS ===== */
@media (min-width: 768px) {
  .magic-nav {
    top: 30px;
    bottom: auto;
  }
  
  .indicator {
    top: -45px;
    width: 85px;
    height: 85px;
  }
  
  .quick-footer {
    top: 120px;
    bottom: auto;
    justify-content: center;
    gap: 20px;
    border-radius: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    padding: 10px 30px;
  }
}


/* ===== MOBILE ENHANCEMENTS ===== */
@media (max-width: 767px) {
  .magic-nav {
    top: auto;
    bottom: 30px;
  }
  
  .indicator {
    top: auto;
    bottom: 10px;
    width: 85px;
    height: 85px;
  }
  
  .quick-footer {
    top: auto;
    bottom: 120px;
    justify-content: center;
    gap: 20px;
    border-radius: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    padding: 10px 30px;
  }
}


/* ===== Account Sidebar ===== */
.sidebar-content {
  position: relative;
  padding: 15px;
}

/* ===== User Profile ===== */
.account-profile {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.account-profile-pic {
  margin-right: 5px;
}

.default-avatar {
  font-size: 10px;
  color: #6c757d;
}

.account-name {
  margin: 0;
  font-size: 8px;
}

/* ===== Auth Buttons ===== */
.account-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.account-btn {
  padding: 8px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.login-btn {
  background-color: #e9ecef;
  color: #495057;
}

.login-btn:hover {
  background-color: #dee2e6;
}

.signup-btn {
  background-color: #0d6efd;
  color: white;
}

.signup-btn:hover {
  background-color: #0b5ed7;
}

.logout-btn {
  background-color: #dc3545;
  color: white;
  display: none;
  margin-top: 10px;
}

.logout-btn:hover {
  background-color: #bb2d3b;
}

/* ===== Auth Forms ===== */
.auth-form {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  position: absolute;
  left: 0;
  right: 0;
  background: white;
  z-index: 10;
  box-shadow: 0 5px 10px rgba(0,0,0,0.1);
  border-radius: 0 0 8px 8px;
}

.auth-form.visible {
  max-height: 500px;
  padding: 15px;
  transition: max-height 0.5s ease-in;
  border: 1px solid #e1e1e1;
  border-top: none;
}

.form-input {
  display: block;
  width: 100%;
  padding: 5px;
  margin-bottom: 5px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  transition: border-color 0.2s ease;
}

.form-input:focus {
  border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-submit-btn {
  width: 100%;
  padding: 5px;
  background-color: #0d6efd;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.form-submit-btn:hover {
  background-color: #0b5ed7;
}

/* ===== Utility Classes ===== */
.hidden {
  display: none !important;
}


/* Ensure proper visibility control */
.account-btn {
  display: inline-block; /* Makes buttons visible by default */
}

.hidden {
  display: none !important; /* Force hiding when this class is present */
}

/* Make sure nothing else is hiding logout */
#account-sidebar .logout-btn {
  display: inline-block;
}
/* end account login and signup */














