.custom-alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ffdddd;
    padding: 20px;
    border: 1px solid #ff5c5c;
    border-radius: 8px;
    z-index: 10000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.custom-alert.success {
    background-color: #ddffdd;
    border-color: #5cc55c;
}

.custom-alert p {
    margin: 0;
    color: #d8000c;
    font-weight: bold;
}

.custom-alert.success p {
    color: #008000;
}

.custom-alert button {
    background-color: #d8000c;
    color: #fff;
    border: none;
    padding: 8px 16px;
    margin-top: 10px;
    border-radius: 4px;
    cursor: pointer;
}

.custom-alert.success button {
    background-color: #5cc55c;
}

.custom-alert button:hover {
    opacity: 0.8;
}


#email-summary-form {
    display: none;
    background-color: #fff;
    padding: 20px;
    border: 1px solid #ccc;
    max-width: 400px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

#em

.fuel-gauge {
    display: flex;
    align-items: center;
    width: 100%;
    font-family: Arial, sans-serif;
    color: rgb(149, 149, 149);
}

/* Left label (E) aligned to the far left */
.gauge-label-left {
    flex: 0 0 auto;
    margin-right: 5px;
}

/* Right label (F) aligned to the far right */
.gauge-label-right {
    flex: 0 0 auto;
    margin-left: 5px;
}

/* Gauge Bar */
.gauge-bar {
    display: flex;
    flex-grow: 1;
    height: 10px;
    position: relative;
    margin: 0 5px;
}

/* Gauge Marks */
.gauge-mark {
    position: relative;
    width: 20%;
    height: 100%;
    border-left: 1px solid lightgray;
}

/* Middle Mark with 1/2 Label */
.half-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.half-mark span {
    position: absolute;
    bottom: 15px;
    font-size: 10px;
    color: rgb(149, 149, 149);
}


/* Overlay */
#overlay {
    position: fixed;
    display: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.75); /* Semi-transparent black background */
    z-index: 999; /* Ensure it appears above all other elements */
}

/* Popup Content */
#popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    max-width: 90%;
    max-height: 90%;
    overflow-y: auto;
    z-index: 1000; /* Higher than the overlay */
}

/* Close Button */
.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
}

.close:hover {
    color: red;
}

#popup h2 {
    color: red;
    margin-bottom: 20px;
}

#popup p {
    font-size: 16px;
    margin-bottom: 20px;
}

#popup button {
    background-color: #00724e;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

#popup button:hover {
    background-color: #45a049;
}

/* General Styles */
h2 {
    font-size: 28px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff;
    padding: 20px 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-logo {
    flex: 0 0 auto;
}

.logo {
    max-width: 100%;
    width: 200px;
    height: auto;
}

.header-title {
    flex: 1;
    text-align: left;
    padding-left: 20px;
    font-family: 'Poppins', sans-serif;
}

.container {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    align-items: stretch; /* Ensures all columns are the same height */
}


.form-column, .progress-column, .display-column {
    flex: 1;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-right: 10px;
}

.display-column {
    position: relative;
    transition: all 0.3s ease;
}

.toggle-summary {
    font-size: 18px;
    font-weight: bold;
    color: #00724e;
    cursor: pointer;
}

.summary-content.hidden {
    display: none;
}

#send-email {
    background-color: #00724e;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px;
}

#send-email:hover {
    background-color: #45a049;
}


/* Ensure the container doesn't wrap the columns on smaller screens */
@media (max-width: 768px) {
    .container {
        flex-wrap: nowrap;
        overflow-x: auto; /* Allows horizontal scrolling if needed */
    }

    .display-column {
        flex: 0 0 40%; /* Adjust width for smaller screens */
    }
}

.display-column2 {
    flex: 1;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    margin: 0px 20px 0px 0;
    overflow: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    opacity: 0; /* Start hidden */
    visibility: hidden; /* Keep it out of view until shown */
}

.display-column2.fade-in {
    opacity: 1;
    visibility: visible;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .display-column2 {
        flex: 1 1 100%;
        margin: 10px 0;
    }
}



.toggle-button {
    top: 10px;
    width: 20%;
    font-size: 10px;
    background-color: #00724e;
    color: white;
    border: none;
    border-radius: 3px;
    padding: 5px 10px;
    cursor: pointer;
}

.form-step {
    margin-bottom: 20px;
}

.hidden {
    display: none;
}

label {
    display: block;
    margin-top: 8px;
    margin-bottom: 8px;
    font-weight: bold;
}

select, input[type="text"], button {
    display: block;
    width: 100%;
    margin-top: 5px;
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

button {
    background-color: #00724e;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #45a049;
}

/* Progress Bar Styles */
.progress-container {
    margin-top: 20px;
}

.progress-bar {
    width: 100%;
    height: 60px;
    background-color: #909090;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 30" preserveAspectRatio="none"><path d="M0 30 V15 Q30 3 60 15 T120 15 V30z" fill="%23b3e5fc" /></svg>');
    background-size: 150px 100%;
    background-repeat: repeat-x;
    background-position: left bottom;
    animation: flowingWater 4s linear infinite;
}

@keyframes flowingWater {
    from {
        background-position: 0 bottom;
    }
    to {
        background-position: 150px bottom;
    }
}

.fill {
    height: 100%;
    border-radius: 5px;
    text-align: center;
    line-height: 60px;
    font-weight: bold;
    transition: width 0.5s;
}

.solid-waste-fill {
    background-color: #523208;
    z-index: 1;
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    transition: width 0.5s ease-out;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 30" preserveAspectRatio="none"><path d="M0 30 V10 Q30 20 60 10 T120 10 V30z" fill="%23523208" /><circle cx="30" cy="12" r="3" fill="%23a0522d"><animate attributeName="cy" values="12;8;12" dur="2s" repeatCount="indefinite" /></circle><circle cx="90" cy="16" r="2" fill="%23a0522d"><animate attributeName="cy" values="16;12;16" dur="2.5s" repeatCount="indefinite" /></circle></svg>');
    background-size: 150px 100%;
    background-repeat: repeat-x;
    background-position: right bottom;
    animation: risingWaste 5s linear infinite;
}

@keyframes risingWaste {
    from {
        background-position: 0 bottom;
    }
    to {
        background-position: 150px bottom;
    }
}

.fill.usage {
    z-index: 2;
    background-color: #00724e;
}

.fill.dissipated {
    z-index: 3;
    background-color: #f7da03;
}

.fill.red {
    z-index: 4;
    background-color: red;
}

.bar-text, .free-space-text, .solid-waste-text {
    z-index: 5;
    position: absolute;
    top: 0;
    line-height: 60px;
    font-size: 16px;
    color: white;
    text-align: center;
    font-weight: bold;
}

.bar-text {
    left: 10px;
}

.free-space-text {
    width: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.solid-waste-text {
    right: 10px;
    text-align: right;
}

.explanation {
    font-size: 12px;
    color: #555;
    margin-bottom: 20px;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .form-column, .display-column, .progress-column {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .header-content {
        flex-direction: column;
        align-items: center;
    }

    .header-title {
        padding-left: 0;
        margin-top: 10px;
        text-align: center;
    }

    .toggle-button {
        right: -10px;
    }

    input, select, textarea, button {
        font-size: 18px;
        padding: 16px;
    }

    .button-link, button {
        font-size: 20px;
    }

    .info-column {
        flex: 1 1 100%; /* Stack columns on top of each other on mobile */
        margin-bottom: 10px; 
        /* Smaller space between stacked columns */
    }
}

/* Dropdown Arrow */
select {
    background-color: #fff;
    color: #333;
    padding-right: 40px;
    background-image: url('data:image/svg+xml;utf8,<svg fill="none" stroke="%23333" stroke-width="2" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" d="M19 9l-7 7-7-7"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
}

select::-ms-expand {
    display: none;
}

select:focus, input:focus, textarea:focus, button:focus {
    outline: 2px solid #00724e;
    outline-offset: 4px;
    color: #333;
    border-color: #00724e;
}

input::placeholder, textarea::placeholder {
    color: #999;
    opacity: 1;
}

.additional-info-row {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    justify-content: space-between;
    margin-top: 20px;
}

.info-column {
    flex: 1 1 23%; /* Default width for larger screens */
    padding: 10px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    margin: 6px;
    text-align: center;
    box-sizing: border-box;
}

/* Adjust to 2 columns per row on smaller screens */
@media (max-width: 768px) {
    .info-column {
        flex: 1 1 48%; /* 2 columns on smaller screens */
    }
}


.info-column h3 {
    font-size: 16px;
    margin-bottom: 5px; 
}

/* Ensure the last column in a row does not have a margin */
.info-column:nth-child(4n) {
    margin-right: 0px;
}

.info-value {
    font-size: 24px;
    font-weight: bold;
    margin-top: 5px;
}

.simulate-button-container {
    text-align: center;
    margin-top: 20px;
}

#simulate-pump-out {
    background-color: #00724e;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#simulate-pump-out:hover {
    background-color: #45a049;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

.waiting-text {
    color: lightgray;
    font-size: 14px;
    animation: fadeInOut 2s infinite;
    text-align: center;
    margin-top: 10px;
}
