﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #9acd32;
    color: #333;
}

.header {
    background-color: lightyellow;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

    .header .flex {
        display: flex;
        align-items: center;
        justify-content: space-evenly;
        padding: 1.5rem;
        margin: 0 auto;
    }

    .header .right-align {
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }

    .header .logo {
        display: inline-block;
        text-decoration: none;
    }

        .header .logo img {
            max-width: 220px;
            display: block;
        }

    .header .title {
        flex-grow: 1;
        text-align: center;
        padding-left: 300px;
    }

        .header .title h1 {
            font-size: 2.8rem;
            color: #16a738;
        }

        .header .title h2 {
            font-size: 1.8rem;
            color: navy;
        }

.icons {
    display: flex;
    color: white;
    gap: 15px;
    cursor: pointer;
}

    .icons div {
        font-size: 1.6rem;
        cursor: pointer;
        color: #333;
    }

    .icons div {
        margin-right: 0.5rem;
        color: navy;
    }

.profile {
    display: none;
    position: absolute;
    top: 100%;
    right: 2rem;
    background-color: lightyellow;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 1rem;
    min-width: 200px;
}

    .profile.active {
        display: block;
    }

.flex-btn {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}
/* Center the button section */
.button-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin: 2rem 0;
}

.btn, .option-btn {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 1rem;
}

.btn {
    background-color: #16a738;
    color: #fff;
    cursor: pointer;
}

.btn2:disabled {
    background-color: red;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 1rem;
    cursor: pointer;
}

.btn2:enabled {
    background-color: #16a738;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 1rem;
    cursor: pointer;
}

.option-btn {
    background-color: #e3342f;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 1rem;
}

.side-bar {
    position: fixed;
    top: 90px;
    left: -300px;
    width: 300px;
    height: 100%;
    background-color: lightyellow;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    z-index: 999;
}

    .side-bar.active {
        left: 0;
    }

#close-btn {
    font-size: 1.5rem;
    padding: 1rem;
    cursor: pointer;
    color: #333;
}

.side-bar .profile {
    text-align: center;
    padding: 1rem;
}

    .side-bar .profile img {
        max-width: 100%;
        border-radius: 8px;
    }

    .side-bar .profile h2 {
        margin-top: 0.5rem;
        font-size: 1.2rem;
        color: #333;
    }

.navbar a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    color: #333;
    text-decoration: none;
    text-align: left;
    font-size: 0.9rem;
    font-weight: bold;
    transition: background 0.2s;
}

.navbar span {
    color: navy;
}

.navbar a:hover {
    background-color: #e6f3e6;
}

.navbar a i {
    margin-right: 0.5rem;
    color: #16a738;
    text-align: left;
}
.home-grid {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.box-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.8rem;
}

.card2 {
    background: #fffef5;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

    .card2:hover {
        transform: translateY(-6px);
        box-shadow: 0 10px 24px rgba(0,0,0,0.12);
    }

.image2 {
    width: 100%;
    padding: 0;
    background: lightyellow;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

    .image2 img {
        width: 100%;
        height: 100%;
        object-fit: fill;
        object-position: center;
        display: block;
    }

.content2 {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.title2 {
    font-size: 1.35rem;
    font-weight: 600;
    color: #556b2f;
    margin-bottom: 0.6rem;
}

.desc2 {
    font-size: 1rem;
    color: navy;
    line-height: 1.6;
    flex-grow: 1;
}

.action2 {
    margin-top: 1.2rem;
    padding: 0.8rem 1.2rem;
    background: green;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    transition: all 0.3s ease;
}

    .action2:hover {
        background: darkgreen;
    }

    .action2 span {
        margin-left: 6px;
    }
.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 70px;
    background-color: lightyellow;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

    .footer > img {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
    }

        .footer > img:first-of-type {
            left: 2rem;
        }

        .footer > img:last-of-type {
            right: 2rem;
        }

    .footer h1 {
        font-size: 1.5rem;
        color: navy;
    }

@media (max-width: 768px) {
    .header .title h1 {
        font-size: 1.5rem;
    }

    .dashboard-user-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-insights-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-insights-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-alerts-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .smart-alert-list {
        grid-template-columns: 1fr;
    }

    .box-container {
        grid-template-columns: 1fr;
    }

    .footer > img {
        width: 100px;
    }
}

@media (max-width: 1200px) {
    .dashboard-user-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-insights-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.heading {
    font-size: 1.8rem;
    color: #16a738;
    margin: 1.5rem 0;
    text-align: center;
}

.courses {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.courses1 {
    max-width: 2450px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.form-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: bold;
    color: navy;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.form-group input {
    color: blue;
    background-color: lightcyan;
}


.form-field {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

    .form-field:focus {
        outline: none;
        border-color: #16a738;
    }

    .form-field#currency {
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 10px center;
        background-size: 24px;
        color: blue;
    }

.input-with-unit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.unit, .currency-label {
    font-size: 0.9rem;
    color: blue;
}

.table-container {
    background-color: lightyellow;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    bottom: 20px;
    overflow-x: auto;
}

.table-container1 {
    background-color: lightyellow;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    bottom: 20px;
    overflow-x: auto;
}

.custom-table {
    width: auto;
    border-collapse: collapse;
    font-size: 1.2rem;
    margin-left: auto;
    margin-right: auto;
}

    .custom-table th,
    .custom-table td {
        padding: 1.2rem;
        text-align: center;
        border: 1px solid blue;
    }

    .custom-table th {
        background-color: #e6f3e6;
        color: #16a738;
        font-weight: bold;
    }

    .custom-table tr:nth-child(even) {
        background-color: #f9f9f9;
    }

    .custom-table tr:hover {
        background-color: #e6f3e6;
    }

.custom-table1 {
    width: auto;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin-left: auto;
    margin-right: auto;
}

    .custom-table1 th,
    .custom-table1 td {
        padding: 0.1rem;
        text-align: center;
        border: 1px solid blue;
    }

    .custom-table1 th {
        background-color: #e6f3e6;
        color: #16a738;
        font-weight: bold;
    }

    .custom-table1 tr:nth-child(even) {
        background-color: #f9f9f9;
    }

    .custom-table1 tr:hover {
        background-color: #e6f3e6;
    }

.form-columns {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.form-column {
    flex: 1;
    min-width: 300px;
}

.table-heading {
    color: #16a738;
    font-weight: bold;
    text-align: left;
    background-color: #e8f5e9;
    font-size: 1.2em;
}

.table-heading1 {
    color: #16a738;
    font-weight: bold;
    text-align: left;
    background-color: #e8f5e9;
    font-size: 1em;
}

#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background-color: #9acd32;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
    margin-top: 10%;
}

#loader-int {
    margin-top: 15%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#loader p {
    font-size: 18px;
    color: #333;
}

#timer {
    font-size: 16px;
    color: #555;
    margin-top: 10px;
}

@media (max-width: 1500px) {
    .form-columns {
        flex-direction: column;
    }
}

.key-inputs-heading {
    text-align: center;
    width: 100%;
    margin: 1.5rem 0;
}

.loader-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

.table-container {
    position: relative;
}

.hidden {
    display: none;
}

.subscription-loading {
    position: fixed;
    top: 110px;
    right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    background-color: transparent;
    border: none;
    z-index: 1200;
}

    .subscription-loading::before {
        content: "";
        width: 20px;
        height: 20px;
        border: 2px solid #f3f3f3;
        border-top: 2px solid #3498db;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}



#location-display {
    margin-top: 20px;
    padding: 10px;
    font-size: 16px;
    width: 200px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: white;
}

label {
    font-weight: bold;
    margin-bottom: 10px;
}

.loading::placeholder {
    color: blue;
}



@media print {
    body {
        visibility: hidden;
        margin: 0;
    }

    #printTable {
        visibility: visible;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
    }

        #printTable table {
            width: 100%;
            border-collapse: collapse;
            font-family: Arial, sans-serif;
        }

        #printTable th, #printTable td {
            border: 1px solid black;
            padding: 8px;
            text-align: left;
            font-size: 12pt;
        }

        #printTable th {
            background-color: #f2f2f2;
            font-weight: bold;
        }

        #printTable h1, #printTable h2 {
            font-family: Arial, sans-serif;
            text-align: center;
            margin: 10px 0;
        }

    .chart-container {
        page-break-inside: avoid;
        margin-bottom: 20mm;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    canvas {
        width: 100% !important;
        max-width: 1600px !important;
        height: auto !important;
        page-break-inside: avoid;
    }

    @page {
        size: A3 landscape;
        margin: 10mm;
    }

    #LEVELISEDCOSTOFGENERATION-model-table table {
        width: 100%;
        max-width: 400mm;
        table-layout: auto;
        font-size: 10pt;
        page-break-inside: auto;
        page-break-before: always;
    }

    #LEVELISEDCOSTOFGENERATION-model-table th,
    #LEVELISEDCOSTOFGENERATION-model-table td {
        padding: 4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        border: 1px solid #000;
    }

    #LEVELISEDCOSTOFGENERATION-model-table tr {
        page-break-inside: avoid;
        page-break-after: auto;
    }
}

.GREEN_HYDROGEN_GENERATION,
.GREEN_AMMONIA_GENERATION,
.GREEN_POWER_GENERATION_SOLAR,
.GREEN_POWER_GENERATION_WIND,
.SOLAR_WIND_HYBRID_POWER_GENERATION,
.GREEN_ROUND_THE_CLOCK_BESS_PLANT,
.BIOGAS_POWER_FROM_NAPIER_GRASS,
.WASTE_TO_ENERGY,
.BIO_MASS_POWER {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.subscribed {
    background-color: green;
    color: white;
}

.not-subscribed {
    background-color: red;
    color: white;
    pointer-events: none;
    opacity: 0.6;
}
/* Styles for subscription-based visibility in navbar */
.navbar a.subscribed {
    display: block; /* Ensure subscribed links are visible */
    background-color: transparent;
}

.navbar a.not-subscribed {
    background-color: transparent;
}

.tab-content {
    display: none;
}

    .tab-content.active {
        display: block;
    }

.form-columns {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.form-column {
    flex: 1;
    min-width: 300px;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.form-field {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.input-with-unit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.unit {
    font-size: 1rem;
}

.result {
    margin-top: 0.5rem;
}

.sidebar {
    min-width: 200px;
    max-width: 250px;
}

@media (max-width: 768px) {
    .sidebar {
        min-width: 100%;
        max-width: 100%;
    }

    .flex {
        flex-direction: column;
    }
}
/* Loader styles */
.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    display: none;
    margin: 0 auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.btn-loading .loader {
    display: inline-block;
}

.btn-loading {
    pointer-events: none; /* Disable clicks while loading */
    opacity: 0.7; /* Visual feedback for disabled state */
    background-color: red;
}

.btn1:disabled {
    background-color: red;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 1rem;
}

.btn1:enabled {
    background-color: #16a738;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 1rem;
}

.wind-turbine-icon {
    width: 25px;
    height: 25px;
    background-image: url("../Images2/wind-farm.png"); /* Replace with actual base64 data */
    color: #16a738;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
    vertical-align: middle;
}

.renewable-energy-icon {
    width: 25px;
    height: 25px;
    background-image: url("../Images2/renewable-energy.png"); /* Replace with actual base64 data */
    color: #16a738;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
    vertical-align: middle;
}
