/* Yulgang GM Toolbox & Map Warper Styles */
#gmToggleBtn {
  position: fixed;
  top: 292px;
  right: 8px;
  z-index: 50000;
  background: linear-gradient(180deg, #3d2f1f 0%, #1f170f 100%);
  border: 1px solid #d4af37;
  border-radius: 4px;
  color: #fff1c0;
  font-family: Tahoma, sans-serif !important;
  font-size: 12px;
  font-weight: bold !important;
  padding: 6px 14px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.2);
  transition: all 0.2s ease;
  user-select: none;
}
#gmToggleBtn:hover {
  background: linear-gradient(180deg, #57432b 0%, #2a2015 100%);
  border-color: #ffd700;
  color: #ffffff;
  transform: translateY(-1px);
}

#gmPanel {
  position: fixed;
  top: 50px;
  right: 20px;
  width: 420px;
  max-height: 85vh;
  z-index: 50000;
  background: rgba(18, 14, 10, 0.96);
  border: 2px solid #c5a059;
  border-radius: 6px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.9), inset 0 0 16px rgba(197,160,89,0.15);
  font-family: Tahoma, sans-serif !important;
  color: #e6dac3;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  user-select: none;
}

#gmPanel.hidden {
  display: none !important;
}

.gm-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: linear-gradient(180deg, #332617 0%, #1a130b 100%);
  border-bottom: 1px solid #c5a059;
}
.gm-header h3 {
  margin: 0;
  font-size: 13px;
  color: #ffd700;
  display: flex;
  align-items: center;
  gap: 6px;
}
.gm-close {
  background: none;
  border: none;
  color: #a89475;
  font-size: 16px;
  cursor: pointer;
}
.gm-close:hover {
  color: #ff6b6b;
}

.gm-tabs {
  display: flex;
  background: #110d08;
  border-bottom: 1px solid #4a3b25;
}
.gm-tab {
  flex: 1;
  padding: 8px 4px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: #8c785d;
  font-family: Tahoma, sans-serif !important;
  font-size: 11px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}
.gm-tab:hover {
  color: #d4af37;
  background: rgba(212, 175, 55, 0.05);
}
.gm-tab.active {
  color: #ffd700;
  border-bottom-color: #ffd700;
  background: rgba(212, 175, 55, 0.12);
  font-weight: bold !important;
}

.gm-content {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  max-height: 65vh;
}
.gm-content::-webkit-scrollbar {
  width: 6px;
}
.gm-content::-webkit-scrollbar-thumb {
  background: #5a462a;
  border-radius: 3px;
}

.gm-section-title {
  font-size: 11px;
  color: #c5a059;
  margin: 8px 0 6px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px dashed #3a2e1d;
  padding-bottom: 4px;
}

.gm-grid-maps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.gm-btn {
  background: linear-gradient(180deg, #2b2014 0%, #171109 100%);
  border: 1px solid #6b5331;
  border-radius: 3px;
  color: #d8c8af;
  font-family: Tahoma, sans-serif !important;
  font-size: 11px;
  padding: 6px 8px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.gm-btn:hover {
  background: linear-gradient(180deg, #473520 0%, #291d0e 100%);
  border-color: #ffd700;
  color: #ffffff;
}
.gm-btn small {
  color: #8c785d;
  font-size: 10px;
}

.gm-btn-action {
  width: 100%;
  margin-bottom: 6px;
  text-align: center;
  justify-content: center;
  background: linear-gradient(180deg, #3d2f1f 0%, #20170e 100%);
  border-color: #a88546;
  font-weight: bold;
}
.gm-btn-action:hover {
  background: linear-gradient(180deg, #5c452b 0%, #382717 100%);
}

.gm-speed-row {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}
.gm-speed-btn {
  flex: 1;
  padding: 6px;
  font-size: 11px;
  background: #241a0e;
  border: 1px solid #544026;
  color: #c9b99f;
  cursor: pointer;
  border-radius: 3px;
}
.gm-speed-btn:hover, .gm-speed-btn.active {
  background: #ffd700;
  color: #000;
  border-color: #fff;
  font-weight: bold;
}

.gm-tip {
  font-size: 10px;
  color: #7d6b52;
  margin-top: 10px;
  line-height: 1.4;
  background: rgba(0,0,0,0.3);
  padding: 6px 8px;
  border-radius: 3px;
}
