:root {
  --primary-color: #3a7ca5; /* Modern blue */
  --secondary-color: #ffa62b; /* Warm accent */
  --background-color: #f8f9fa;
  --text-color: #343a40;
  --card-bg: #ffffff;
}
body {
  font-family: 'Inter', sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
}
.btn-primary {
  background-color: var(--primary-color);
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  transition: background-color 0.3s ease-in-out;
}
.btn-primary:hover {
  background-color: #2e5f89;
}
.btn-outline-secondary {
  border: none;
  color: var(--text-color);
  padding: 8px 16px;
}
.btn-outline-secondary:hover {
  background-color: #e2e6ea;
}
.card {
  border: none;
  border-radius: 12px;
  background: var(--card-bg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}
.card:hover {
  transform: scale(1.02);
}
.card-body i {
  color: var(--primary-color);
}
.carousel-control-prev, .carousel-control-next {
  filter: invert(1);
}
#status {
  border-radius: 6px;
  padding: 12px;
  font-weight: 500;
}

/* ===== Variant 4: Gradient Background + Translucent Container ===== */

/* 1. Full-page gradient */
body {
  /* dark navy to white */
  background: linear-gradient(
    to bottom,
    #043a70 0%,   /* very dark blue */
    #84a2e4 100%  /* white */
  );
  background-attachment: fixed;
  min-height: 100vh;
  margin: 0;
  color: #212529; /* ensure text still legible */
}

/* 2. Translucent “card” wrapper */
.layout-container {
  /* max-width: 800px; */
  /* margin: 3rem auto; */
  padding: 2rem;
  /* white at 80% opacity */
  background-color: rgba(255, 255, 255, 0.6);
  /* subtle blur + shadow for depth */
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border-radius: 0.5rem;
}

/* 3. Button accents updated to stand out */
.btn-primary {
  background-color: #043a70; /* match the top of the gradient */
  border-color: #001f3f;
}
.btn-primary:hover {
  background-color: #003366;
  border-color: #003366;
}


/* ===== IoT Map Styles ===== */
/* Container for the map */
.iot-map-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: auto;
}
.iot-map-container img {
  display: block;
  width: 100%;
  height: auto;
}

/* Device marker */
.device {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--device-color, rgb(92, 92, 239));
  cursor: pointer;
  transform: translate(-50%, -50%);
}
/* Low-battery device override */
.device.low-battery {
  background-color: var(--device-lowbattery-color, rgb(211, 47, 47));
}

/* Tooltip */
.tooltip {
  position: absolute;
  background: rgba(0,0,0,0.75);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.1s;
}

.iot-map-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: auto;

  /* new: rounded corners + drop-shadow */
  border-radius: 0.5rem;
  overflow: hidden;                       /* clip the img to the rounded corners */
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.iot-map-container img {
  display: block;
  width: 100%;
  height: auto;
  /* optionally inherit rounding if you ever change the container’s radius */
  border-radius: inherit;
}

.map-accordion {
  max-width: 800px;
  margin: 0 auto;     /* center horizontally */
}