﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

.flash-invalid {
    animation: flashBorderRed 0.15s ease;
}

@keyframes flashBorderRed {
    from {
        border: 2px solid #dc3545;
    }

    to {
        border: 1px solid #ced4da;
    }
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: #f0f0f0;
    border-radius: 6px;
    cursor: pointer;
    user-select: none;
    font-weight: bold;
    margin-top: 10px;
}

    .accordion-header:hover {
        background-color: #e0e0e0;
    }

.accordion-icon {
    transition: transform 0.3s ease;
}

    .accordion-icon.rotate {
        transform: rotate(180deg);
    }

.accordion-content {
    display: none;
    margin-top: 5px;
    margin-bottom: 15px;
}

/* Custom colors */
.header-blue {
    background-color: #e0f0ff; /* Light blue */
}

    .header-blue:hover {
        background-color: #d0e8ff;
    }

.header-orange {
    background-color: #fff2e0; /* Light orange */
}

    .header-orange:hover {
        background-color: #ffe5c2;
    }


.limit-box {
    padding: 5px;
    border-radius: 5px;
    margin-bottom: 2px;
    text-align: center;
}

    .limit-box.red {
        background-color: #f8d7da;
        color: #721c24;
    }

    .limit-box.orange {
        background-color: #ffe5b4;
        color: #a85604;
    }

    .limit-box.green {
        background-color: #d7e3d1;
        color: #2a5714;
    }

    .limit-box.white {
        display: flex;
        justify-content: flex-end;
        text-align: right;
    }

a.navbar-brand {
  white-space: normal;
  text-align: center;
  word-break: break-all;
}

/* Provide sufficient contrast against white background */
a {
  color: #0366d6;
}

.col-divider {
    border-left: 1px solid grey;
    height: 100%;
}

.iconbtn {
    background-color: #1e9dd8;
    border: none;
    color: white;
    padding: 5px 16px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 3px;
}

    .iconbtn:hover {
        background-color: #003976;
    }

.minmaxbutton {
    background-color: transparent;
    border: none;
    vertical-align: middle;
    color: lightslategray;
    padding: 0px 3px;
    padding-bottom: 3px;
    border-radius: 3px;
    font-size: 16px;
    height: 20px;
    left: 0%;
    margin-top: 10px;
    margin-left: -15px;
    opacity: 0.4;
    cursor: pointer;
}

    .minmaxbutton:hover {
        background-color: lightgray;
    }

    .minmaxbutton:focus {
        outline: none;
    }

.iconbutton {
    background-color: white;
    border: none;
    color: DodgerBlue;
    padding: 12px 16px;
    font-size: 24px;
    cursor: pointer;
}

    .iconbutton:hover {
        color: lightblue;
    }

.iconbox {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 50px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 20;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% 35%;
    padding: 20px;
    border: 1px solid gray;
    width: 30%;
}

.modal-content-lrg {
    background-color: #fefefe;
    margin: 5% 25%;
    padding: 20px;
    border: 1px solid gray;
    width: 50%;
}

.minmaxsetting {
    width: 20px;
    height: 40px;
}

.display-5 {
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1.2;
}

.display-6 {
    font-size: 2rem;
    font-weight: 300;
    line-height: 1.2;
}

.display-7 {
    font-size: 1.8rem;
    font-weight: 300;
    line-height: 1.2;
}

.display-8 {
    font-size: 1.5rem;
    font-weight: 250;
    line-height: 1;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

#loader {
    display: block; 
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.2);
}

.spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.star {
    font-size: 30px;
    cursor: pointer;
    background: none;
    border: none;
    color: gold;
}

.mainbody {
    position: absolute;
    top: 40px; /* Header Height */
    bottom: 20px; /* Footer Height */
    width: 100%;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
  font-size: 14px;
}
@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.border-top {
  border-top: 1px solid #e5e5e5;
}
.border-bottom {
  border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
  font-size: 1rem;
  line-height: inherit;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
  position: relative;
  min-height: 100%;
}

body {
  /* Margin bottom by footer height */
  margin-bottom: 60px;
}
.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  line-height: 60px; /* Vertically center the text there */
}

.my-card {
    position: absolute;
    left: 40%;
    top: -20px;
    border-radius: 50%;
}

.center {
    margin-left: auto;
    margin-right: auto;
}

/* Chart with overlay */
.chartWithOverlay {
    position: relative;
    width: 1000px;
}

.overlay {
    width: 1000px;
    height: 400px;
    position: absolute;
    top: 60px; /* chartArea top  */
    left: 180px; /* chartArea left */
}

.md-chip {
    display: inline-block;
    background: #e0e0e0;
    padding: 0 12px;
    border-radius: 32px;
    font-size: 13px;
    margin: 5px;
}

.dropbtn {
    font-size: 12px;
    border: none;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f1f1f1;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

    .dropdown-content a {
        color: black;
        padding: 12px 16px;
        text-decoration: none;
        display: block;
    }

    .dropdown-content button:hover {
        background-color: lightblue;
    }

.dropdown:hover .dropdown-content {
    display: block;
}

.iconbtn2:hover {
    background-color: lightgray
}

.iconbtn2 {
    background-color: transparent;
    color: black;
    width: 150px;
}

.note-btn {
    cursor: pointer;
    background: none;
    border: none;
    width: auto; /* Allow content to dictate width */
    height: auto;
    font-size: 12px;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    align-items: center;
    transition: transform 0.2s ease-in-out;
}

    .note-btn:hover {
        transform: scale(1.2);
    }

.note-display-text {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 160px;
    margin-bottom: 50px;
    text-align: center;
}

.md-chip {
    display: inline-flex;
    background: transparent;
    flex-direction: column;
    margin: 0;
    padding: 0;
    align-items: center; /* Centers the button and text */
    gap: 5px; /* Adds space between number and text */
    width: 160px; /* Adjust width to prevent shifting */
    text-align: center;
}

.md-chip-hover:hover {
    background: #ccc;
}

.md-chip, .md-chip-icon {
    height: 26px;
    line-height: 26px;
}

.md-chip-icon {
    background: #003976;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
    align-items: center;
    padding-top: 2px;
    font-size: 12px;
    font-weight: 500;
}

/*.md-chips {
    padding: 12px 0;
}*/

.md-chips {
    display: flex;
    flex-wrap: wrap; /* Allows wrapping to new lines */
    justify-content: center; /* Centers items */
    gap: 20px; /* Space between items */
    row-gap: 40px; /* Ensures enough vertical space between rows */
}

.inner {
    position: absolute;
    width: 100%;
    height: 100px;
    overflow: scroll;
    background-color: transparent;
}

.top-pane {
    position: sticky;
    top: 0;
    background: white;
    padding: 0px;
    z-index: 2;
    transition: transform 0.3s ease-in-out;
}

.non-sticky {
    position: static !important;
}

.toggle-btn {
    cursor: pointer;
    background: none;
    border: none;
    font-size: 20px;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    margin-left: auto; /* Pushes to the right */
    transition: transform 0.2s ease-in-out;
}

    .toggle-btn:hover {
        transform: scale(1.2);
    }

.bottom-pane {
    padding: 20px;
    background: white;
    height: 200vh; /* Just to enable scrolling */
}

.collapsible-section {
    display: none; /* Hidden by default */
}

    .collapsible-section.open {
        display: block; /* Shown when open */
    }

.container {
    -ms-overflow-style: none; /* Internet Explorer 10+ */
    scrollbar-width: none; /* Firefox */
}

.container::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

.arrow-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 20px;
    padding: 0;
    color: #198754;
}

    .arrow-btn:hover {
        color: #157347;
        transform: scale(1.2);
    }

/* Style the slider switch */
.slider-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px; /* Reduced gap between slider and labels */
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px; /* Slightly smaller width */
    height: 18px; /* Slightly smaller height */
}

    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: green; /* Default to green */
    transition: .4s;
    border-radius: 18px; /* Match border-radius to height for a perfect pill shape */
}

    .slider:before {
        position: absolute;
        content: "";
        height: 14px; /* Slightly smaller than the slider height */
        width: 14px; /* Match width and height for a circular knob */
        left: 2px;
        bottom: 2px;
        background-color: white;
        transition: .4s;
        border-radius: 50%;
    }

input:checked + .slider {
    background-color: blue; /* Change to blue when checked */
}

    input:checked + .slider:before {
        transform: translateX(40px); /* Adjust to match the new slider width */
    }

/* Label positions underneath the switch */
.labels {
    display: flex;
    justify-content: space-between;
    width: 100px; /* Match the new switch width */
    margin-top: 4px; /* Adjust spacing between switch and labels */
    font-size: 12px; /* Slightly smaller font size */
}

#feedLabel {
    text-align: left;
}

#permeateLabel {
    text-align: right;
}