/* =========================
   RESET & BASE
========================= */
* {
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}

body {
  margin: 0;
  padding: 0;
  background: transparent;
}

/* =========================
   FLOATING PANEL
========================= */
#floating-panel {
  position: fixed;
  top: 80px;
  right: 20px;
  width: 240px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
  z-index: 9999;
  user-select: none;
}

/* =========================
   HEADER
========================= */
#panel-header {
  padding: 12px;
  background: linear-gradient(135deg, #2c7be5, #1a5fd0);
  color: #fff;
  border-radius: 14px 14px 0 0;
  font-weight: 600;
  font-size: 14px;
  cursor: move;
  text-align: center;
  letter-spacing: 0.3px;
}

/* =========================
   BODY
========================= */
.panel-body {
  padding: 12px;
}

/* =========================
   STATUS
========================= */
.status {
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 12.5px;
  text-align: center;
  margin-bottom: 10px;
  font-weight: 600;
}

.status.locked {
  background: #e6f4ea;
  color: #1e7e34;
}

.status.unlocked {
  background: #fdecea;
  color: #b02a37;
}

/* =========================
   COORDINATES
========================= */
.coords {
  font-size: 12.5px;
  margin-bottom: 10px;
  line-height: 1.5;
  color: #333;
}

/* =========================
   MAP
========================= */
#map {
  height: 160px;
  border-radius: 10px;
  margin: 8px 0;
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

/* =========================
   MANUAL INPUT
========================= */
.manual {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.manual input {
  width: 48%;
  padding: 7px;
  margin: 4px 1%;
  font-size: 12.5px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.manual input:focus {
  outline: none;
  border-color: #2c7be5;
}

.manual button {
  width: 100%;
  margin-top: 4px;
  padding: 8px;
  border-radius: 8px;
  border: none;
  font-size: 13px;
  background: #17a2b8;
  color: #fff;
}

/* =========================
   PRESETS
========================= */
.presets {
  margin-top: 6px;
}

.presets select {
  width: 100%;
  padding: 7px;
  font-size: 12.5px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.presets button {
  width: 100%;
  margin-top: 4px;
  padding: 8px;
  border-radius: 8px;
  border: none;
  font-size: 12.5px;
  background: #6f42c1;
  color: #fff;
}

/* =========================
   ACTION BUTTONS
========================= */
.actions button {
  width: 100%;
  padding: 9px;
  margin-top: 6px;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
}

#lockBtn {
  background: #2c7be5;
  color: #fff;
}

#unlockBtn {
  background: #adb5bd;
  color: #fff;
}

/* =========================
   INFO / ERROR
========================= */
.info {
  font-size: 12px;
  color: #666;
  margin-top: 6px;
  text-align: center;
}

/* =========================
   DISABLED STATE
========================= */
button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* =========================
   MOBILE OPTIMIZATION
========================= */
@media (max-width: 480px) {
  #floating-panel {
    width: 220px;
    right: 10px;
    top: 60px;
  }

  #panel-header {
    font-size: 13px;
  }
}
