/* General Body Styles */
body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #333;
  margin: 0;
  padding: 10px;
  background-color: #f8f9fa; /* Light background for the page */
}

/* Container for the entire forecast widget */
#forecast-container {
  max-width: 960px;
  margin: 10px auto;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  font-size: 13px;
}

/* Main Header */
#MTNWX_HEADER h2 {
  font-size: 1.5em;
  color: #212529;
  margin-bottom: 20px;
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 15px;
  /* display: flex;
  align-items: center;
  justify-content: left; */
}
#MTNWX_HEADER #LINK {
  margin-left: 10px;
}
#MTNWX_HEADER #LINK img {
  vertical-align: middle;
  transition: transform 0.2s ease-in-out;
}
#MTNWX_HEADER #LINK img:hover {
  transform: scale(1.1);
}
#MTNWX_HEADER .beta-tag {
  color: #dc3545; /* Bootstrap danger red */
  font-size: 0.7em;
  vertical-align: super;
  font-weight: normal;
  margin-left: 5px;
  padding: 2px 6px;
  background-color: #ffeeee;
  border-radius: 4px;
}
#MTN_LOCATION, #MTN_ELEV {
  font-weight: bold;
  color: #0056b3; /* Darker blue */
}

/* Select Dropdown */
#MTN_AREAS {
  padding: 10px 15px;
  border: 1px solid #ced4da;
  border-radius: 5px;
  background-color: #f8f9fa;
  font-size: 1em;
  appearance: none; /* Remove default dropdown arrow */
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20256%20512%22%3E%3Cpath%20fill%3D%22%23212529%22%20d%3D%22M119.5%20326.9L16.2%20213.7c-4.5-4.7-1.1-12.7%205.8-12.7H234c6.9%200%2010.3%208%205.8%2012.7L136.5%20326.9c-4.6%204.7-12.2%204.7-16.9%200z%22%2F%3E%3C%2Fsvg%3E'); /* Custom arrow */
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
#MTN_AREAS:hover {
  border-color: #80bdff;
}
#MTN_AREAS:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
  outline: none;
}
#MTN_AREAS optgroup {
  font-weight: bold;
  color: #495057;
  padding: 5px 0;
}
#MTN_AREAS option {
  padding: 5px 10px;
}

/* WWA Alerts */
#MTN_WWA {
  margin-top: 20px;
  margin-bottom: 20px;
  border: 1px solid #ffc107; /* Warning yellow border */
  border-radius: 5px;
  background-color: #fff3cd; /* Light yellow background */
  color: #856404; /* Darker yellow text */
  padding: 15px;
  font-size: 0.95em;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* NEW RULE: Hide the WWA box if it is empty */
#MTN_WWA:empty {
  display: none;
}

#MTN_WWA table {
  width: 100%;
  border-collapse: collapse;
  background-color: transparent; /* Override default table background */
}
#MTN_WWA td {
  padding: 8px 0;
  vertical-align: top;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3); /* Lighter separator */
}
#MTN_WWA tr:last-child td {
  border-bottom: none;
}
#MTN_WWA #WarnButton input[type="button"] {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9em;
  transition: background-color 0.2s ease, transform 0.1s ease;
  white-space: nowrap; /* Prevent button text from wrapping */
}
#MTN_WWA #WarnButton input[type="button"]:hover {
  background-color: #0056b3;
  transform: translateY(-1px);
}
#MTN_WWA #WarnButton input[type="button"]:active {
  transform: translateY(0);
}

/* Main Forecast Table */
.CWFRAME {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  border: 1px solid #e9ecef; /* Softer outer border */
  border-radius: 8px;
  overflow: hidden; /* Ensures rounded corners apply to content */
  table-layout: fixed;
}
.CWFRAME td {
  padding: 3px; /* Reduced from 10px to fix layout */
  border: 1px solid #e9ecef; /* Softer internal borders */
  vertical-align: top;
}

.CWheading {
  background-color: #e0f2f7; /* Light blue header */
  color: #2c3e50; /* Darker text for headings */
  font-weight: bold;
  font-size: 0.95em;
  text-align: center;
  padding: 12px 10px;
}

.CWcomment {
  font-size: 0.9em;
  line-height: 1.4;
  background-color: #fcfcfc;
}

/* Chart containers */
.CWchart {
  height: 180px; /* Slightly taller charts for better detail */
  padding: 5px;
  background-color: #fdfdfd;
}
.CWchartsm {
  height: 180px; /* Slightly taller charts for better detail */
  padding: 0; /* Removed padding as requested */
  background-color: #fdfdfd;
}

/* Info Boxes (Low, Most Likely, High) */
.CWsweAMT table.CWFILL {
  height: 100%;
  width: 100%;
  border-collapse: collapse; /* Ensure inner table is collapsed */
}
.CWsweAMT td {
  border: none; /* Remove inner table borders */
  padding: 0;
}
.CWFILL{
    width:100%;
}

.CWtempSNOW {
  width: 300px;
}

.CWsweAMT {
  width: 60px;
}

.CWred, .CWgrn, .CWblu {
  font-size: 0.95em;
  text-align: center;
  padding: 8px 5px; /* More padding */
  display: flex; /* Use flex for vertical centering */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%; /* Fill available height */
  border: 1px solid #e9ecef; /* Softer internal border for boxes */
  border-radius: 4px; /* Slightly rounded corners for boxes */
  margin-bottom: 5px; /* Space between boxes */
}
.CWred p, .CWgrn p, .CWblu p {
  margin: 0;
  line-height: 1.3;
}
.CWred strong, .CWgrn strong, .CWblu strong {
  font-size: 1.05em; /* Emphasize the value */
  color: #333; /* Consistent text color */
}

.CWred { background-color: #f8d7da; color: #721c24; border-color: #f5c6cb;} /* Light red */
.CWgrn { background-color: #d4edda; color: #155724; border-color: #c3e6cb;} /* Light green */
.CWblu { background-color: #d1ecf1; color: #0c5460; border-color: #bee5eb;} /* Light blue */

/* Specific styling for the 'click for X' spans */
.CWheading span[id^="MTN_SHOW"],
.CWheading span[id^="MTN_PROB_SHOW"] {
  font-size: 0.85em;
  font-weight: normal;
  color: #007bff;
  cursor: pointer;
  transition: color 0.2s ease;
  margin-left: 10px;
}
.CWheading span[id^="MTN_SHOW"]:hover,
.CWheading span[id^="MTN_PROB_SHOW"]:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* Other specific elements */
.RJ {
  text-align: right;
}

a {
  text-decoration: none;
  color: #007bff;
  transition: color 0.2s ease;
}
a:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* Highcharts specific adjustments */
.highcharts-container {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
.highcharts-tooltip {
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  padding: 10px !important;
  font-size: 0.9em;
}
.highcharts-tooltip p strong {
  color: #333;
}