/* ------------------ Base Styles ------------------ */
body {
  font-family: Arial, sans-serif;
  background-color: #f8f9fa;
  color: #212529;
  margin: 0;
  padding: 0;
}

.container-fluid {
  padding: 0;
}

.navbar {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#selected-destination-label {
  font-weight: bold;
  color: #f8f9fa;
}

/* ------------------ Layout Containers ------------------ */
.graph-scroll-wrapper {
  overflow-x: auto;
  width: 100%;
  padding-bottom: 1rem;
}

.graph-fixed-width {
  width: 2000px;
  min-width: 2000px;
}

.graph-container {
  margin-top: 20px;
}

/* ------------------ Navbar & Footer ------------------ */
.top-bar {
  background-color: #343a40;
  color: #ffffff;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  width: 100%;
}

.footer {
  background-color: #343a40;
  color: #ffffff;
  text-align: center;
  padding: 10px;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
}

/* ------------------ Content Layout ------------------ */
.content {
  display: flex;
}

.sidebar {
  background-color: #f0f0f0;
  padding: 20px;
  width: 350px;
  min-height: calc(100vh - 50px);
}

.main-content {
  flex: 1;
  padding-left: 20px;
  padding-right: 20px;
}

/* ------------------ Sections ------------------ */
.climbing-conditions-section {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.climbing-conditions-section h3 {
  text-align: center;
  margin-bottom: 20px;
}

.current-conditions {
  background-color: #C0C0C0;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  color: #fff;
}

.current-conditions h5 {
  color: #fff;
}

/* ------------------ Form Controls ------------------ */
select,
button {
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

button[type="button"] {
  color: #fff;
  background-color: #007bff;
  border-color: #007bff;
  cursor: pointer;
}

button[type="button"]:hover {
  background-color: #0056b3;
  border-color: #0056b3;
}

/* ------------------ Instructions and Buttons ------------------ */
.chart-instructions {
  margin-top: 20px;
  padding: 20px;
  background-color: #F0F0F0;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.chart-instructions h5 {
  margin-top: 0;
}

.chart-instructions ul {
  list-style-type: disc;
  margin-left: 20px;
}

.chart-instructions ul ul {
  list-style-type: circle;
  margin-left: 20px;
}

.chart-instructions p:last-child {
  margin-bottom: 0;
}

.button-container {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

/* ------------------ Images ------------------ */
.image-container {
  display: inline-block;
  margin-right: 20px;
}

.image-container img {
  max-width: 100%;
  height: auto;
}

/* ------------------ Current Conditions Widget ------------------ */
#current-conditions-widget {
  margin: 30px auto;
  max-width: 400px;
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.conditions-grid {
  display: grid;
  grid-template-areas:
    "temp . humidity"
    ". ccs ."
    "wind gust dir";
  grid-template-columns: 1fr 2fr 1fr;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  gap: 10px;
  position: relative;
}

.small-info {
  font-size: 0.9rem;
  color: #555;
  text-align: center;
}

.top-left {
  grid-area: temp;
}

.top-right {
  grid-area: humidity;
}
.bottom-left {
  grid-area: wind;
}
.bottom-center {
  grid-area: gust;
}
.bottom-right {
  grid-area: dir;
}

.ccs-display {
  grid-area: ccs;
}

.ccs-value {
  font-size: 3rem;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 8px;
  color: white;
  display: inline-block;
}

.label {
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: #888;
}

.label-current-widget {
  font-weight: 800;
  font-size: 1rem; /* fixed typo from 0.1.5rem */
  text-transform: uppercase;
  color: #888;
}

.value {
  font-size: 1rem;
  font-weight: 500;
}

.metric-red {
  color: #dc3545; /* Bootstrap danger red */
}

.metric-yellow {
  color: #ffc107; /* Bootstrap warning yellow */
}

.metric-green {
  color: #28a745; /* Bootstrap success green */
}

.ccs-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  margin: 0 auto 1rem auto;
  border-radius: 50%;
  font-size: 2rem;
  font-weight: bold;
  color: white;
}

.ccs-red {
  background-color: #dc3545;
}

.ccs-yellow {
  background-color: #ffc107;
  color: black;
}

.ccs-green {
  background-color: #28a745;
}

/* ------------------ Forecast Cards ------------------ */
.forecast-scroll-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1rem;
}

#forecast-cards {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Hide forecast container by default instead of inline style */
#forecast-container {
  display: none;
}

/* ------------------ Metric Values ------------------ */
#temperature,
#humidity,
#dew-point{
  font-size: 1rem;
  font-weight: bold;
}
#wind-speed,
#wind-gust,
#wind-direction{
  font-size: 1rem;
  font-weight: bold;
}

/* ------------------ Responsive Styles ------------------ */
@media (max-width: 768px) {
  .content {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    padding: 10px;
    min-height: auto;
    margin-bottom: 20px;
  }
}

#submit-ccs-link {
    background-color: #e2e3e5;  /* soft light gray */
    color: #333;                /* dark gray text */
    border: 1.5px solid #adb5bd; /* medium gray border */
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
    text-decoration: none;
  }
  #submit-ccs-link:hover,
  #submit-ccs-link:focus {
    background-color: #ced4da;  /* a bit darker gray */
    color: #212529;             /* almost black text */
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    text-decoration: none;
  }