/* ===== FONT (VALORANT STYLE) ===== */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;600;700&display=swap');

/* ===== RESET ===== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Rajdhani', sans-serif;
  background: linear-gradient(180deg, #2b2b2b, #0f0f0f);
  color: white;
  overflow-x: hidden;
}

/* ===== MAP ===== */
#map {
  width: 100%;
  height: 100vh;
}

/* ===== AUTH PANEL ===== */
#auth {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(10px);
  padding: 15px;
  border-radius: 15px;
  z-index: 1000;
  width: 90%;
  max-width: 320px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

/* ===== INPUT ===== */
#auth input,
#auth textarea {
  width: 100%;
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 10px;
  border: none;
  background: #1f1f1f;
  color: white;
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
}

/* ===== CHECKBOX ===== */
#auth label {
  font-size: 14px;
  display: block;
  margin-bottom: 5px;
}

/* ===== BUTTON GLOBAL ===== */
button {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 8px;
  transition: 0.2s;
  font-family: 'Rajdhani', sans-serif;
}

/* ===== CREATE BUTTON ===== */
#auth button:nth-of-type(1) {
  background: #ff4655;
  color: white;
}

/* ===== LOGIN BUTTON ===== */
#auth button:nth-of-type(2) {
  background: #333;
  color: white;
}

/* ===== HOVER ===== */
button:hover {
  transform: scale(1.03);
  opacity: 0.9;
}

/* ===== LOGOUT BUTTON ===== */
#logoutBtn {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 2000;
  background: #222;
  color: white;
  padding: 10px;
  border-radius: 10px;
  width: auto;
}

/* ===== REFRESH BUTTON ===== */
#refreshBtn {
  position: fixed;
  top: 60px;
  right: 10px;
  z-index: 2000;
  background: #444;
  color: white;
  padding: 10px;
  border-radius: 10px;
  width: auto;
}

/* ===== PANNE BUTTON ===== */
#panneBtn {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  width: 90%;
  max-width: 320px;
  background: #ff0000;
  color: white;
  padding: 12px;
  border-radius: 12px;
  font-weight: bold;
  box-shadow: 0 0 15px rgba(255,0,0,0.5);
}

/* ===== MAP POPUP ===== */
.leaflet-popup-content {
  font-family: 'Rajdhani', sans-serif;
}

.leaflet-popup-content img {
  border-radius: 10px;
  margin-top: 5px;
  max-width: 100%;
}

/* ===== MOBILE FIX ===== */
@media (max-width: 600px) {
  #auth {
    width: 90%;
    max-width: none;
  }

  #panneBtn {
    width: 90%;
  }
}
#policeBtn {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  width: 90%;
  max-width: 320px;
  background: #007bff;
  color: white;
  padding: 12px;
  border-radius: 12px;
  font-weight: bold;
}
