/* ================== Global Reset ================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "04b03", Verdana, sans-serif;
}

body {
  display: flex;
  min-height: 100vh;
  background: #f4e3f8;
  color: #3a2f3f;
}

/* ================== Sidebar ================== */
.sidebar {
  width: 200px;
  background: #e8dff0;
  padding: 20px 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-right: 4px solid #d6c4e8;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  overflow-y: auto;
}

.sidebar-item {
  background: rgba(255,255,255,0.7);
  padding: 8px;
  border-radius: 8px;
  text-align: left;
  font-size: 0.95rem;
  transition: background 0.2s ease;
}

.sidebar-item:hover {
  background: rgba(255,255,255,0.9);
}

.sidebar-item a {
  text-decoration: none;
  color: #3a2f3f;
}

/* ================== Top Auth ================== */
.top-auth {
  position: fixed;
  right: 20px;
  top: 20px;
  z-index: 1000;
  font-size: 0.9rem;
}

#auth-container a {
  color: #3a2f3f;
  text-decoration: none;
  margin: 0 4px;
  transition: color 0.2s ease;
}

#auth-container a:hover {
  color: #8b63b5;
}

#welcome {
  font-weight: bold;
}

/* ================== Main Content ================== */
.main-content {
  margin-left: 220px; /* sidebar width + padding */
  flex: 1;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.logo {
  max-width: 400px;
  width: 80%;
  image-rendering: pixelated;
}

.map-placeholder {
  width: 600px;
  height: 400px;
  background: #f9e8fc;
  border: 3px solid #d6c4e8;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #8b63b5;
  text-align: center;
  padding: 10px;
}

/* -------------------- Sidebar Clock -------------------- */
#clock {
  font-family: "04b03", monospace; /* pixel font */
  font-size: 16px;
  color: #ff77ff;
  background: rgba(0,0,0,0.6);
  padding: 6px 10px;
  border-radius: 6px;
  text-align: center;
  text-shadow: 
     0 0 2px #fff,
     0 0 4px #ff77ff,
     0 0 6px #ff77ff;
  margin-bottom: 12px;
  box-shadow: 0 0 6px #ff77ff inset;
}
@keyframes clockGlow {
  0%, 100% { text-shadow: 0 0 2px #fff, 0 0 4px #ff77ff, 0 0 6px #ff77ff; }
  50% { text-shadow: 0 0 4px #fff, 0 0 6px #ff99ff, 0 0 8px #ff99ff; }
}

#clock {
  animation: clockGlow 2s infinite ease-in-out;
}


/* ================== Scrollbar for Sidebar ================== */
.sidebar::-webkit-scrollbar {
  width: 8px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.2);
  border-radius: 4px;
}

/* ================== Mobile ================== */
@media (max-width: 768px) {
  .sidebar {
    position: relative;
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    border-right: none;
    border-bottom: 4px solid #d6c4e8;
  }
  .sidebar-item {
    flex: 0 0 auto;
  }
  .main-content {
    margin-left: 0;
    padding: 20px 10px;
  }
  .map-placeholder {
    width: 100%;
    height: 300px;
  }
}
