:root {
  --cloudberry-purple: #895CC9;
  --cloudberry-orange: #FFBD7F;
  --cloudberry-dark: #4F4F4F;
  --text-color: white;
  --text-size: 24px;
}
html {
    font-size: var(--text-size);
    color: var(--text-color);
    font-family: 'Roboto', sans-serif;
}
body {
    background-color: var(--cloudberry-purple);
    position: relative;
    overflow: hidden; /* Prevent scrolling from blur overflow */
    margin: 0;
    padding: 0;
    height: 100vh;
}
.bg-circle {
    position: absolute;
    width: clamp(600px, 60vw, 1000px);
    height: clamp(600px, 60vw, 1000px);
    border-radius: 50%;
    filter: blur(clamp(150px, 15vw, 200px));
    z-index: 0;
    pointer-events: none;
    animation: floatGlow 12s ease-in-out infinite;
    will-change: transform, filter;
}
.bg-top-right {
    top: -75vh;
    right: -25vw;
    background: var(--cloudberry-orange);
    animation-delay: 0s;
}
.bg-bottom-left {
    bottom: -25vh;
    left: -25vw;
    background: var(--cloudberry-orange);
    animation-delay: 3s;
}
h1 {
    font-size: 32px;
    font-weight: bold;
    font-family: 'Roboto', sans-serif;
}
h2 {
    font-size: 26px;
    font-weight: bold;
    font-family: 'Roboto', sans-serif;
}
button {
    background: none;
    border: none;
    font-family: 'Roboto', sans-serif;
    font-size: var(--text-size);
    color: var(--text-color);
    font-weight: bold;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: 0.2s ease-in;
    padding: 8px 12px;
    border-radius: 12px;
    margin-top: 5px;
    margin-bottom: 5px;
}
button.active, button:hover {
    background: var(--cloudberry-dark);
    opacity: 0.6;
}
input[type="text"], input[type="number"] {
    border: none;
    background: none;
    outline: none;
    text-align: left;
    font-family: 'Roboto', sans-serif;
    font-size: 20px;
    color: var(--text-color);
    transition: opacity 0.2s ease;
    width: 300px;
}
::placeholder {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
}
:hover::placeholder {
    opacity: 0.6;
}
:focus::placeholder {
    opacity: 0;
}
select, input[type="date"] {
    font-family: 'Roboto', sans-serif;
    font-size: 20px;
    padding: 5px 10px;
    border-radius: 5px;
    margin-top: 5px;
    margin-bottom: 10px;
    cursor: pointer;
    border: 4px solid var(--text-color);;
    background: None;
    color: var(--text-color);
    width: 180px;
}
select {
    scrollbar-width: none;      /* Firefox */
    -ms-overflow-style: none;   /* Internet Explorer 10+ */
}
label {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
}
.footer-note {
    position: fixed;
    bottom: 10px;
    left: 20px;
    font-size: 16px;
    margin: 0;
}
p {
    font-size: 18px; 
    padding: 0px; 
    margin: 10px 0px;
    display: flex;
    align-items: center;
    gap: 10px;
}
a {
    text-decoration: underline;
    font-weight: bolder;
    color: var(--text-color);
}
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}
.online {
    color: #9bffa5 !important;
}
.offline {
    color: #ff8888 !important;
}
.logo-corner {
    position: fixed;
    top: 15px;
    right: 24px;
    width: 400px;
    z-index: 10;
}
.container {
    max-width: 900px;
    width: 60vw;
    margin: auto;
    margin-top: 25vh;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: left;
}
.divider-line {
    width: 200px;
    height: 5px;
    background-color: var(--text-color);
    margin: 12px 0px;
    border-radius: 5px;
}
.logout-form {
    position: fixed;
    bottom: 20px;
    right: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}
.selection-bar {
    width: 15vw;
    position: fixed;
    top: 20px;
    left: 30px;
    display: flex;
    flex-direction: column;
    align-items: left;
    gap: 0px;
    font-size: 16;
}
.table-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.table-scroll {
    max-height: 450px; 
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.table-header {
    width: 100%;
    max-width: 900px;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px
}
.table-header button {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px; /* Match the input height */
    width: 40px;
}
.table-header img {
    vertical-align: middle;
}
.table-search-bar {
    width: 100%;
    padding: 8px 8px;
    text-align: left;
}
.vertical-divider {
    height: 30px;
    width: 5px;
    background-color: var(--text-color);
    border-radius: 5px;
    margin: 0px 10px;
}
.equal-spacing {
    display: flex; 
    justify-content: space-between; 
    flex-direction: row; 
    align-items: center;
}
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 0, 40, 0.5);  /* Translucent blur */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.modal-content {
    position: relative;
    overflow-y: auto;
    background: var(--cloudberry-dark);
    border-radius: 24px;
    padding: 40px;
    width: 50vw;
    max-height: 80vh;
    box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}
.hidden {
    display: none !important;
}
.date-inputs {
    display: flex;
    flex-direction: row;
    gap: 10px; /* spacing between fields */
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 16px;
}
#plot, #plot2 {
    width: 100%;
    max-height: 400px;
    border-radius: 12px;
    overflow: hidden;
}
.modebar {
    top: 20px !important; /* Adjust this value to shift it lower */
}
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 32px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 24px;
  width: 24px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: #007AFF;
}
input:checked + .slider:before {
  transform: translateX(28px);
}
input[type="range"] {
  appearance: none;           /* Standard */
  -webkit-appearance: none; 
  width: 200px;
  height: 6px;
  background: #ccc;
  border-radius: 4px;
  outline: none;
  margin: 0 5px;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  background: #007AFF;
  border-radius: 4px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: white;
  border: 2px solid #007AFF;
  border-radius: 50%;
  cursor: pointer;
  margin-top: -6px; /* centers thumb vertically */
}
@keyframes floatGlow {
  0% {
    transform: scale(1);
    filter: blur(clamp(100px, 15vw, 200px)) brightness(1);
  }
  25% {
    transform: scale(0.9);
    filter: blur(clamp(100px, 20vw, 200px)) brightness(0.9);
  }
  50% {
    transform: scale(0.8);
    filter: blur(clamp(100px, 25vw, 200px)) brightness(0.9);
  }
  75% {
    transform: scale(1.2);
    filter: blur(clamp(100px, 10vw, 200px)) brightness(1.1);
  }
  100% {
    transform: scale(1);
    filter: blur(clamp(100px, 15vw, 200px)) brightness(1);
  }
}