/* public/css/style.css */
body { font-family: Poppins, sans-serif; margin:0; color:#fff; background: #031028; }
/* --- Futuristic Navbar --- */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, #0d172a, #12243d);
  color: #fff;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.logo {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.logo-glow {
  color: #00baff;
  text-shadow: 0 0 8px #00baff;
}

.nav-links {
  display: flex;
  gap: 1.2rem;
}

.nav-item {
  color: #c9d6ff;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

.nav-item:hover {
  color: #00baff;
  text-shadow: 0 0 8px #00baff;
}

/* ✅ Right section (balance-info) fix */
.balance-info {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-shrink: 0;
}

.user-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-right: 0.6rem;
}

.user-name {
  font-weight: 600;
  color: #fff;
}

.user-role {
  font-size: 0.75rem;
  color: #00baff;
  letter-spacing: 0.5px;
}

.wallet-btn,
.btn-logout,
.btn-auth {
  background: #00baff;
  border: none;
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.wallet-btn:hover,
.btn-logout:hover,
.btn-auth:hover {
  background: #0072ff;
  transform: translateY(-2px);
}

.btn-auth.register {
  background: #0072ff;
}

/* 📱 Mobile Styles */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #00baff;
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .balance-info {
    display: flex;
  }
  .user-info{
    display: none;
  }
}

/* 💠 Sidebar */
.sidebar {
  position: fixed;
  left: -250px;
  top: 0;
  height: 100%;
  width: 240px;
  background: #0b1528;
  padding-top: 6rem;
  transition: 0.3s;
  box-shadow: 2px 0 10px rgba(0,0,0,0.3);
  z-index: 999;
}

.sidebar.active {
  left: 0;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar ul li {
  margin: 1rem 0;
}

.sidebar ul li a {
  color: #d0e0ff;
  text-decoration: none;
  display: block;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  transition: 0.3s;
}

.sidebar ul li a:hover {
  background: #00baff;
  color: #fff;
}
@media (min-width:769px){
    .sidebar {
  position: fixed;
  left: 0;
  top: 60px;
  width: 230px;
  height: calc(100% - 60px);
  background: rgba(0, 0, 30, 0.9);
  border-right: 1px solid rgba(0, 255, 255, 0.2);
  padding-top: 1rem;
  transition: left 0.4s ease;
  z-index: 100;
  display:none;
}
}





.listing-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap:18px; }
.listing-card { background: rgba(255,255,255,0.03); padding:16px; border-radius:10px; }
.chat-box { background:#021428; height:320px; overflow:auto; padding:12px; border-radius:8px; }
.send-area { margin-top:8px; display:flex; gap:8px; align-items:center; }
.msg { margin-bottom:12px; padding:8px; background: rgba(255,255,255,0.02); border-radius:6px; }
.errors { color:#ff8080; }
