@import url('https://fonts.googleapis.com/css2?family=Bree+Serif&family=Pacifico&family=Space+Grotesk:wght@600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bree+Serif&family=Pacifico&family=Space+Grotesk:wght@600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
input {
    color: white;
}
.mobile {
    display: none;
}
body {
    background: radial-gradient(circle at top left, #22878e, black 70%);
    background-size: cover;
    margin: 0;
    font-family: Arial, sans-serif;
    color: white;
    position: relative;
    flex-direction: column;
    min-height: 100vh;
    justify-content: center;
    display: flex;
}

/* Grid overlay */
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    pointer-events: none;
}

/* *********************    FOOTER   ********************************************* */
.footer {
    background: rgba(20, 40, 40, 0.9);
    padding: 20px;
    text-align: center;
    color: white;
    width: 100%;
}

.footer .footer-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3.5rem;
    padding: 60px;
}

.footer-row .footer-col h4 {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 400;
}

.footer-col .links {
    margin-top: 20px;
}

.footer-col .links li {
    list-style: none;
    margin-bottom: 10px;
}

.footer-col .links li a {
    text-decoration: none;
    color: #bfbfbf;
}

.footer-col .links li a:hover {
    color: #fff;
}

.footer-col p {
    margin: 20px 0;
    color: #bfbfbf;
    max-width: 300px;
}

.footer-col form {
    display: flex;
    gap: 5px;
}


.footer-col .icons {
    display: flex;
    margin-top: 30px;
    gap: 30px;
    cursor: pointer;
}

.footer-col .icons i {
    color: #afb6c7;
}

.footer-col .icons i:hover {
    color: #fff;
}

/* *********************  END  FOOTER   ********************************************* */

/* **********************TEXT - TITLE ******************************* */
.title-container {
    flex: 1;
    text-align: center;
    padding: 2px 2px;
    background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}


#title-p {

    margin-top: 0.5em;
}

#title-h2 {
    margin-bottom: 1.4em;
}

h1 {
    font-family: "Space Grotesk", sans-serif;
    font-optical-sizing: auto;
    font-size: 40px;
    font-weight: bold;
    background: linear-gradient(to bottom, #ffffff 30%, #b0b3b8 70%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.6);
    line-height: 1.2;
    letter-spacing: -0.04em;
}

/* ********************** END TEXT - TITLE ******************************* */

/*  */
.container {
    background-color: #1632366b;
    border-radius: 63px 63px 0 0;
    padding: 30px;
    text-align: center;
    color: white;
    width: 100%;
    margin: auto;
}

/* SWITCH STYLES
  –––––––––––––––––––––––––––––––––––––––––––––––––– */
.switch-wrapper {
    position: relative;
    display: inline-flex;
    padding: 13px;
    padding-right: 17px;
    border: 1px solid lightgrey;
    margin-bottom: 40px;
    border-radius: 30px;
    background: var(--white);
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    align-content: space-between;
    gap: 50px;
}

.switch-wrapper [type="radio"] {
    position: absolute;
    left: -9999px;
}

.switch-wrapper [type="radio"]:checked#monthly~label[for="monthly"],
.switch-wrapper [type="radio"]:checked#yearly~label[for="yearly"] {
    color: var(--white);
}

.switch-wrapper [type="radio"]:checked#monthly~label[for="monthly"]:hover,
.switch-wrapper [type="radio"]:checked#yearly~label[for="yearly"]:hover {
    background: transparent;
}

.switch-wrapper [type="radio"]:checked#monthly+label[for="yearly"]~.highlighter {
    transform: none;
}

.switch-wrapper [type="radio"]:checked#yearly+label[for="monthly"]~.highlighter {
    transform: translateX(100%);
}

.switch-wrapper label {
    font-size: 16px;
    z-index: 1;
    min-width: 100px;
    line-height: 23px;
    cursor: pointer;
    border-radius: 30px;
    transition: color 0.25s ease-in-out;
    margin-left: 1.5em;
    color: black;
}

.switch-wrapper label:hover {
    background: var(--lightgray);
}

.switch-wrapper .highlighter {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    border-radius: 30px;
    background: var(--darkgreen);
    transition: transform 0.25s ease-in-out;
}

/*  */
/* cards */
.container-cards {
    width: 90%;
    max-width: 1000px;
    padding: 20px;
    margin: auto;
    color: #2f2a2a;
    text-align: left;
}

.card {
    background-color: #eaf4e6;
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
}

.card h3 {
    margin: 0;
    font-size: 18px;
}

.card p {
    margin: 5px 0 0;
    font-size: 14px;
}

.arrow {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
}

/* end of cards */
/*  */
:root {
    --white: white;
    --gray: #999;
    --lightgray: whitesmoke;
    --darkgreen: #2a9d8f;
    --popular: #ffdd40;
    --starter: #f73859;
    --essential: #00aeef;
    --professional: #ff7f45;
}

/* *********************** HEADER - MENU  ********************************* */
.header {
    background: rgba(0, 0, 0, 0.8);
    padding: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Navbar Styles */
.logo {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.logo:hover {
    transform: scale(1.1);
    color: #22aaaa;
}

.logo img {
    width: 40px;
    /* Adjust the size of the logo */
    height: auto;
    margin-right: 10px;
    /* Space between logo and text */
}

.logo p {
    margin: 0;
    font-size: 18px;
    /* Adjust the text size */
    font-weight: bold;
    white-space: nowrap;
    /* Prevent the text from wrapping to a new line */
}

@media(max-width:780px) {
    .logo p {
        white-space: wrap;
    }
}

.logout {
    background: rgba(100, 200, 255, 0.2);
    border: 1px solid rgba(100, 200, 255, 0.5);
    color: white;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 5px;
    width: 5em;
    text-align: center;
    justify-items: center;
    height: 3em;
    margin-right: 1.5em;
    margin-left: 1em;
}

.logout:hover {
    background-color: #22878e;
}

.navbar {
    color: white;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* First Row */
.first-row {
    display: flex;
    justify-content: space-between;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-size: 16px;
}

/* Second Row */
.second-row {
    display: flex;
    justify-content: center;
    padding: 8px 0;
    border-top: 1px solid #555;
}

.second-row a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-size: 14px;
}

.navbar a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.navbar a:hover {
    color: #22aaaa;
    transform: scale(1.1);
}
/* *********************** END HEADER - MENU  ********************************* */


/*********************** drop_down menu ******************************/
@media (max-width: 800px) {
    .navbar a:hover {
        color: #fff;
        cursor: pointer;
    }

    .dropdown-content {
        position: static;
    }

    .dropdown a {
        display: block;
        padding: 10px 15px;
        color: white;
        text-decoration: none;
        background-color: transparent;
        cursor: pointer;
    }

    .dropdown-content {
        left: 0;
        top: 100%;
        width: 100vw;
        background-color: #2a9d8f91;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
        opacity: 0;
        visibility: hidden;
        z-index: 10;
    }

    /* Expand dropdown */
    .dropdown:hover .dropdown-content,
    .dropdown.active .dropdown-content {
        max-height: 1000px;
        /* Adjust height as needed */
        opacity: 1;
        visibility: visible;
    }

    .dropdown.active {
        background: #0c5449;
        cursor: pointer;
    }
}

.dropdown-content a:hover {
    background-color: #094942;
}

@media(min-width: 769px) {
    .dropdown {
        position: relative;
        display: inline-block;
    }
    
    .dropdown-content {
        display: none; /* Hide the dropdown content initially */
        position: absolute;
        background-color: rgba(0, 0, 0, 0.9);
        min-width: 200px;
        z-index: 1;
        box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
        border-radius: 10px;
    }
    
    .dropdown-content a {
        padding: 12px 16px;
        text-decoration: none;
        display: block;
        border-radius: 10px;
    }

   .dropdown-content  #first_item{
        margin-top: 25px;
    }
    
    /* Show the dropdown menu when the dropdown is active */
    .dropdown.active .dropdown-content {
        display: block;
    }
    
    /* Styling for the arrow icon */
    .arrow-icon {
        margin-left: 5px;
        font-size: 12px;
    }
    
    /* Dropdown on hover for desktop */
    .nav-links .dropdown:hover .dropdown-content {
        display: block;
    }}

/* Custom dropdown styling */
.dropdown-container {
    position: relative;
    display: inline-block;
}

@media(min-width: 300px) {
    .chart-tmp {
        height: 190px;
    }
}

@media(min-width: 700px) {
    .chart-tmp {
        height: 320px;
    }
}

/************************************ menu**************************************** */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    /* z-index: 1000; */
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background: white;
    margin: 5px 0;
    transition: 0.3s;
}

.navbar {
    display: flex;
    gap: 15px;
}

.navbar a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
}

@media (max-width: 768px) {
    /* .menu-toggle {
        display: flex;
    } */

    .navbar {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.9);
        text-align: center;
        padding: 10px 0;
        z-index: 2000;
    }

    .navbar.active {
        display: flex;
    }
}

.logo {
    margin-right: 21px;
}

.settings-title {
    text-align: center;
    margin: 20px 0;
}

.settings-title h2 {
    display: inline-block;
    font-size: 24px;
    font-weight: bold;
    position: relative;
    padding-bottom: 10px;
    color: white;
}

.settings-title h2::after {
    content: "";
    display: block;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, transparent, #66ffcc, transparent);
    position: absolute;
    bottom: 0;
    left: 0;
    filter: blur(2px);
}

/* *************************************end menu************************************************** */
.menu-toggle div {
    width: 30px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* ****************************************contact form **************************************************************/
.contact-form {
    padding: 20px;
    border-radius: 29px;
    border: 0.1em solid #fff;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 530px;
    width: 90%;
    max-width: 1000px;
    padding: 20px;
    margin: auto;
    margin-bottom: 5em;
    text-align: center;
    line-height: 1.5em;
}

.contact-form h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #ffdbdb;
}

.contact-form .input-group {
    margin-bottom: 15px;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #081b25;
    border-radius: 5px;
    font-size: 16px;
    max-width: 61%;
    background-color: #7A808C;
    color: #101820;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: black;
    opacity: 0.7;
}

.contact-form textarea {
    height: 100px;
}

.contact-form .contact-form textarea {
    resize: none;
    height: 100px;
}

.contact-form button {
    width: 100%;
    background: #22aaaa;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
    max-width: 61%;
}

.contact-form button:hover {
    background: #094747;
}

/* *********************************************contact form end *************************************************/

/* CHART */
/* chart kw/hour */
.container2 {
    display: flex;
    align-items: flex-end;
    padding: 20px;
    position: relative;
    max-width: 90vw;
}

.chart-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    overflow-x: auto;
}

.chart {
    display: flex;
    flex-direction: row;
    gap: 2px;
    align-items: flex-end;
    padding: 20px;
    position: relative;
    width: 100%;
    justify-content: space-between;
}

.bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 10px;
}

.y-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 500px;
    margin-right: 10px;
    color: black;
    font-size: 12px;
    margin-bottom: 64px;
}

.chart-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    overflow-x: auto;
}

.chart {
    display: flex;
    flex-direction: row;
    gap: 2px;
    align-items: flex-end;
    padding: 20px;
    position: relative;
    width: 100%;
    justify-content: space-between;
}


.segment {
    width: 100%;
}

.x-axis {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 10px;
    color: black;
    font-size: 12px;
    padding: 0 20px;
}

/* end kw/hours */
/* chart for temperature */
.chartTemp-container {
    width: 600px;
    height: 500px;
    background: #131a30;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin: auto;
    margin-top: 4em;
}

#chart2.chartTemp-container {
    margin-bottom: 8em;
}

.chart-beforeText {
    text-align: center;
    line-height: 1.5em;
}

/* end chart of temperature*/
.container-chart {
    background: #dff6e6;
    padding: 20px;
    border-radius: 20px;
    text-align: center;
    max-width: 1330px;
    margin: auto;
}

.toggle-chart {
    display: flex;
    justify-content: space-around;
    background: #a7d7c5;
    padding: 10px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.toggle-chart button {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 5px 10px;
    color: black;
}


.toggle-chart button.active {
    background: #4caf50;
    color: white;
    border-radius: 10px;
}

.toggle-energy {
    display: flex;
    justify-content: space-around;
    background: #a7d7c5;
    padding: 10px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.toggle-energy button {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 5px 10px;
    color: black;
}

.toggle-energy button.active {
    background: #4caf50;
    color: white;
    border-radius: 10px;
}

canvas {
    width: 100% !important;
    height: auto !important;
}


.pattern {
    display: flex;
    gap: 10px;
}

.column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

/* END CHART */
/* list of items */
.item-list {
    list-style: none;
    padding: 0;
    text-align: left;
}

.item-list li {
    display: flex;
    align-items: center;
    font-size: 18px;
    color: #dfe3e6;
    margin: 10px 0;
}

.item-list li::before {
    content: "✔";
    color: #4CAF50;
    font-size: 18px;
    margin-right: 10px;
}

/* end list of items */
/* list with colors */
.color-list {
    list-style: none;
    padding: 0;
    text-align: left;
    max-width: 350px;
    width: 90%;
    max-width: 977px;
    margin: auto;
    margin-bottom: 26px;
    margin-top: 22px;
}

.color-list li {
    display: flex;
    align-items: center;
    font-size: 18px;
    color: #dfe3e6;
    margin: 10px 0;
}

.box {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    flex-shrink: 0;
}

.box1 {
    background-color: #2A9D8F; 
}

.box2 {
    background-color: darkgreen;
}

.box3 {
    background-color: #F4A261; 
}

.box4 {
    background-color: #E9C46A; 
}

.box5 {
   background-color: darkred;
}

.box6 {
    background-color: #E63946;
 }

.box7 {
    background-color: #8A2BE2;
}

.box8 {
    
    background-color: palevioletred; 
}

.box9 {
    background-color: lightgreen; 
}

.box10 {
    background-color: darkolivegreen; 
}

.box11 {
    background-color: coral; 
}

.box12 {
    background-color: #fa7f08; 
}
.box13 {
    background-color: #19a3da; 
}
.box14 {
    background-color: orangered; 
}





/* end of list of colors */

/* partners scroll */
.scroll-container {
    width: 100%;
    overflow: hidden;
    /* Hide the overflowing content */
    position: relative;
}

.scroll-content {
    display: flex;
    /* Display items in a row */
    animation: scroll 50s linear infinite;
}

.scroll-item {
    padding: 10px 20px;
    color: white;
    background-color: transparent;
    /* No background fill */
    margin: 0 47px;
    /* More space between items */
    font-size: 18px;
    border-radius: 5px;
    border: 1px solid white;
    /* 1px white border */
}

.scroll-container::before,
.scroll-container::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 300px;
    background: linear-gradient(to right, rgba(34, 34, 34, 1), rgba(34, 34, 34, 0));
    z-index: 1;
}

.scroll-container::before {
    left: 0;
}

.scroll-container::before {
    right: 0;
}

@keyframes scroll {
    0% {
        transform: translateX(100%);
        /* Start offscreen to the right */
    }

    100% {
        transform: translateX(-100%);
        /* End offscreen to the left */
    }
}

/* end partners scroll */
/* table styles */
.table-container {
    background: rgba(0, 0, 0, 0.9);
    padding: 20px;
    border-radius: 10px;
    margin: 20px auto;
    width: 95%;
    overflow-x: auto;
}

#water.table-container {
    background: rgba(0, 0, 0, 0.9);
    padding: 20px;
    border-radius: 10px;
    margin: 20px auto;
    width: 83%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    color: white;
    font-size: 12px;
}

thead {
    background: rgba(50, 50, 50, 0.8);
    text-align: center;
}

th, td {
    padding: 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

tbody tr {
    background: rgba(30, 30, 30, 0.7);
}

tbody tr:nth-child(odd) {
    background: rgba(40, 40, 40, 0.9);
}

.sub-table {
    background: rgba(20, 50, 60, 0.9);
    display: none;
    background: rgba(20, 50, 60, 0.9);
}

.sub-table th,
.sub-table td {
    background: black;
}

.sub-table td {
    padding: 10px;
}


/* ********************************************table****************************************** */
/* *****table-pagination***** */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.pagination button {
    background: rgba(100, 200, 255, 0.2);
    color: white;
    border: 1px solid rgba(100, 200, 255, 0.5);
    padding: 5px 10px;
    margin: 0 5px;
    cursor: pointer;
}

.pagination button.active {
    background: rgba(100, 200, 255, 0.5);
}

.t-header th:first-child {
    border-top-left-radius: 10px;
}

.t-header th:last-child {
    border-top-right-radius: 10px;
}

th{
    background-color: #75b5ad40;
}

/* *******end table-pagination******* */

/* *****************************CHART FOR photovoltaic.html AND solar.html ****************************************** */
.chartTemp-container-photov {
    width: 90%;
    max-width: 1130px;
    margin: auto;
    padding: 20px;
    background-color: #222;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

canvas {
    width: 100% !important;
    height: 315px;
}

.chart-tmp-photov {
    height: 320px;
}

.chart-beforeText1-photov {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Two equal columns */
    gap: 10px;
    /* Space between columns */
    margin: auto;
    margin-bottom: 1em;
}

.chart-beforeText2-photov {
    margin-bottom: 1em;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Two equal columns */
    gap: 10px;
    /* Space between columns */
}

.chart-beforeText-photov p {
    margin: 5px 0;
}

/* Make it a single column on smaller screens */
@media (max-width: 600px) {
    .chart-beforeText1-photov {
        grid-template-columns: 1fr;
    }

    .chart-beforeText2-photov {
        grid-template-columns: 1fr;
    }

    .chart-beforeText-photov p {
        font-size: 14px;
    }
}

@media(min-width: 300px) {
    .chart-tmp-photov {
        height: 190px;
        /* padding-bottom: 20vw; */
    }
}

@media(min-width: 700px) {
    .chart-tmp-photov {
        height: 320px;
    }
}
/* ***************************** END CHART FOR photovoltaic.html AND solar.html ****************************************** */

/* *************************************8******table end************************************* */
.list {
    width: 90%;
    max-width: 1000px;
    padding: 20px;
    margin: auto;
}

/* partners scroll */
.scroll-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.scroll-content {
    display: flex;
    /* Display items in a row */
    animation: scroll 50s linear infinite;
}

.scroll-item {
    padding: 10px 20px;
    color: white;
    background-color: transparent;
    /* No background fill */
    margin: 0 47px;
    /* More space between items */
    font-size: 18px;
    border-radius: 5px;
    border: 1px solid white;
}

.scroll-container::before,
.scroll-container::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 300px;
    background: linear-gradient(to right, rgba(34, 34, 34, 1), rgba(34, 34, 34, 0));
    z-index: 1;
}

.scroll-container::before {
    left: 0;
}

.scroll-container::before {
    right: 0;
}

@keyframes scroll {
    0% {
        transform: translateX(100%);
        /* Start offscreen to the right */
    }

    100% {
        transform: translateX(-100%);
        /* End offscreen to the left */
    }
}

.show-hide {
    position: relative;
    background: #2c2c2c;
    border: none;
    padding: 10px 35px 10px 15px;
    /* Space for icon */
    color: white;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

/* Hover effect */
.show-hide:hover {
    background: #444;
}

/* Custom dropdown arrow for the button */
.show-hide::after {
    content: "▼";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 12px;
    pointer-events: none;
}

/* edit buttons above the table */
.container-edit {
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    margin: auto;
}

.title {
    font-size: 24px;
    margin-bottom: 20px;
}

.buttons,
.start-time {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.btn,
.dropdown-btns {
    background: #2c2c2c;
    border: none;
    padding: 10px 15px;
    color: white;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.btn:hover {
    background: #156161;
}

.dropdown-btns#small{
    width:90px;
}

.btn_link{
    text-decoration: none;
    color: white;
}



/************** filter buttons *********************/

.dropdown-btns {
    appearance: none;
    background: #2c2c2c;
    border: none;
    padding: 10px 35px 10px 15px;
    color: white;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
    width: 220px;
}

#yes_no.dropdown-btns {
    width: 70px;
}

/* Dropdown hover effect */
.dropdown-btns:hover {
    background: #444;
}

/* Custom dropdown arrow */
.dropdown-container::after {
    content: "▼";
    /* Unicode down arrow */
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 12px;
    pointer-events: none;
    /* Prevent clicking on the arrow */
}

.start-time {
    margin-top: 10px;
}

input[type="date"],
input[type="time"] {
    background: #2c2c2c;
    border: none;
    padding: 10px 15px;
    color: white;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

input[type="date"]:hover,
input[type="time"]:hover {
    background: #444;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

input.consumers[type="datetime-local"] {
    width: 100%;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 14px;
    background-color: black;
    color: white;
}

input.consumers::-webkit-calendar-picker-indicator {
    filter: invert(1);
    /* Makes the icon white */
    cursor: pointer;
}

/* end edit buttons  */




.integrations h2 {
    font-size: 24px;
    margin-top: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid gray;
}

/* Grid Layout */
.gridv-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 equal columns */
    gap: 15px;
    padding: 20px;
    justify-content: center;
    max-width: 600px;
    margin: auto;
}

/* Make the last grid item span 3 columns */
.gridv-item:last-child {
    grid-column: span 2;
}

/* Grid Item Styles */
.gridv-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    transition: transform 0.3s ease-in-out;
}

.gridv-item:hover {
    transform: scale(1.05);
}

/* Images */
.gridv-item img {
    max-width: 80%;
    height: auto;
    margin-bottom: 10px;
    border-radius: 5px;
}

/* Text */
.gridv-item p {
    font-size: 14px;
    font-weight: bold;
    margin: 0;
}

.flag-container {
    display: flex;
    gap: 10px;
    width: 180px;
    justify-content: center;
    margin-top: 4px;
}

.rotating-flag {
    width: 40px;
    height: 30px;
    min-width: 40px;
    min-height: 30px;
    max-width: 40px;
    max-height: 30px;
    object-fit: cover;
    display: block;
    transition: opacity 0.5s ease-in-out;
}

/* RESPONSIVE DESIGN */
/* Mobile Navigation */
@media (max-width: 768px) {
    .navbar {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        background: rgba(0, 0, 0, 0.9);
        width: 100%;
        text-align: center;
        padding: 10px 0;
        transition: all 0.3s ease-in-out;
    }

    .navbar.active {
        display: flex;
    }

    .navbar a {
        display: block;
        padding: 10px;
        width: 100%;
    }

    .menu-toggle {
        display: flex;

    }

    .menu-toggle div {
        width: 30px;
    }


    .logo {
        margin-right: 21px;
    }
}

@media (max-width: 360px) {
    .menu-toggle div {
        width: 20px;
    }

    .switch-wrapper {
        gap: 20px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .gridv-container {
        grid-template-columns: repeat(2, 1fr);
        /* Switch to 2 columns */
        padding-left: 10px;
        padding-right: 10px;
        max-width: 100%;
    }

    .gridv-item {
        padding: 10px;
        /* Reduce padding */
    }

    .gridv-item:last-child {
        grid-column: span 2;
        /* Span both columns */
    }

    .switch-wrapper {
        padding: 1vw;
    }
}

@media (max-width: 480px) {
    .gridv-container {
        grid-template-columns: repeat(1, 1fr);
        /* Switch to 1 column */
        padding-left: 15px;
        padding-right: 15px;
    }

    .gridv-item:last-child {
        grid-column: span 1;
        /* Span the full width */
    }
}

/* cards */
@media (min-width: 768px) {
    .container-cards {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .card {
        padding: 20px;
    }

    .card h3 {
        font-size: 20px;
    }

    .card p {
        font-size: 16px;
    }

}

/* footer */
@media (max-width: 768px) {
    .footer {
        position: relative;
        bottom: 0;
        left: 0;
        transform: none;
        width: 100%;
        border-radius: 0;
    }

    .footer .footer-row {
        padding: 20px;
        gap: 1rem;
    }

    .footer-col form {
        display: block;
    }

    .footer-col form :where(input, button) {
        width: 100%;
    }

    .footer-col form button {
        margin: 10px 0 0 0;
    }
}

/* chart */
@media (max-width: 1024px) {
    .desktop {
        display: none;
    }
    .mobile {
        display: block;
    }
    .chart-container {
        overflow-x: auto;
    }

    .chart {
        width: 100%;
        min-width: 0;
    }

    .x-axis {
        width: 100%;
        min-width: 0;
    }
    #table_wrapper {
        overflow: auto;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .chart {
        gap: 0px;
        /* Set gap to 20px on mobile screens */
    }
}

@media (max-width: 480px) {
    .contact-form {
        padding: 15px;
    }
}

@media (max-width: 1024px) {
    .chart-container {
        overflow-x: auto;
    }

    .chart {
        width: 100%;
        min-width: 0;
    }

    .x-axis {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 480px) {
    .chart {
        gap: 0px;
    }
}

/* contact form */
@media (max-width: 480px) {
    .contact-form {
        padding: 15px;
    }
}

@media (max-width: 600px) {
    .container-edit {
        width: 100%;
        max-width: 350px;
    }

    .buttons,
    .start-time {
        flex-direction: column;
    }

    .dropdown-btns {
        width: 100%;
    }
}

input {
    border: 0;
    font: inherit;

    &::placeholder {
        color: #7e8ba3;
    }

}

.form {

    &__field {
        margin-bottom: 1rem;
    }

    input {
        outline: 0;
        padding: .5rem 1rem;
        color: #fff;

        &[type="email"],
        &[type="password"] {
            width: 100%;
        }

    }

}

.grid {
    margin: 0 auto;
    max-width: 25rem;
    width: 100%;
}

.grid.align__item {
max-width: 500px;
}

.grid.align__item:hover {
    transform: scale(1.05);
    /* Slightly enlarges the form */
}

h2 {
    font-size: 2.75rem;
    font-weight: 100;
    margin: 0 0 1rem;
    text-transform: uppercase;
}

svg {
    height: auto;
    max-width: 100%;
    vertical-align: middle;
}

a {
    color: #7e8ba3
}

.register {
    box-shadow: 0 0 250px #000;
    text-align: center;
    padding: 4rem 2rem;
    margin: auto;
    margin-bottom: 3em;
    margin-top: 3em;
}

input {
    border: 1px solid #ffffffc3;
    border-radius: 999px;
    background-color: transparent;
    text-align: center;
    margin-bottom: 1em;

    &[type="email"],
    &[type="password"] {
        background-repeat: no-repeat;
        background-size: 1.5rem;
        background-position: 1rem 50%;
    }


    &[type="submit"] {
        background-image: linear-gradient(160deg, #8ceabb 0%, #378f7b 100%);
        color: #fff;
        margin-bottom: 2rem;
        width: 100%;
        border: none;
    }

}

.standart-button {
    padding: inherit;
    margin-bottom: auto !important;
}

input[type="submit"]:hover {
    background-image: linear-gradient(160deg, #378f7b 0%, #8ceabb 100%);
    color: #242c37;
    cursor: pointer;
}

.password-field {
position: relative;
display: flex;
align-items: center;
}

.password-field input {
width: 100%;
padding-right: 2.5rem;
}

.toggle-password {
position: absolute;
right: 10px;
cursor: pointer;
color: #7e8ba3;
transform: translateY(-50%);
}

.toggle-password:hover {
color: #ffffff;
}

@media (max-width: 780px) and (min-width: 320px) {
    .register {
        width: 320px;
    }
}
@media (max-width: 1224px) and (min-width: 768px) {
.grid.align__item {
width: 100%;
max-width: 500px;
padding: 2rem; 
}

.register {
padding: 3rem 1.5rem; 
margin-bottom: 9em;
margin-top: 7em;
}

.form__field input {
font-size: 1rem; 
padding: 0.75rem 1rem;
}

input[type="submit"] {
font-size: 1.2rem;
padding: 0.8rem;
}

.nav-links {
display: flex;
flex-wrap: wrap;
justify-content: center; 
}

.nav-links a {
white-space: nowrap; 
padding: 0.5rem 1rem; 
}
}
@media (min-width: 1224px){

.grid.align__item {
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.grid.align__item:hover {
    transform: scale(1.05);
    /* Slightly enlarges the form */
}
}

#table_wrapper {
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    margin-top: 10px;
    margin-bottom: auto;
}

.select-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

select.form__field {
    width: 100%;
    background-color: transparent;
    color: #fff;
    padding: 0.5rem 1rem;
    border: 1px solid #ffffffc3;
    border-radius: 999px;
    text-align: center;
    margin-bottom: 1em;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.select-wrapper::after {
    content: '\f078'; /* FontAwesome down arrow */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: #fff;
    pointer-events: none;
    padding-bottom: 13px;
}

select.form__field:focus {
    outline: none;
    border-color: #8ceabb;
}

select option {
    background-color: #242c37;
    color: #fff;
}

.grid.align__item {
    max-width: 644px;
    flex: 1;
    align-content: center;
}

img, svg {
    vertical-align: middle;
}


.bg-transparent {
    background-color: transparent !important;
}
.justify-content-center {
    justify-content: center !important;
}

.pagination {
    display: flex;
    padding-left: 0;
    list-style: none;
}


.page-item.active .page-link {
    color: white;
    background-color: transparent;
    border-color: transparent;
}
.page-item:not(:first-child) .page-link {
    margin-left: 0;
}
.page-link {
    padding: 0.375rem 0.75rem;
}
.page-link {
    position: relative;
    display: block;
    color: gray;
    text-decoration: none;
    background-color: transparent;
    border: 0 solid #dee2e6;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.epay-button {
    width: 300px !important;
    height: 40px;
    
}

@media only screen 
  and (device-width: 320px) 
  and (device-height: 568px) 
  and (-webkit-device-pixel-ratio: 2) 
  {

    h2
    {
        font-size: 1rem;
    }
    .switch-wrapper
    {
        gap:20px;
    }
    .switch-wrapper label 
    {
        margin-left:0rem;
    }
  /* Email and password input fields */
  input[type="email"],
  input[type="password"],
  .contact-form input,
  .form input {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 14px !important;
    padding: 10px !important;
    background-color: #e8f0fe !important;
    color: white !important;
    border: 1px solid #555 !important;
    border-radius: 999px !important;
    max-height : 30px;
    margin-bottom: 1rem;
    box-sizing: border-box !important;
  }

  /* Submit button */
  input[type="submit"] {
    background-color: #378f7b !important;
    color: white !important;
    margin-bottom: 1rem !important;
    width: 100% !important;
    font-size: 16px !important;
    padding: 10px !important;
    border: none !important;
    border-radius: 5px !important;
  }

  input[type="submit"]:hover {
    background-color: #8ceabb !important;
    color: #242c37 !important;
  }

  /* Other input areas */
  textarea, select {
    width: 100% !important;
    max-width: 100% !important;
  }

}