/* ============================================================
   Base Form & Element Styles
   ============================================================ */
body {
    font-family: Arial, sans-serif;
    margin: 20px;
    display: block !important;
}

.main-content {
    flex: 1;
    margin-right: 0;
}

pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    background-color: #f4f4f4;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

button {
    background-color: #4CAF50;
    color: white;
    padding: 5px 10px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    border: none;
    margin-top: 10px;
}
button:hover {
    background-color: #45a049;
}

#saveCoordinates {
    background-color: #008CBA;
    margin-left: 10px;
    padding: 5px 15px;
    margin-top: 0;
}
#saveCoordinates:hover {
    background-color: #007bb5;
}

#downloadLink, #copyToClipboard {
    background-color: #555555;
    padding: 10px 15px;
    width: 300px;
    box-sizing: border-box;
    margin-top: 10px;
}
#downloadLink:hover, #copyToClipboard:hover {
    background-color: #444444;
}

#latitude, #longitude, #timeOffset, #height {
    width: 100px;
    padding: 3px;
}

.input-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}
.input-row label {
    width: 180px;
    text-align: right;
    margin-right: 10px;
    display: inline-block;
}

.alert {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    display: none;
    color: white;
}
.alert.success { background-color: #4CAF50; }
.alert.error { background-color: #f44336; }
.alert.info { background-color: #2196F3; }

h1 {
    font-size: 24px;
    color: #333;
}
h2 {
    font-size: 20px;
    color: #333;
}
label {
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

/* ============================================================
   Highpoint's Webtools Panel Styles
   ============================================================ */
:root {
  --wt-bg: #ffffff;
  --wt-text: #222222;
  --wt-border: #cccccc;
  --wt-muted: #6b7280;
  --wt-chip-bg: #f3f4f6;
  --wt-chip-bg-hover: #e5e7eb;
  --wt-shadow: 0 10px 25px rgba(0,0,0,.10);
}

#webtools {
  position: relative;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  z-index: 1000;
  width: 100% !important;
  margin-top: -30px;
  margin-bottom: 25px !important;
  font-family: inherit;
}

#webtools-toggle {
  display: inline-block;
  background: var(--wt-bg);
  color: var(--wt-text);
  border: 1px solid var(--wt-border);
  padding: 8px 18px;
  border-radius: 0 0 10px 10px;         
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--wt-shadow);
}
#webtools-toggle:hover { background: var(--wt-chip-bg); }

#webtools-panel {
  width: 100%;
  max-width: 750px;
  margin-top: 8px;
  border: 1px solid var(--wt-border);
  background: var(--wt-bg);
  box-shadow: var(--wt-shadow);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  border-radius: 10px;
  transition: max-height .25s ease, opacity .2s ease;
}
#webtools.open #webtools-panel {
  max-height: 330px;
  opacity: 1;
  margin-bottom: 8px;
}

#webtools-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 12px;
}
#webtools-links a {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 10px 12px;
  text-decoration: none;
  color: var(--wt-text);
  background: var(--wt-chip-bg);
  border: 1px solid var(--wt-border);
  border-radius: 6px;
  transition: background .15s ease, transform .12s ease;
}
#webtools-links a:hover { background: var(--wt-chip-bg-hover); transform: translateY(-1px); }
#webtools-links .title { font-weight: 700; font-size: 14px; }
#webtools-links .desc  { color: var(--wt-muted); font-size: 12px; line-height: 1.2; }

/* ============================================================
   Layout fix for body/webtools positioning
   ============================================================ */
.content-row { 
    display: block;
    width: 100%;
}
