

.utm-wgs84-container {
  direction: rtl;
  font-family: inherit;
}

.utm-wgs84-topboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 15px;
}

.utm-wgs84-topboxes .box {
  background: #f9f9f9;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 10px;
  flex: 1;
  min-width: 280px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.map-select-box select,
.box input {
  width: 100%;
  margin-top: 5px;
  padding: 6px 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}

.box label {
  display: block;
  font-weight: bold;
  font-size: 15px;
  margin-bottom: 6px;
  color: #333;
   text-align: center;
}

.decimal-coords {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.dms-coords > div {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.dms-coords input {
  width: 50px;
  text-align: center;
}

.utm-box input {
  margin-bottom: 8px;
}

#convertBtn {
  background: #0073aa;
  color: #fff;
  border: none;
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
  margin-bottom: 15px;
}

#convertBtn:hover {
  background: #005f8a;
}

#map {
  border: 2px solid #aaa;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: relative;
}

#scaleControl,
#coordsDisplay {
  font-family: monospace;
}


#lon_s {
  width: 70px; /* یا هر عددی که بخوای */
}
#lat_s {
  width: 70px; /* یا هر عددی که بخوای */
}
.unit-group {
  display: inline-flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
}

.unit-group input {
  width: 50px;
  text-align: center;
}

.unit-label {
  font-size: 14px;
  color: #888;
  font-weight: normal;
  user-select: none;
}
