html,
body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", "Prompt", sans-serif !important;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: url('/pttlng/images/1920_bg.jpg') no-repeat center center fixed;
    background-size: cover;
}

.page-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Header Section */
.header-section {
    background-color: white;
    width: auto;
    height: 135px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo img {
    height: 120px;
    margin-left: 150px;
    width: auto;
}

.date-time {
    font-size: 50px;
    color: #0077be;
    margin-left: auto;
    margin-right: 20px;
}

/* Body Section */
.body-section {
    flex: 1;
    min-height: 40%;
    overflow-y: visible;
    padding: 0px;
    position: relative;
    margin-bottom: 0;
}

.energy-cards {
    position: relative;
    width: 100%;
}

.card {
    position: absolute;
    background: rgba(252, 252, 252, 0.9);
    border-radius: 15px;
    padding: 10px;
    box-shadow: 12px 10px 10px rgba(82, 81, 81, 0.767);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    border: 0px solid transparent;
    z-index: 2;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.card.solar {
    top: 75px;
    left: 130px;
    width: 410px;
    height: 140px;
    border-width: 2px;
    border-color: #ffffff;
}

.card.wind {
    top: 300px;
    left: 130px;
    width: 410px;
    height: 140px;
    border-width: 2px;
    border-color: #ffffff;
}

.card.grid {
    top: 520px;
    left: 130px;
    width: 410px;
    height: 140px;
    border-width: 2px;
    border-color: #ffffff;
}

.card-icon {
    width: 100px;
    height: auto;
    margin-right: 0px;
    display: flex;
    justify-content: center;
}

.card-icon img {
    width: 100px;
    height: auto;
    margin-left: 15px;
}

.card-grid-icon img {
    width: 150px;
    height: auto;
    margin-left: 2px;
}

.card-content {
    flex-grow: 1;
}

.card-solar-title {
    font-size: 36px;
    color: rgb(255, 255, 255);
    margin-left: 60px;
    margin-top: 30px;
    margin-bottom: 2px;
}

.card-wind-title {
    font-size: 36px;
    color: rgb(255, 255, 255);
    margin-left: 40px;
    margin-top: 30px;
    margin-bottom: 2px;
}

.card-grid-title {
    font-size: 36px;
    color: rgb(255, 255, 255);
    margin-left: 20px;
    margin-top: 30px;
    margin-bottom: 2px;
}

.card-value {
    text-align: right;
    font-size: 48px;
    font-weight: bold;
    color: rgb(253, 255, 254);
    margin-right: 10px;
    margin-top: -10px;
    text-shadow: -2px -2px 0 rgba(0, 0, 0, 0.8),
        2px -2px 0 rgb(12, 12, 12),
        -2px 2px 0 rgba(0, 0, 0, 0.8),
        2px 2px 0 rgba(0, 0, 0, 0.8);
}

.card-unit-bottom-right {
    position: absolute;
    bottom: 5px;
    right: 25px;
    font-size: 25px;
    color: #f7f5f5;
    font-weight: normal;
}

.total-demand {
    background: rgba(255, 255, 255, 0.555);
    border-radius: 20px;
    padding: 0px;
    text-align: center;
    margin: 10px 0;
    border-color: #f7f5f5;
    box-shadow: 12px 10px 10px rgba(82, 81, 81, 0.767);
    position: absolute;
    top: 60px;
    left: 750px;
    width: 1010px;
    height: 220px;
    z-index: 2;
    cursor: pointer;
}

.load-card-icon img {
    width: 180px;
    height: auto;
    margin-right: 650px;
    margin-left: 20px;
    margin-bottom: 40px;
    margin-top: -50px;
}

.load-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 10px 8px 15px rgba(0, 0, 0, 0.2);
}

.total-demand h2 {
    color: #0077be;
    font-size: 28px;
    margin-left: 570px;
    margin-bottom: 5px;

}

.total-value {
    font-size: 90px;
    font-weight: bold;
    color: #0077be;
    position: relative;
    margin-left: 300px;
    margin-top: -170px;
    padding: 0px 10px;
}

.unit-bottom-right {
    position: absolute;
    right: 40px;
    font-size: 30px;
    color: #0077be;
    font-weight: normal;
    margin-top: -120px;
}

/* Energy Paths */
.energy-path {
    fill: none;
    stroke-width: 5;
    stroke-dasharray: 5, 8;
    stroke-linecap: round;
    filter: url(#glow);
    opacity: 1;
    animation: flowAnimation var(--flow-duration, 4s) linear infinite;
    /* Define Start at 4s */
}

.energy-path.solar {
    stroke: url(#solarGradient);
    marker-end: url(#arrow-solar);
    animation: flowAnimation var(--flow-duration, 4s) linear infinite,
}

.energy-path.wind {
    stroke: url(#windGradient);
    marker-end: url(#arrow-wind);
    animation: flowAnimation var(--flow-duration, 4s) linear infinite,
}

.energy-path.grid {
    stroke: url(#gridGradient);
    marker-end: url(#arrow-grid);
    animation: flowAnimation var(--flow-duration, 4s) linear infinite,
}

@keyframes flowAnimation {
    0% {
        stroke-dashoffset: 240;
        opacity: 0.5;
    }

    50% {
        opacity: 0.6;
    }

    100% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

.energy-dot {
    fill: #f8f7f7;
    stroke-width: 4;
    r: 8;
    stop-color: #fafafae8;
    filter: url(#glow);
    opacity: 1;
    animation: dotPulse 4s ease-in-out infinite;
}

.solar-dot {
    stroke: #526fe9;
    r: 6;
    stroke-width: 10;
    animation-delay: 4s;
}

.wind-dot {
    stroke: #3cc7ff;
    r: 6;
    stroke-width: 10;
    animation-delay: 4s;
}

.grid-dot {
    stroke: #53dde7;
    r: 6;
    stroke-width: 10;
    animation-delay: 4s;
}

@keyframes dotPulse {
    0% {
        opacity: 0.2;
    }

    50% {
        opacity: 0.6;
    }

    100% {
        opacity: 1;
    }
}

/* Chart Section */
.chart-wrapper {
    width: 100%;
    height: 500px;
    padding: 20px 0px;
    display: flex;
    justify-content: center;
    font-family: 'Poppins', 'Prompt', sans-serif;
    background: rgba(255, 255, 255, 0);
}

.chart-container {
    width: 100%;
    height: auto;
    padding: 15px;
    background: rgba(255, 255, 255, 0);
    border-radius: 20px;
    box-shadow: 0 0px 0px rgba(0, 0, 0, 0);
    font-family: 'Poppins', 'Prompt', sans-serif;
}



/* Footer Wrapper */
.footer-wrapper {
    margin-top: 10px;
    width: 100%;
    position: center;
}

/* Footer Section */
.footer-section {
    height: 120px;
    background: linear-gradient(180deg, #1a191900 0%, #e6f7ff00 100%);
    position: relative;
    padding: 8px 8px;
    display: flex;
    align-items: center;
    justify-content: left;
    bottom: 0;
    width: 100%;
    margin-top: -95px;
}

.footer-content {
    text-align: left;
    color: #080808;
    margin-left: 110px;
    font-size: 20px;
    font-family: 'Poppins';
    line-height: 1.5em;
    letter-spacing: 0.2px;
    max-width: 95%;
    position: relative;
    z-index: 1;
    padding: 8px 16px;
    padding-bottom: 20px;
}

.footer-content h2 {
    font-size: 30px;
    font-family: 'Poppins', 'Prompt', sans-serif;
    letter-spacing: 0.2px;
    line-height: 1em;
    color: #0e428f;
    margin-left: 0px;
    margin-bottom: 10px;
}