:root {
      --bs-primary: #ff6347; !important /* Change primary color to Tomato */
      --bs-secondary: #4b0082; !important /* Change secondary color to Indigo */
      --bs-success: #32cd32; !important /* Change success color to LimeGreen */
      --bs-info: #20b2aa; !important /* Change info color to LightSeaGreen */
      --bs-warning: #ffcc00; !important /* Change warning color to Yellow */
      --bs-danger: #dc143c; !important /* Change danger color to Crimson */
      --bs-light: #f0f8ff; !important /* Change light color to AliceBlue */
      --bs-dark: #333333; !important /* Change dark color to DarkGray */
    }

.modal-backdrop.show {
  opacity: 0.8;
}

.card{
    box-shadow: 0 4px 12px #1020300a;
    --bs-border-color-translucent: rgba(170, 187, 194, .2);
}

.card-title{
    font-size: 64px;
    font-family: 'Barlow', sans-serif;
    font-weight: 500;
}

/*NEW STUFF*/
svg {
    width: 100%;
    height: 100%;
    display: block;
    background-color: #EEEEEE;

}
.node circle {
      fill: #003b46;
      stroke: #66b2ff;
      stroke-width: 2px;

      /*r: 14px;*/
    }
    .node text {
      fill: white;
      font-size: 20px;
      pointer-events: none;
    }
    .link {
      fill: none;
      stroke: #66b2ff;
      stroke-width: 3px;
    }
    .context-menu {
      position: absolute;
      background: white;
      border: 1px solid #ccc;
      box-shadow: 2px 2px 6px rgba(0,0,0,0.15);
      padding: 4px 0;
      z-index: 10000;
    }
    .context-menu-item {
      padding: 6px 16px;
      cursor: pointer;
    }
    .context-menu-item:hover {
      background-color: #f0f0f0;
    }

      .selected circle {
    filter: drop-shadow(0 0 6px #AAAAAA);
    /*stroke: #ffcc00;*/
  }
  .property-panel {
    position: absolute;
    top: 100px;
    right: 40px;
    width: 280px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 15px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
  }


#siteSearchBtn {
  border-color: #ced4da;        /* match form-control border */
  color: #495057;               /* match input text color */
  background-color: #fff;       /* match input background */
}

#siteSearchBtn:hover,
#siteSearchBtn:focus {
  background-color: #e9ecef;    /* subtle hover like input focus */
  border-color: #adb5bd;
}

#siteAddressInput:focus,
#siteSearchBtn:focus {
  box-shadow: 0 0 0 0.2rem rgba(13,110,253,.25); /* default bootstrap focus ring */
  z-index: 2; /* keep clean overlap */
}

.batteryInput{
    display: none;
}


  .rotate-icon {
    transition: transform 0.25s ease-in-out;
  }

  .accordion-button:not(.collapsed) .rotate-icon {
    transform: rotate(180deg);
  }

  /* Fix blue header background on expand */
  .accordion-button {
    background-color: #fff !important;
    color: #212529 !important;
    box-shadow: none !important;
  }

  .accordion-button:not(.collapsed) {
    background-color: #fff !important;
    color: #212529 !important;
  }

  /* Optional: remove blue border on focus */
  .accordion-button:focus {
    box-shadow: none !important;
    border-color: #dee2e6 !important;
  }


  .summary-card {
     --bs-border-color-translucent: rgba(170, 187, 194, .2);
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem;
    padding-right: 3rem;
    text-align: right;
    box-shadow: 0 4px 12px #1020300a;
  }
  .summary-card h1 {
    font-size: 64px;
    font-family: 'Barlow', sans-serif;
    font-weight: 500;
  }
  .summary-card p {
    margin-bottom: 0;
    font-weight: 500;
  }
   #loadingScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 2000;
    transition: opacity 0.6s ease, visibility 0.6s ease;
  }

  body.loaded #loadingScreen {
    opacity: 0;
    visibility: hidden;
  }

  .spinner-border {
    animation: spin 1.1s linear infinite;
  }

  .chart-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 180px;
  }

  @keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }

  @media (prefers-color-scheme: dark) {
    #loadingScreen {
      background-color: #0e0e0e;
    }
    .spinner-border {
      color: #e0e0e0 !important;
    }
    #loadingScreen p {
      color: #b0b0b0 !important;
    }
  }

  .summary-card {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    height: 100%;
    text-align: right;
  }

  /* Auto-scale the main number */
  .summary-card h1 {
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
    width: 100%;
    text-align: right;
    font-size: clamp(1.2rem, 4vw, 2.5rem); /* scales with viewport */
    white-space: nowrap;                   /* keep number on one line */
    overflow: hidden;
    text-overflow: ellipsis;               /* if still too long, truncate */
  }

  /* Keep all cards consistent height */
  .summary-card p {
    font-size: 0.9rem;
    margin: 0.25rem 0 0;
  }

  /* Ensure equal height for cards in a row */
  .row > .col-md-3 .card.summary-card {
    height: 100%;
  }