﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



.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;
}



.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: 1525px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.dashboard-summary {
    max-width: 1525px;
    margin: 1.5rem auto 0;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.dashboard-user-card,
.dashboard-insights,
.dashboard-alerts-center {
    background-color: lightyellow;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 1rem 1.25rem;
}

    .dashboard-user-card h3,
    .dashboard-insights h3,
    .dashboard-alerts-center h3 {
        color: navy;
        font-size: 1.35rem;
        margin-bottom: 0.75rem;
    }

.dashboard-user-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
}

.dashboard-detail {
    background-color: #f5ffe6;
    border: 1px solid #d8eac0;
    border-radius: 10px;
    padding: 0.75rem;
    min-height: 82px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dashboard-detail-label {
    font-size: 0.85rem;
    color: navy;
    margin-bottom: 0.35rem;
}

.dashboard-detail-value {
    font-size: 0.96rem;
    font-weight: 600;
    color: blue;
    word-break: break-word;
}

.dashboard-insights-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
}

    .dashboard-insights-head p {
        color: navy;
        font-size: 0.92rem;
    }

.dashboard-loading {
    color: navy;
    font-size: 0.9rem;
    margin: 0.45rem 0 0.6rem;
}

.dashboard-insights-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.75rem;
}

.insight-card {
    background-color: #f5ffe6;
    border: 1px solid #d8eac0;
    border-radius: 10px;
    padding: 0.8rem;
    min-height: 92px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.insight-label {
    color: navy;
    font-size: 0.82rem;
    margin-bottom: 0.35rem;
}

.insight-value {
    color: blue;
    font-size: 1.02rem;
    font-weight: 700;
    word-break: break-word;
}

.dashboard-alerts-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 0.2rem;
}

    .dashboard-alerts-head p {
        color: navy;
        font-size: 0.92rem;
    }

.smart-alert-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0.25rem 0 0;
    padding: 0;
}

.smart-alert {
    border-radius: 10px;
    border: 1px solid #d8eac0;
    background-color: #f5ffe6;
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-height: 90px;
}

.smart-alert-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1f2937;
}

.smart-alert-message {
    font-size: 0.85rem;
    color: #334155;
    line-height: 1.35;
}

.smart-alert-danger {
    border-color: #ef4444;
    background-color: #fff0f0;
}

.smart-alert-warning {
    border-color: #f59e0b;
    background-color: #fff7ed;
}

.smart-alert-info {
    border-color: #3b82f6;
    background-color: #eff6ff;
}

.smart-alert-empty {
    margin-top: 0.25rem;
    color: navy;
    font-size: 0.9rem;
}

.box-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.card2 {
    background-color: lightyellow;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s;
}

    .card2:hover {
        transform: translateY(-5px);
    }

.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;
}

.title2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: darkolivegreen;
    margin-bottom: 0.5rem;
}

.desc2 {
    font-size: 1.1rem;
    color: #6B7280;
    line-height: 1.5;
}

.action2 {
    display: inline-flex;
    align-items: center;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background-color: #16a738;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s;
}

    .action2:hover {
        background-color: #12862e;
    }

    .action2 span {
        margin-left: 0.25rem;
    }

.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;
}


.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;
    }


.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;
    inset: 0;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    background-color: lightyellow;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 2147482500;
    margin-top: 0;
}

#loader-int {
    margin-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: 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;
}

.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;
    }

.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;
}

/* Global page preloader */
#preloader-active {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    z-index: 2147483000;
    background-color: lightyellow;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
}

    #preloader-active .preloader,
    #preloader-active .preloader-inner {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }

    #preloader-active .preloader-circle {
        position: relative;
        width: 108px;
        height: 108px;
        border-radius: 50%;
        border: 3px solid rgba(22, 167, 56, 0.25);
        border-top-color: #16a738;
        background-color: #fff;
        box-shadow: 0 0 0 8px rgba(22, 167, 56, 0.08);
        display: flex;
        align-items: center;
        justify-content: center;
        animation: preloader-spin 1s linear infinite;
    }

    #preloader-active .preloader-img {
        width: 52px;
        height: 52px;
        display: flex;
        align-items: center;
        justify-content: center;
        animation: preloader-pulse 1.3s ease-in-out infinite;
    }

        #preloader-active .preloader-img img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

    #preloader-active .preloader-message {
        margin-top: 12px;
        font-size: 16px;
        font-weight: 600;
        color: navy;
    }

@keyframes preloader-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes preloader-pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.9);
    }
}
