html {
    font-size: 16px; /* Default size, 1rem = 16px */
}
/* General styling */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #bdbdbd;
    background-color: #021223; /* Same color as your slider section */
    background: radial-gradient(circle, #202126 at center, #161924 at outer);
    padding: 0;
    height: 100%;
    width: 100%;
}

/* Header styling */
header {
    display: flex;
    justify-content: center;            /* Center the images horizontally */
    align-items: center;                /* Vertically align the images */
    height: auto;                       /* Let the height adjust automatically based on content */
    background: radial-gradient(circle, #202126, #161924); /* Same background as sections */
    box-sizing: border-box;
    padding: 10px 0;
    flex-wrap: wrap;                    /* Allow images to wrap when the screen size decreases */
    gap: 10px;                          /* Add a gap between images */
}

/* Logo images styling */
header img {
    max-height: 80px;                   /* Set a consistent height for the logos */
    margin: 0 15px;                     /* Space between images */
    height: auto;
    width: auto;
    border: none;                       /* Remove any border around images */
    max-width: 100%;                    /* Ensure images don't exceed the width of the container */
}

/* Media query for smaller screens */
@media (max-width: 768px) {
    header {
        flex-direction: column;         /* Stack images vertically on small screens */
        height: auto;                   /* Adjust height automatically */
        padding: 20px 0;                /* Increase padding for better spacing */
    }

    header img {
        max-height: 60px;               /* Reduce the size of the images on smaller screens */
        margin: 10px 0;                 /* Add more space between images when stacked */
        max-width: 90%;                 /* Ensure images don't exceed 90% of the screen width */
    }
}

/* Media query for very small screens (e.g., smartphones) */
@media (max-width: 480px) {
    header img {
        max-height: 50px;               /* Further reduce image size on very small screens */
        margin: 8px 0;                  /* Add more space between images when stacked */
        max-width: 85%;                 /* Make sure images fit within the screen */
    }
}

section {
    padding: 50px 20px;
    text-align: center;
    flex-direction: column;
    justify-content: center;   /* Center content vertically */
    align-items: center;       /* Center content horizontally */
    height: 100vh;             /* Full viewport height */
    width: 100%;               /* Full width of the screen */
    text-align: center;        /* Center text */
    background: radial-gradient(circle, #202126, #161924); /* Background as before */
    box-sizing: border-box;    /* To ensure padding doesn't break layout */
}

.small-section {
    height: auto;          /* Allow the height to adjust to content */
    min-height: 50vh;      /* Minimum height is half the viewport height */
    padding: 30px 20px;    /* Optional: Adjust padding for smaller height */
}

/* Banner styling */
.banner {
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle, #202126, #161924);
    padding: 10px;
    margin-bottom: 0;
}

.logo {
    height: 50px;
    margin: 0 20px;
}

/* Form section styling */
.form-section {
    margin: 0;
    background: radial-gradient(circle, #202126, #161924);
    padding: 50px 20px;
}

/* Container to align input and select on the same line */
.time-input-container {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between input and select */
    width: 100%;
}



input[type="text"], input[type="number"], input[type="password"] {
    padding: 10px;
    margin-left: 10px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #96a4de;
    background-color: #28292a;
    color: white;
}


input[type="text"]::placeholder, input[type="number"]::placeholder {
    color: #888;
}

/* Select styles to match input */
select {
    -webkit-appearance: none; /* Removes default dropdown arrow on Webkit browsers */
    -moz-appearance: none; /* Removes default dropdown arrow on Firefox */
    appearance: none; /* Modern approach to remove dropdown arrow */
    padding-right: 25px; /* Adds space for custom dropdown arrow */
    background-color: #28292a;
    border-radius: 2px;
    color: white;
    border: 1px solid #96a4de;
    padding: 10px;
    font-size: 16px;


}

/* Add a custom dropdown arrow for the select element */
select::after {
    content: '▼'; /* Custom dropdown icon */
    position: absolute;
    right: 10px;
    pointer-events: none;
}


input, button {
    font-size: calc(0.8rem + 0.5vw); /* Responsive font size for inputs/buttons */
    padding: 10px;
    margin: 10px;
}
/* Buttons */
.btn, .option-btn {
    background-color: transparent; /* No background */
    color: #00acfb; /* Text color matches the glow */
    padding: 8px 16px; /* Reduced padding */
    border: 2px solid #00acfb; /* Blue border */
    border-radius: 10px; /* Fully rounded corners */
    cursor: pointer;
    margin: 10px;
    text-align: center;
    font-size: 1rem; /* Adjust font size */
    transition: all 0.3s ease; /* Smooth transition for hover effects */
    box-shadow: 0 0 8px 0 rgba(0, 172, 251, 0.6); /* Glowing effect */
    transition: all 0.3s; /* Smooth transition */
   display: inline-block;  /* Ensure button only takes as much space as needed */
       max-width: 100%; /* Prevent button from growing too large */
}
/* Hover effect */
.btn:hover, .option-btn:hover {
    box-shadow: 0 0 12px 3px rgba(0, 172, 251, 0.5); /* More transparent, softer glow on hover */
    background-color: rgba(0, 172, 251, 0.5); /* Slight blue transparent background on hover */
    color: #00acfb; /* Keep text color blue */
}


.btn2, .option-btn2 {
    background-color: transparent;
    color: orange;

    padding: 8px 16px;
    
    border: 2px solid orange;   /* orange border */
    border-radius: 10px;

    cursor: pointer;
    margin: 10px;
    text-align: center;
    font-size: 1rem;

    box-shadow: 0 0 8px 0 rgba(255, 165, 0, 0.6); /* orange glow */

    transition: all 0.3s ease;

    display: inline-block;
    max-width: 100%;
}


/* Focused/Active state */
.btn:focus, .btn:active {
    outline: none;
    box-shadow: 0 0 20px 5px rgba(0, 172, 251, 1); /* Stronger glow when focused */
}

.small-btn {
    padding: 4px 8px;   /* top-bottom, left-right */
    font-size: 0.75rem; /* optional smaller font */
    height: auto;       /* let padding control height */
}

/* Buttons styling */
button {
    background-color: #00acfb;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 15px 32px;
    text-align: center;
    display: inline-block;
    font-size: calc(1rem + 0.5vw);
    transition: background-color 0.3s;
}

button:hover {
    background-color: #3f9afc;
}
/* Highlight clicked buttons */
.btn.active, .option-btn.active {
    background-color: #244466; /* Even lighter when clicked */
    /* border: 2px solid #47a0ff; */
}




.icon {
    height: 24px;
    vertical-align: middle;
    margin-right: 8px;
}

/* Popups */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
overflow: hidden;
}

.popup-content {
    background-color: #021223;
    padding: 20px;
    display: flex;
    flex-direction: column; /* Stack items vertically */
    justify-content: flex-start; /* Align items at the start */
    align-items: center; /* Center align items */
    max-width: 90%; /* Limit maximum width */
    max-height: 90%; /* Limit maximum height */
    overflow-y: auto; /* Enable vertical scrolling if content exceeds height */
    border-radius: 10px; /* Optional: rounded corners */
}

.input-group {
    display: flex;
    align-items: center; /* Center items vertically */
    margin-bottom: 10px; /* Space between input groups */
}

.input-group input {
    margin-right: 5px; /* Space between input and currency symbol */
}

.button-group {
    display: flex;
    justify-content: center; /* Center buttons horizontally */
    gap: 10px; /* Space between buttons */
}




.hidden {
    display: none;
}

.close-btn, .back-btn {
    margin-top: 20px;
    background-color: #00acfb;
    padding: 10px;
}

/* Media Queries for additional responsiveness */
@media (max-width: 600px) {
    .popup-content {
        padding: 15px; /* Reduce padding on smaller screens */
    }
    
    .btn, .option-btn {
        padding: 8px 16px; /* Adjust button padding */
        font-size: 0.9rem; /* Reduce font size slightly */
        max-width: 90%; /* Ensure button does not take full width */
    }
}
@media (max-height: 400px) {
    .popup-content {
        max-height: 80%; /* Allow more room on shorter screens */
    }
}
/* Remove gaps between sections */
section + section {
    margin-top: 0;
}

/* Ensure font size scales with viewport size */
section h1, section h2, section p {
    font-size: calc(1rem + 1vw); /* Responsive font size based on viewport */
}

#selected-assets {
    display: none; /* Initially hidden */
    flex-direction: column; /* Stack icons and button vertically */
    align-items: center; /* Center everything horizontally */
    justify-content: center; /* Center items vertically */

    width: 100%;
    padding: 20px;
    text-align: center;
    box-sizing: border-box; /* To account for padding */

}



#icons-container {
    display: flex; /* Display the solar and battery icons side by side */
    flex-direction: row; /* Ensure they are in a row */
    justify-content: center; /* Center them horizontally */
    gap: 20px; /* Add space between the icons */
}

#solar-icon, #battery-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer; /* Makes the icon look clickable */
    padding: 10px;
    border-radius: 5px; /* Adds some rounding like a button */
    transition: background-color 0.3s, outline 0.3s; /* Smooth hover transition */

}


#solar-icon:hover, #battery-icon:hover {
    background-color: rgba(255, 255, 255, 0.1); /* Lighten background on hover */
    outline: 2px solid rgba(255, 255, 255, 0.5); /* Add an outline effect on hover */
}

#solar-icon:active, #battery-icon:active {
    background-color: rgba(255, 255, 255, 0.2); /* Slightly more emphasis on click */
    outline: 2px solid white;
}


#next-btn {
    margin-top: 20px; /* Space between icons and button */
    background-color: #00acfb;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s, outline 0.3s;
}

#next-btn button:hover {
    background-color: #3092fa; /* Darker purple on hover */
}

#next-btn button:focus {
    outline: 2px solid white; /* White outline when focused */
}


/* Fullscreen overlay specifically for welcome popup */
#welcome-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center;     /* Center vertically */
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent dark overlay */
    z-index: 999;
}

/* Styles specifically for the welcome popup */
#welcome-popup {
    width: 90%; /* Set width to 90% of the screen */
    max-width: 600px; /* Optional: cap the maximum width for larger screens */
    background-color: rgba(0, 0, 0, 0.9); /* Dark background */
    padding: 20px;
    color: #f0f0f0; /* Text color (white or near white for contrast) */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); /* Shadow for added depth */
    z-index: 1000;
}

.welcome-popup-content {
    padding: 20px;
    display: flex;
    flex-direction: column; /* Stack items vertically */
    justify-content: flex-start; /* Align items at the start */
    align-items: center; /* Center align items */
    max-width: 100%;
    max-height: 80vh; /* Limit maximum height */
    overflow-y: auto; /* Enable vertical scrolling if content exceeds height */
    border-radius: 10px;
    color: white; /* Ensure text is visible against dark background */
}

/* White-colored links specific to welcome popup */
#welcome-popup a {
    color: #fff; /* White links */
    text-decoration: underline; /* Optional: underline for visibility */
}
/* White-colored links specific to welcome popup */
#welcome-popup p {
    color: #9b9b9b; /* White links */
}

/* Hover effect for links */
#welcome-popup a:hover {
    color: #BFB2DE; /* Light purple on hover */
}






/* "Got it!" button styled like a button */
.close-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #00acfb;
    color: #3d393f;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.close-btn:hover {
    background-color: #0171a5; /* Lighter background on hover */
}

.close-btn:active {
    background-color: #0977ec; /* Even lighter when clicked */
}




/* Smartphone-Specific Adjustments */
@media screen and (max-width: 768px) {
    #welcome-popup .popup-content {
        width: 90%; /* Wider on smaller screens */
        padding: 30px 15px; /* Less padding to fit content better */
        max-height: 90vh; /* Make sure it doesn't overflow */
    }

    #welcome-popup h1 {
        font-size: 1.5rem; /* Smaller title */
    }

    #welcome-popup p {
        font-size: 1rem; /* Smaller text for smartphones */
        margin-bottom: 15px;
    }

    #welcome-popup .btn {
        font-size: 0.9rem; /* Adjust button size */
        padding: 8px 15px;
    }
}

/* Extra Small Screens (less than 480px width) */
@media screen and (max-width: 480px) {
    #welcome-popup .popup-content {
        width: 100%; /* Take full width on very small screens */
        padding: 20px;
        max-height: 95vh; /* Ensure it doesn't overflow */
    }

    #welcome-popup h1 {
        font-size: 1.2rem; /* Further reduce title size */
    }

    #welcome-popup p {
        font-size: 0.9rem; /* Smaller paragraph text */
    }

    #welcome-popup .btn {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
}
















/* Appliance section */
#appliance-section {
    align-items: center;
    text-align: center;
    min-height: 100vh; /* Ensures the section takes at least full screen height */
    padding: 20px; /* Add padding to prevent content from touching edges */
    box-sizing: border-box; /* Includes padding in height calculations */

}

.appliance-icons-wrapper {
    display: flex; /* Use flexbox to align the icons horizontally */
    flex-wrap: wrap; /* Allow wrapping if they overflow */
    justify-content: center; /* Center the icons */
    gap: 20px; /* Add space between the icons */
}
.appliance-icon-container {
    display: flex; /* Use flexbox to align items */
    justify-content: center; /* Center the image within the container */
    align-items: center; /* Vertically center the image */
    max-width: 100%; /* Ensure the container does not exceed the width of its parent */
}

.appliance-icon-container img {
    height: 100px;          /* Set a fixed height */
    max-width: 100%;        /* Ensure it doesn't go beyond its container */
    display: block;
    margin: 0 auto;         /* Centers the image within the container */
    overflow: visible;

}


.appliance-icon {
    max-width: 100%; /* Make the image responsive */
    height: auto; /* Maintain aspect ratio */
    width: auto; /* Allow width to adjust */
    object-fit: contain; /* Ensure the image fits within the container */
    cursor: pointer;
    transition: all 0.3s ease;
}


/* Glowing effect for selected appliances */
.appliance-icon.glow {
    background: radial-gradient(
        circle, 
        rgba(0, 172, 251, 0.6) 30%, /* Semi-transparent in the middle */
        rgba(0, 172, 251, 0) 60%   /* Fully transparent at the edges */
    );    
    padding: 18px; /* Adjust padding as needed for spacing around the image */
    border-radius: 8px; /* Optional: Rounded corners for a softer look */

    transform: scale(1.1);
}
/* Adjust for small screens */
@media (max-width: 600px) {
    .appliance-icon-container {
        width: 100%; /* Make container full width on small screens */
        flex-wrap: wrap; /* Allow icons to wrap to the next line if needed */
        gap: 15px; /* Add space between icons */

    }
    #appliance-section {
        min-height: 120vh; /* Increase minimum height for better spacing */
        padding: 30px; /* Add more padding on smaller screens */
    }

    .appliance-icon {
        max-height: 50px; /* Reduce maximum height for smaller screens */
        max-width: 100%; /* Ensure image fits within the container */
    }
}





























.appliance-icon2 {
    max-width: 100%; /* Make the image responsive */
    height: auto; /* Maintain aspect ratio */
    width: auto; /* Allow width to adjust */
    object-fit: contain; /* Ensure the image fits within the container */
    cursor: pointer;
    transition: all 0.3s ease;
}

.appliance-icon2 {
    width: 40px;
    height: 40px;
}
/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .slider-container {
        max-width: 100%;
    }
    .appliance-icon2 {
        width: 30px;
        height: 30px;
    }
    .slider-container input[type="text"] {
        font-size: 12px;
    }
    /* .slider::-webkit-slider-runnable-track {
        background: #9b0ac0; Simplify slider line on narrow screens 
    } */
    .tick-labels {
        font-size: 10px;
       /* padding: 0 50px;  /*Small padding to align labels */
        max-width: 100%;

    }
}





/* Glowing effect for selected appliances */
.appliance-icon2.glow {
    background: radial-gradient(
        circle, 
        rgba(0, 172, 251, 0.6) 30%, /* Semi-transparent in the middle */
        rgba(0, 172, 251, 0) 60%   /* Fully transparent at the edges */
    );    
    padding: 18px; /* Adjust padding as needed for spacing around the image */
    border-radius: 8px; /* Optional: Rounded corners for a softer look */

    transform: scale(1.1);
}
/* Adjust for small screens */
@media (max-width: 600px) {
    .appliance-icon2-container {
        width: 100%; /* Make container full width on small screens */
        flex-wrap: wrap; /* Allow icons to wrap to the next line if needed */
        gap: 15px; /* Add space between icons */

    }


    .appliance-icon2 {
        max-height: 50px; /* Reduce maximum height for smaller screens */
        max-width: 100%; /* Ensure image fits within the container */
    }
}




/* Popup window */
/* #appliance-popup {
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    background-color: #fff;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    display: none;
}


.appliance-popup-content {
    display: flex;
    justify-content: center;
    padding: 20px;
} */

/* Input section styling */

/* Close button styling */
.close-btn {

    margin-top: 20px;
    cursor: pointer;
    background-color: #00acfb;
    color: white;
    padding: 10px 20px;
    border: none;
    font-size: 1em;
}












/* Popups */
.appliance_popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Ensure the popup appears above other content */
    overflow-y: auto;
  
}
/* 
.appliance_popup-content {
    background-color: #021223;
    padding: 20px;
    border-radius: 10px;
    width: 90%; 
    max-width: 1200px; 
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    justify-content: center;
    align-items: center;

} */

/* Change content to column when needed */
.appliance_popup-content {
    background-color: #021223;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 1200px;
    display: flex;
    /* Remove justify-content: center; if it's conflicting */
    flex-direction: column; /* Changed from row to column by default */
    align-items: center;
    max-height: 90vh; /* Prevent it from going off the screen */
    overflow-y: auto; /* Enable scrolling inside the popup if content is tall */
}

/* Ensure the heater section takes full width of the popup */
#heater-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}




/* Fix the Standard section to keep its side-by-side look */
#standard-appliance-section {
    display: flex;
    flex-direction: row; /* Keep the grid and inputs side-by-side */
    width: 100%;
    justify-content: space-evenly;
    align-items: flex-start;
}



.hidden {
    display: none;
}

.popup-flex-container {
    display: flex;
    justify-content: space-evenly; /* Centers child elements horizontally */
    align-items: center; /* Centers child elements vertically */
    width: 100%;
    height: 100%;
    gap: 10px;
}


/* Ensure input section takes remaining space without scrolling */
.appliances-input-section {
    width: 30%; /* Take 30% of space */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    background-color: #2c3e50;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    /*border: 1px solid #BFB2DE; */


}


        /* Container for both grid and button */
        .array-container {
          
            display: flex;
            /*border: 1px solid #BFB2DE; */
            flex-direction: column;
            align-items: center;
            touch-action: none;  
            overflow: hidden; 
            height: 100%;
            justify-content: center; /* Center the grid vertically within array-container */
            
    overflow-y: auto; /* Enable scrolling if needed */

        }
        /* Make sure both sections shrink properly */
.array-container,
.appliances-input-section {
    min-width: 0; /* Allow shrinking */
}


        .appliances-grid-container {
            display: grid;
            grid-template-columns: auto auto;
            grid-template-rows: repeat(24, 1fr);
            gap: 0px;
            width: 100%;
            height: 100%;
            /*border: 1px solid #BFB2DE; */
        }
        /* Updated grid container for 24 cells and time labels */
        .grid-container {
            display: grid;
            grid-template-columns: 100px auto;
            grid-template-rows: repeat(24, 1fr);
            gap: 0;
            width: 100%;
            height: 100%;
            /*border: 1px solid #BFB2DE; */

        
        }

        /* Update for grid-row to arrange cell and label side-by-side */
.grid-row {
    display: grid;
    grid-template-columns: 55px 90px; /* 70px for grid-item, 30px for time-label */
    align-items: center;
    width: 100%; /* Full width of the container */
    gap: 5px; /* Space between the cell and label */
}

        .grid-item {
 
            height: calc((90vh - 150px) / 24); /* Adjust cell height dynamically */
            background-color: rgba(180, 180, 181, 0.2);
            border: 1px solid #00acfb;
            border-radius: 3px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.75rem; /* 0.75rem will adapt based on the root font size */
            color: black;
            user-select: none;
            

        }

        .grid-item.active {
            background-color: orange;
            color: white;
            font-size: 8px;
        }

        .grid-item.flexible {
            font-size: px;
            box-shadow: 0 0 12px 3px rgba(0, 172, 251, 0.5); /* More transparent, softer glow on hover */
            background-color: rgba(0, 172, 251, 0.5); /* Slight blue transparent background on hover */
            color: #00acfb; /* Keep text color blue */
        
        }

        .grid-item:hover {
            cursor: pointer;
        }

        .time-label {
            font-size: 0.75rem;
            color: white;
            padding-left: 5px; /* Optional padding */
            display: flex;
            align-items: center;
            justify-content: flex-start;

        }

        .submit-btn {
            padding: 10px 20px;
            background-color: darkgray;
            color: white;
            border: none;
            cursor: pointer;
            margin-bottom: 5px;
        }





/* Responsive behavior for smaller screens */
@media screen and (max-width: 768px) {
    html {
        font-size: 14px; /* Reduces the base font size, scaling down all rem units */
        text-align: center;
    }

    .appliances-input-section input[type="text"] , input[type="number"] {
        padding: 3px;
        width: 80%;

    }
    .grid-item {
 
        height: calc((85vh  ) / 24); /* Adjust cell height dynamically */
    }

    .appliance_popup-content {
        padding: 5px;
        width: 100%; /* Takes up most of the width, but allows margin on small screens */
    
    }



    .array-container {
        height: 100%;
    }

    .appliances-input-section {
        height: 100%; /* Remaining 1/3 height */
    }

    



 
 
    button {
        width: 100%;  
    }
}

/* For very small screens, e.g., phones */
/* @media screen and (max-width: 480px) {

    .appliance_popup-content {
        width: 100%; 
        padding: 1px; 
        max-width: 100%; 

    }
    .grid-item, .time-label {
        font-size: 13px; 
    }
    .array-container {
        height: 100%;
        width: 100%;
    }

    .grid-item {
        width: 40px; 
    }
    .appliances-input-section {
        width: 100%;
        margin-top: 20px;

    }
    
 


} */

/* Appliance section */
#slider-section {
    position: relative;
    padding: 2px;
    background: radial-gradient(circle, #202126, #161924);    color: #abb6e0;
    text-align: center;
    min-height: 180vh; /* Sets height to full viewport height */
    padding-bottom: 20px; /* Optional: add padding to prevent close-to-edge layout */
    align-items: center;

    box-sizing: border-box; /* Includes padding in height calculations */

}


/* Legend for the graph: */

/* Legend for the graph */
.legend-container {
    display: flex;
    flex-direction: column; /* Keeps the legend items stacked vertically */
    align-items: flex-start; /* Aligns items to the left instead of centering */
    gap: 10px; /* Adds space between legend items */
}

.legend-item {
    display: flex;
    align-items: center; /* Aligns shape and text vertically */
    gap: 8px; /* Space between shape and text */
}


.legend-square {
    width: 30px;
    height: 15px;
    border: 2px solid rgba(0, 172, 251, 1);
}

.filled {
    background-color: rgba(0, 172, 251, 0.6);
}

.outlined {
    background-color: transparent;
}

.legend-line {
    width: 20px;
    height: 2px;
    background-color: rgba(255, 182, 99, 1);
}


/* Slider container styling */
.slider-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    margin: 50px auto;
}
.slider-wrapper {
    position: relative;
    height: 40px; /* Adjust this value as needed */
    width: 100%;

}


/* Slider row and appliance icon */
.slider-row {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 600px;
    width:100%;
    margin-bottom: 20px; /* Adjust as needed */

}
#ev-schedule-container {
    position: relative;
    bottom: 0;
    width: 100%; /* Optional, depending on layout */
}


.appliance-icon {
    width: 40px;
    height: 40px;
}

/* Thin grey line for the slider with rounded corners */
.slider {
    -webkit-appearance: none;
    appearance: none;
    width: 92%;
    height: 8px;
    background: none;  /* Grey background for slider line */
    /* border-radius: 3px; */
    position:relative;

}

/* Slider thumb customization */
.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    /* width: 50px; */
    height: 24px;
    background: var(--slider-thumb-bg, #00acfb); /* Default color */
    border-radius: 5px; /* Small radius for rounded corners */
    cursor: pointer;

   /*   border: 2px solid #00acfb;Blue border */
    border: var(--thumb-border, 2px solid #00acfb);      /* Default border */

   transition: all 0.3s ease; /* Smooth transition for hover effects */
   /* box-shadow: 0 0 8px 0 rgba(0, 172, 251, 0.6);  Glowing effect */
    box-shadow: var(--thumb-box-shadow, 0 0 4px 0 rgba(251, 33, 0, 0.6)); /* Default box-shadow */

    z-index: 2;
    position: relative;
    margin-top: -9px;/*  Center-align thumb over track */

}

.slider {
    --thumb-width: 18px;
    --thumb-height: 18px;
}

.slider::-webkit-slider-thumb {
    appearance: none;
    position: relative;
    width: var(--thumb-width);
    height: var(--thumb-height);
    border-radius: 20%;
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: var(--thumb-width);
    height: var(--thumb-height);
    border-radius: 20%;
    cursor: pointer;
}


/* Hide the thumb */
.slider.no-thumb::-webkit-slider-thumb {
    display: none;
}

.slider.no-thumb::-moz-range-thumb {
    display: none;
}

.slider.no-thumb::-ms-thumb {
    display: none;
}


/* .slider::-moz-range-thumb {
    width: var(--thumb-width); 
} */

/* Larger thumb for the washing machine slider */
.large-slider::-webkit-slider-thumb {
    width: 24px;
    height: 24px;
    background: #00ff6a;
}
/* Add time display on slider thumb using ::after pseudo-element */
.slider::-webkit-slider-thumb::after {
    content: attr(data-time); /* Dynamically update content */
    position: absolute;
    top: -25px; /* Position above the thumb */
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: #fff;
    white-space: nowrap;
}


/* Firefox Track and Thumb */
.slider::-moz-range-track {
    background: linear-gradient(to right, 
        #515151, #515151 1px, transparent 1px),
        linear-gradient(to right, #818181, #3b3b3b 2px, transparent 2px);
    background-size: 2.13% 100%, 8.5% 100%;
    height: 4px;
    border-radius: 2px;

}


.slider::-moz-range-thumb {
    -moz-appearance: none !important;
    appearance: none !important;
    position: relative;
    height: 20px;
    width: 100px;
    background: transparent;
    cursor: pointer;
    z-index: 2;
     top: -4px; 
}

.thumb-label {
    position: absolute;
    top: -8px;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    /* background: skyblue; */
    text-align: center;
    line-height: 1;
    height: 20px;
    width: 40px;
    transform: translate(0, 2px);
    z-index: 100;
    color: #515d86;
}
/* Specific styling for input within slider */
.slider-container input[type="text"] {
    padding: 5px;
    margin: 0;
    border: none; /* Remove border */
    background-color: rgba(81, 93, 134, 0.2); /* Transparent background */
    color: #7b88b5; /* Dark text color */
    text-align: center; /* Center align text */
    box-shadow: none; /* Remove any default shadow */
    outline: none; /* Remove outline */
}


/* Only targets the slider label input */
.thumb-label-input {
    width: 40px;
    display: flex;
    text-align: center;
    position: absolute;
    top: -15px; /* Adjust position as needed */
    /* font-size: 12px; */
    color: #333;
    background: white;
    /* border: 1px solid #ccc; */
    /* border-radius: 4px; */
    cursor: pointer;
    outline: none;
    box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.2); /* Optional shadow */
}

/* Tick marks for each hour below the slider */
.slider::-webkit-slider-runnable-track {
    background: var(--slider-ticks-gradient, #515151);
    height: 11px;
    border-radius: 2px;
}
/* Container for tick labels below slider */
/* Additional styles to ensure tick labels align properly */
.tick-labels {
    position: absolute;
    top: 100%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-size: 12px;
    color: #515d86;
    
}

.tick-labels span {
    flex: 1;
    text-align: center;
}

/* Mozilla equivalent of pseudo-element for thumb text */
.slider::-moz-range-thumb::after {
    content: attr(data-time);
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: #fff;
}

.slider-background {
    position: relative;
    z-index: 1;
}

.slider-foreground {
    z-index: 2;
    background: transparent; /* Hide the track, only show thumbs */
    pointer-events: none; /* Let only the bottom slider respond */
    /* Style the thumb */
    -webkit-appearance: none;
    appearance: none;
    
}

/* Webkit (Chrome, Edge, Safari) custom thumb */
.slider-foreground::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px; /* Adjust thumb size */
    height: 16px;
    background-color: rgba(0, 172, 251, 1); /* Blue thumb */
    border: 2px solid rgba(0, 172, 251, 1);
    border-radius: 50%; /* Rounded thumb */
    cursor: pointer;
}

/* Firefox custom thumb */
.slider-foreground::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background-color: rgba(0, 172, 251, 1);
    border: 2px solid rgba(0, 172, 251, 1);
    border-radius: 50%;
    cursor: pointer;
}


/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .slider-container {
        max-width: 100%;
    }
    .appliance-icon {
        width: 30px;
        height: 30px;
    }
    .slider-container input[type="text"] {
        font-size: 12px;
    }
    /* .slider::-webkit-slider-runnable-track {
        background: #9b0ac0; Simplify slider line on narrow screens 
    } */
    .tick-labels {
        font-size: 10px;
       /* padding: 0 50px;  /*Small padding to align labels */
        max-width: 100%;

    }
}



















































/* Chart container should have the same width as slider container */
#graph-container {
    width: 100%;
    max-width: 600px; /* Match slider width */
    margin: 0 auto;
    padding-left: 20px; /* Adjust as needed */
}

.chart-wrapper {
    display: flex;
    justify-content: flex-start; /* Aligns the chart to the left */
    padding-left: 15px; /* Adjust for spacing */
    transform: translateX(-10px); /* Moves chart 10px to the left */
    width: 100%;
    margin: 0 auto;


}

/* Customize the bar appearance with glowing blue effect */
.chart-bar {
    background: #00acfb;
    border-radius: 3px;
    cursor: pointer;
    border: 2px solid #00acfb;
    box-shadow: 0 0 8px 0 rgba(0, 172, 251, 0.6);
}
/* Default styling for graph wrapper */
#graph-wrapper {
    margin: 0 auto;
    display: block;
    justify-content: center;
    align-items: center;
    padding-bottom: 20px; /* Space below graph */
    min-height: 300px; /* Ensure adequate height */
    overflow: visible; /* Prevent hiding the graph */

}
/* Style the axis labels */
#price-chart {
    color: #515151;
    width: 100%; /* Full width of the container */
    height: 50vh; /* Ensures the chart takes 50% of the viewport height */

}


#total-bill-container div {
    margin-bottom: 15px; /* Adds spacing between lines */
}


/* Slider container styling */
.slider-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    margin: 50px auto;
}





#total-bill-container table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
}

#total-bill-container td {
    padding: 5px;
    border-bottom: 1px solid #ddd;
}

#total-bill-container td:first-child {
    font-weight: bold;
}

#total-bill-container td:last-child {
    text-align: right;
}


/* Ensure first column spans vertically and removes inner horizontal borders */
.bill-table td:first-child {
    border-bottom: none; /* Remove the horizontal line */
    vertical-align: middle; /* Align text properly */
    padding-right: 10px; /* Space between columns */
}

/* Total bill container with table inside */
#total-bill-container {
    max-width: 600px; /* Same max-width as slider container */
    margin: 0 auto;   /* Center the table */
}























.spinner {
    width: 50px;
    height: 50px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
  }

  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }




  #total-bill-container {
    text-align: center;
    margin-top: 20px;
    font-size: 18px;
    font-weight: bold;
    color: #bdbdbd;
}



#appliance-cost-container {
    text-align: right; /* Align the text to the right */
    margin-bottom: 5px; /* Add spacing between the cost and slider */
    font-weight: bold; /* Make the text stand out */
    font-size: 1rem; /* Adjust font size if necessary */
    margin-right: 50px; /* Adjust this to match the oven-time's horizontal alignment */
}


#Heat-section {
  display: block;
  width: 100%;
  overflow: visible;
  padding-bottom: 1300px;
}

#graph-wrapper {
  width: 100%;
  height: 320px;
  margin: 10px 50px 0 50px;
  position: left;
  display: block;
  clear: both;

}

#graph-wrapper canvas {
  width: 80% !important;
  height: 90% !important;
  max-width: 800px;
  display: block;
  margin: 0 auto;
}

#graph-wrapper2 {
  width: 100%;
  height: 320px;
  margin: 10px 50px 0 50px;
  position: relative;
  display: block;
  clear: both;

}

#graph-wrapper2 canvas {
  width: 90% !important;
  height: 90% !important;
  max-width: 800px;
  display: block;
  margin: 0 auto;
}


/* 
   .heat-slider-row {
  display: flex;
  width: 80%;
    max-width: 800px;

  margin: 0 auto 20px auto;
  justify-content: space-between;
}

.heat-slider-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;                 
  min-width: 0;
  color: #aebae1;
}


.heat-slider-col p {
  font-size: 10px;
  margin: 0 0 6px 0;
  text-align: center;
  white-space: normal;
  width: 30px;
  line-height: 1.1;
} */


.heat-slider-row{
    display:flex;
    width:90%;
    max-width:720px;
    justify-content:space-between;
}

.heat-slider-col{
    display:flex;
    flex-direction:column;
    align-items:center;
    flex:1;
    min-width:0;
    color:#aebae1;
}

.heat-slider-col p{
    font-size:10px;
    margin:0 0 6px 0;
    text-align:center;
    width:28px;
    line-height:1.1;
}










.array-container-heater{
    display:flex;
    flex-direction:column;
}




.grid-heater-row{
    display:grid;
    grid-template-columns:55px 25px;
    justify-content:end;   /* pushes the row content to the right */
    align-items:center;
    width:100%;
    gap:4px;
}









.grid-heater-item{
    height:calc((70vh - 120px) / 24);
    background-color:rgba(180,180,181,0.2);
    border:1px solid #00acfb;
    border-radius:3px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:0.65rem;
    color:black;
    user-select:none;
}

.grid-heater-item.active{
    background-color:orange;
    color:white;
    font-size:8px;
}



.grid-heater-item.flexible{
    box-shadow:0 0 10px 2px rgba(0,172,251,0.4);
    background-color:rgba(0,172,251,0.4);
    color:#00acfb;
}

.grid-heater-item:hover{
    cursor:pointer;
}

.time-label{
    font-size:0.7rem;
    color:white;
    padding-left:4px;
    display:flex;
    align-items:center;
}





/* 

input.vertical::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 14px;
  width: 14px;
  border-radius: 50%;
  background: orange;
  cursor: pointer;
  margin-top: -4px; 
  border: none;
}

input.vertical::-webkit-slider-thumb {
  -webkit-appearance: none;
  background: orange;
  border: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: -2px;
}


input.vertical::-moz-range-track {
  background: purple;
  width: 6px;
  border-radius: 3px;
}

input.vertical::-moz-range-progress {
  background: pink;
  border-radius: 3px;
}

input.vertical::-moz-range-thumb {
  background: orange;
  border: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}


input.vertical {
  writing-mode: vertical-rl;
  -webkit-appearance: slider-vertical;
  appearance: slider-vertical;
  height: 160px;
  width: 16px;
} */


.heater-note{
    font-size:12px;
    font-weight: 600;
    color:#aebae1; /* #aebae1; */
    margin-bottom:4px;
}


.heat-slider-row {
  display: flex;
  width: 80%;
  max-width: 800px;
  margin: 40px auto; /* Added margin for rotation clearance */
  justify-content: space-between;
  align-items: flex-end;
  height: 200px; /* Give the row height to contain vertical sliders */
}

.heat-slider-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 0;
  color: #aebae1;
  height: 100%;
  justify-content: space-between;
}

input.vertical {
  -webkit-appearance: none;
  appearance: none;
  width: 160px; 
  height: 6px;   
  background: transparent;
  /* rotate(270deg) makes the left (min) the bottom and right (max) the top */
  transform: rotate(270deg); 
  margin: 80px 0; 
  cursor: pointer;
}

input.vertical::-webkit-slider-runnable-track {
  width: 100%;
  height: 6px;
  cursor: pointer;
  border-radius: 3px;
  /* Use 'to right' because the slider grows from left (bottom) to right (top) */
  background: linear-gradient(to right, #a9e4ff var(--fill, 0%), #014a6c var(--fill, 0%));
}


/* Webkit Thumb */
input.vertical::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 14px;
  width: 14px;
  border-radius: 50%;
  background: #00acfb;
  cursor: pointer;
  margin-top: -4px; /* Centers thumb on 6px track */
  border: none;
}

/* Firefox Track */
input.vertical::-moz-range-track {
  width: 100%;
  height: 6px;
  background: purple;
  border-radius: 3px;
}

/* Firefox Progress (Pink at bottom) */
input.vertical::-moz-range-progress {
  background: pink;
  height: 6px;
  border-radius: 3px;
}

/* Firefox Thumb */
input.vertical::-moz-range-thumb {
  height: 14px;
  width: 14px;
  border-radius: 50%;
  background: orange;
  border: none;
}
.heat-slider-value {
  font-size: 10px;
  margin-top: 4px;
  color: #00acfb;
}







/* Fullscreen overlay specifically for welcome popup */
#welcomeSlider-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center;     /* Center vertically */
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent dark overlay */
    z-index: 999;
}

/* Styles specifically for the welcome popup */
#welcomeSlider-popup {
    width: 90%; /* Set width to 90% of the screen */
    max-width: 600px; /* Optional: cap the maximum width for larger screens */
    background-color: rgba(0, 0, 0, 0.9); /* Dark background */
    padding: 20px;
    color: #f0f0f0; /* Text color (white or near white for contrast) */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); /* Shadow for added depth */
    z-index: 1000;
}

.welcomeSlider-popup-content {
    padding: 20px;
    display: flex;
    flex-direction: column; /* Stack items vertically */
    justify-content: flex-start; /* Align items at the start */
    align-items: center; /* Center align items */
    max-width: 100%;
    max-height: 80vh; /* Limit maximum height */
    overflow-y: auto; /* Enable vertical scrolling if content exceeds height */
    border-radius: 10px;
    color: white; /* Ensure text is visible against dark background */
}

/* White-colored links specific to welcome popup */
#welcomeSlider-popup a {
    color: #fff; /* White links */
    text-decoration: underline; /* Optional: underline for visibility */
}
/* White-colored links specific to welcome popup */
#welcomeSlider-popup p {
    color: #9b9b9b; /* White links */
}

/* Hover effect for links */
#welcomeSlider-popup a:hover {
    color: #BFB2DE; /* Light purple on hover */
}



/* Make checkbox larger */
.appliance-questionnaire input[type="checkbox"] {
    transform: scale(1.4);
    margin-right: 6px;
    cursor: pointer;

    /* Change checked color */
    accent-color: #00acfb;
}




#total-bill-optim-Agile-tariff-message {
    font-weight: normal;
}

#total-optim-Agile-tariff-bill {
    font-weight: bold;
}




#washing-mode-selection {
display: flex;
flex-direction: column;
gap: 8px;
}

.mode-option {
display: flex;
align-items: center;
cursor: pointer;
font-weight: normal;
}

.mode-option input[type="radio"] {
appearance: none;
width: 18px;
height: 18px;
border: 2px solid #ccc;
border-radius: 5px;
margin-right: 10px;
position: relative;
cursor: pointer;
}

.mode-option input[type="radio"]:checked {
background-color: #00acfb;
border-color: #00acfb;
}

.mode-option input[type="radio"]:checked::after {
content: "";
position: absolute;
top: 3px;
left: 3px;
width: 8px;
height: 8px;
background: white;
border-radius: 2px;
}

.partner-logo {
    height: 50px;
    width: auto;
}


.heater-layout{
    display:flex;
    justify-content:center;
    align-items:flex-start;
    gap:14px;
    width:100%;
    max-width:1000px;
    margin:0 auto;
}
.blue-slider{
    appearance:none;
    -webkit-appearance:none;
    width:60%;
    background:transparent;
}

/* Track */
.blue-slider::-webkit-slider-runnable-track{
    height:6px;
    background:#00acfb;
    border-radius:3px;
}

.blue-slider::-moz-range-track{
    height:6px;
    background:#00acfb;
    border-radius:3px;
}

/* Thumb */
.blue-slider::-webkit-slider-thumb{
    -webkit-appearance:none;
    appearance:none;
    width:14px;
    height:14px;
    border-radius:50%;
    background:white;
    border:2px solid #00acfb;
    margin-top:-4px;
    cursor:pointer;
}

.blue-slider::-moz-range-thumb{
    width:14px;
    height:14px;
    border-radius:50%;
    background:white;
    border:2px solid #00acfb;
    cursor:pointer;
}


#heating-cost-text{
    margin-top:8px;
    font-size:13px;
    color:#aebae1;
}



