/* Light Theme Properties */
:root {
    --body-bg: #FAFAFA;
    --text-color: #000;
    --card-gradient-start: #4099ff; /* Example for blue card */
    --card-gradient-end: #73b4ff; /* Example for blue card */
    --modal-header-start: #09203F;
    --modal-header-end: #537895;
    --modal-body-bg: rgb(235, 235, 235);
    --thumb-bg: #4099ff;
    --graph-bg: #fff;
    }

/* Dark Theme Properties */
[data-theme="dark"] {
    --body-bg: #212529;
    --text-color: #fff;
    --card-gradient-start: #4e4e50; /* Darker shade for blue card */
    --card-gradient-end: #737375; /* Darker shade for blue card */
    --modal-header-start: #343a40;
    --modal-header-end: #1c1e21;
    --modal-body-bg: #09203F;
    --thumb-bg: #6c757d;
    --graph-bg: #343a40;
}

#theme-toggle{
    background-color: var(--body-bg);
    color: var(--text-color);
}

body {
    margin-top: 20px;
    background: var(--body-bg);
    color: var(--text-color);
}
.offcanvas.offcanvas-end{
    background: var(--body-bg);
}

.graph-container {
    background: var(--graph-bg);
    border-radius: 5px;
    box-shadow: 0 1px 2.94px 0.06px rgba(4,26,55,0.16);
    padding:14px;
}

.order-card {
    color: #fff;
}

.bg-c-blue {
    background: linear-gradient(45deg, var(--card-gradient-start), var(--card-gradient-end));
}

.bg-c-green {
    background: linear-gradient(45deg, #2ed8b6, #59e0c5);
}

.bg-c-yellow {
    background: linear-gradient(45deg, #FFB64D, #ffcb80);
}

.bg-c-pink {
    background: linear-gradient(45deg, #FF5370, #ff869a);
}

.card {
    border-radius: 5px;
    box-shadow: 0 1px 2.94px 0.06px rgba(4,26,55,0.16);
    border: none;
    margin-bottom: 30px;
    transition: all 0.3s ease-in-out;
}

.card .card-block {
    padding: 25px;
}

.modal-header .close {
    background: transparent;
    color: var(--text-color);
}

.modal-header {
    background: linear-gradient(to right, var(--modal-header-start), var(--modal-header-end));
    color: white;
}


.modal-body, .modal-footer{
    background:var(--modal-body-bg);
}

.form-range::-webkit-slider-thumb {
    background: var(--thumb-bg);
}

.form-range::-moz-range-thumb {
    background: var(--thumb-bg);
}


/*Double range for temperature*/

.double-range-container {
    position: relative;
    padding: 20px 0; /* Provide vertical space for the slider */
  }

  .form-range {
    -webkit-appearance: none; /* Override default appearance */
    appearance: none;
    position: absolute;
    height: 2px; /* Slider track height */
    background: transparent !important; /* Optional: makes track transparent */
    width: calc(100% - 16px); /* Adjust based on thumb width to prevent overflow */
    top: 10px; /* Adjust based on visual alignment */
    pointer-events: none; /* Allows clicks to pass through, focusing on the thumb */
    margin-left: 8px; /* Half of thumb width to offset from left */
    margin-right: 8px; /* Half of thumb width to offset from right */
  }

  .form-range::-webkit-slider-thumb {
    -webkit-appearance: none; /* Override default appearance */
    appearance: none;
    width: 16px; /* Thumb width */
    height: 16px; /* Thumb height */
    background:#4099ff; /* Thumb color */
    cursor: pointer;
    border-radius: 50%; /* Makes the thumb circular */
    pointer-events: auto; /* Enables interaction with the thumb */
    z-index:3 !important;
  }

  .form-range::-moz-range-thumb {
    width: 16px; /* Thumb width */
    height: 16px; /* Thumb height */
    background: #04ff00; /* Thumb color */
    cursor: pointer;
    border-radius: 50%; /* Makes the thumb circular */
  }

  #rangeMin {
    z-index: 1 !important; /* Ensures this slider is above the other, making its thumb accessible */
  }

  #rangeMax {
    z-index: 2 !important;
  }

  /*separator*/
  hr {
    margin: 1rem 0;
    color: inherit;
    background-color: currentColor;
    border: 0;
    opacity: 0.25;
  }
  .settings-title{
    font-size: 22px;
    line-height: 28px;
  }

  /*** begining of the range slider ****/
  input[type="range"]{
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 90%;
    outline: none;
    position: absolute;
    margin: auto;
    top: 70px;
    bottom: 0;
    background-color: transparent;
    pointer-events: none;
}
.slider-track{
    width: 90%;
    height: 5px;
    position: absolute;
    margin: auto;
    top: 90px;
    bottom: 0;
    border-radius: 5px;
}
input[type="range"]::-webkit-slider-runnable-track{
    -webkit-appearance: none;
    height: 5px;
}
input[type="range"]::-moz-range-track{
    -moz-appearance: none;
    height: 5px;
}
input[type="range"]::-ms-track{
    appearance: none;
    height: 5px;
}
input[type="range"]::-webkit-slider-thumb{
    -webkit-appearance: none;
    height: 1.7em;
    width: 1.7em;
    background-color: #3264fe;
    cursor: pointer;
    margin-top: 10px;
    pointer-events: auto;
    border-radius: 50%;
}
input[type="range"]::-moz-range-thumb{

    height: 1.7em;
    width: 1.7em;
    cursor: pointer;
    border-radius: 50%;
    background-color: #3264fe;
    pointer-events: auto;
    margin-top: 10px;
}
input[type="range"]::-ms-thumb{
    appearance: none;
    height: 1.7em;
    width: 1.7em;
    cursor: pointer;
    border-radius: 50%;
    background-color: #3264fe;
    pointer-events: auto;
}
input[type="range"]:active::-webkit-slider-thumb{
    background-color: #ffffff;
    border: 3px solid #3264fe;
}
.values{
    background-color: #3264fe;
    width: 32%;
    position: relative;
    margin: auto;
    padding: 10px 0;
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
    font-size: 25px;
    color: #ffffff;
}
.values:before{
    content: "";
    position: absolute;
    height: 0;
    width: 0;
    border-top: 15px solid #3264fe;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    margin: auto;
    bottom: -14px;
    left: 0;
    right: 0;
}
  /**** end of the range slider ***/


