:root {
    --bg: #07111f;
    --bg-soft: #0b1728;
    --panel: rgba(14, 28, 47, 0.88);
    --panel-light: rgba(20, 39, 63, 0.9);

    --border: rgba(255, 255, 255, 0.08);

    --cyan: #4ddcff;
    --blue: #4d8dff;
    --green: #52e0a1;
    --purple: #9b7cff;
    --orange: #ffad5c;
    --yellow: #f5d76e;
    --red: #ff6f7d;

    --text: #f3f7fb;
    --muted: #8ea1b7;

    --shadow:
        0 25px 70px rgba(0, 0, 0, 0.28);

    --radius: 20px;
}


/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    min-height: 100vh;

    background:
        radial-gradient(
            circle at 15% 10%,
            rgba(77, 220, 255, 0.09),
            transparent 28%
        ),
        radial-gradient(
            circle at 85% 25%,
            rgba(77, 141, 255, 0.08),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #050c16,
            #07111f 50%,
            #091728
        );

    color: var(--text);

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    line-height: 1.6;
}


/* =========================
   SCROLLBAR
========================= */

::-webkit-scrollbar {
    width: 9px;
}

::-webkit-scrollbar-track {
    background: #050c16;
}

::-webkit-scrollbar-thumb {
    background: #213852;
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--cyan);
}


/* =========================
   TOPBAR
========================= */

.topbar {
    position: sticky;
    top: 0;
    z-index: 100;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 18px 5%;

    background: rgba(5, 12, 22, 0.82);
    backdrop-filter: blur(18px);

    border-bottom: 1px solid var(--border);
}


.brand {
    display: flex;
    align-items: center;
    gap: 13px;
}


.brand-icon {
    width: 48px;
    height: 48px;

    display: grid;
    place-items: center;

    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            rgba(77, 220, 255, 0.18),
            rgba(77, 141, 255, 0.16)
        );

    border: 1px solid rgba(77, 220, 255, 0.2);

    font-size: 23px;
}


.brand h1 {
    font-size: 17px;
    letter-spacing: -0.4px;
}


.brand p {
    color: var(--muted);
    font-size: 12px;
}


.system-status {
    display: flex;
    align-items: center;
    gap: 8px;

    color: var(--muted);
    font-size: 12px;
}


.status-dot {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: var(--green);

    box-shadow:
        0 0 14px rgba(82, 224, 161, 0.8);

    animation: pulse 2s infinite;
}


/* =========================
   MAIN
========================= */

.app-container {
    width: min(1450px, 92%);
    margin: auto;
    padding: 45px 0 80px;
}


.panel {
    margin-top: 25px;
    padding: 28px;

    background:
        linear-gradient(
            145deg,
            rgba(16, 32, 52, 0.92),
            rgba(10, 23, 39, 0.9)
        );

    border: 1px solid var(--border);

    border-radius: var(--radius);

    box-shadow: var(--shadow);

    backdrop-filter: blur(15px);
}


/* =========================
   HERO
========================= */

.hero {
    position: relative;
    overflow: hidden;

    min-height: 390px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 55px;

    border-radius: 30px;

    background:
        radial-gradient(
            circle at 80% 50%,
            rgba(77, 220, 255, 0.13),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #0d2036,
            #081523
        );

    border: 1px solid var(--border);

    box-shadow: var(--shadow);
}


.hero-content {
    position: relative;
    z-index: 3;

    max-width: 720px;
}


.eyebrow,
.section-label {
    display: block;

    color: var(--cyan);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 2px;
}


.hero h2 {
    margin: 13px 0 17px;

    font-size: clamp(42px, 6vw, 78px);

    line-height: 0.98;

    letter-spacing: -4px;
}


.hero h2 span {
    display: block;

    background:
        linear-gradient(
            90deg,
            var(--cyan),
            #8da8ff
        );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}


.hero p {
    max-width: 650px;

    color: var(--muted);

    font-size: 16px;
}


/* =========================
   HERO VISUAL
========================= */

.hero-visual {
    position: absolute;

    right: 6%;
    top: 50%;

    width: 310px;
    height: 310px;

    transform: translateY(-50%);
}


.planet {
    position: absolute;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    width: 125px;
    height: 125px;

    display: grid;
    place-items: center;

    font-size: 66px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle at 35% 30%,
            rgba(255, 255, 255, 0.13),
            transparent 45%
        ),
        rgba(15, 35, 58, 0.9);

    border: 1px solid rgba(77, 220, 255, 0.22);

    box-shadow:
        0 0 70px rgba(77, 220, 255, 0.13);
}


.orbit {
    position: absolute;

    top: 50%;
    left: 50%;

    border: 1px solid rgba(77, 220, 255, 0.15);

    border-radius: 50%;

    transform:
        translate(-50%, -50%)
        rotate(-20deg);
}


.orbit-one {
    width: 245px;
    height: 115px;
}


.orbit-two {
    width: 300px;
    height: 170px;
}


.floating-cloud {
    position: absolute;

    font-size: 30px;

    opacity: 0.65;

    animation: float 5s ease-in-out infinite;
}


.cloud-one {
    top: 25px;
    left: 15px;
}


.cloud-two {
    right: 0;
    bottom: 30px;

    animation-delay: 1.4s;
}


/* =========================
   SECTION HEADING
========================= */

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 25px;
}


.section-heading h3 {
    margin-top: 4px;

    font-size: 22px;

    letter-spacing: -0.6px;
}


.api-badge {
    padding: 8px 12px;

    border-radius: 999px;

    color: var(--cyan);

    background: rgba(77, 220, 255, 0.08);

    border: 1px solid rgba(77, 220, 255, 0.14);

    font-size: 11px;
    font-weight: 700;
}


/* =========================
   CONTROLS
========================= */

.controls-grid {
    display: grid;

    grid-template-columns:
        1.6fr
        1fr
        1fr
        1fr;

    gap: 17px;
}


.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}


.input-group label {
    color: #d8e5f3;

    font-size: 12px;
    font-weight: 700;
}


.input-group small {
    color: var(--muted);

    font-size: 10px;
}


.input-group input,
.input-group select,
.chart-control select {
    width: 100%;

    padding: 13px 14px;

    border-radius: 12px;

    color: var(--text);

    background: rgba(3, 10, 18, 0.65);

    border: 1px solid rgba(255, 255, 255, 0.08);

    outline: none;

    font: inherit;

    transition: 0.2s ease;
}


.input-group input:focus,
.input-group select:focus,
.chart-control select:focus {
    border-color: rgba(77, 220, 255, 0.5);

    box-shadow:
        0 0 0 3px rgba(77, 220, 255, 0.08);
}


.input-group select option,
.chart-control select option {
    background: #0b1728;
}


.control-actions {
    display: flex;

    gap: 12px;

    margin-top: 23px;
}


button {
    border: none;

    font: inherit;

    cursor: pointer;
}


.primary-btn,
.secondary-btn {
    padding: 12px 18px;

    border-radius: 11px;

    font-size: 12px;
    font-weight: 800;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


.primary-btn {
    color: #04101a;

    background:
        linear-gradient(
            135deg,
            var(--cyan),
            #78a9ff
        );

    box-shadow:
        0 10px 25px rgba(77, 220, 255, 0.12);
}


.primary-btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 15px 30px rgba(77, 220, 255, 0.2);
}


.secondary-btn {
    color: #dce8f4;

    background: rgba(255, 255, 255, 0.045);

    border: 1px solid var(--border);
}


.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}


/* =========================
   MESSAGE
========================= */

.message-box {
    display: flex;
    align-items: center;

    gap: 10px;

    margin-top: 20px;

    padding: 14px 17px;

    border-radius: 13px;

    background: rgba(77, 220, 255, 0.06);

    border: 1px solid rgba(77, 220, 255, 0.12);

    color: #dbefff;

    font-size: 13px;
}


.message-box.error {
    background: rgba(255, 111, 125, 0.07);

    border-color: rgba(255, 111, 125, 0.2);
}


.message-box.success {
    background: rgba(82, 224, 161, 0.07);

    border-color: rgba(82, 224, 161, 0.2);
}


.hidden {
    display: none !important;
}


/* =========================
   LOCATION
========================= */

.location-panel {
    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 30px;
}


.location-main {
    display: flex;
    align-items: center;

    gap: 15px;
}


.location-icon {
    width: 55px;
    height: 55px;

    display: grid;
    place-items: center;

    border-radius: 16px;

    background: rgba(77, 220, 255, 0.08);

    font-size: 24px;
}


.location-main h3 {
    font-size: 25px;

    letter-spacing: -0.7px;
}


.location-main p {
    color: var(--muted);

    font-size: 12px;
}


.location-meta {
    display: flex;

    gap: 30px;
}


.location-meta div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}


.location-meta span {
    color: var(--muted);

    font-size: 10px;
}


.location-meta strong {
    font-size: 14px;
}


/* =========================
   STATISTICS
========================= */

.stats-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 18px;

    margin-top: 25px;
}


.stat-card {
    display: flex;
    align-items: center;

    gap: 15px;

    padding: 21px;

    background:
        linear-gradient(
            145deg,
            rgba(17, 35, 58, 0.92),
            rgba(9, 21, 36, 0.9)
        );

    border: 1px solid var(--border);

    border-radius: 18px;

    transition: 0.25s ease;
}


.stat-card:hover {
    transform: translateY(-4px);

    border-color: rgba(77, 220, 255, 0.17);
}


.stat-icon {
    width: 48px;
    height: 48px;

    display: grid;
    place-items: center;

    border-radius: 14px;

    font-size: 21px;
}


.stat-icon.temperature {
    background: rgba(255, 173, 92, 0.1);
}


.stat-icon.humidity {
    background: rgba(77, 220, 255, 0.1);
}


.stat-icon.pressure {
    background: rgba(155, 124, 255, 0.1);
}


.stat-icon.rainfall {
    background: rgba(82, 224, 161, 0.1);
}


.stat-card span {
    display: block;

    color: var(--muted);

    font-size: 11px;
}


.stat-card strong {
    display: block;

    margin-top: 3px;

    font-size: 23px;
}


/* =========================
   EXTREMES
========================= */

.extremes-grid {
    display: grid;

    grid-template-columns: repeat(6, 1fr);

    gap: 12px;
}


.extreme-card {
    padding: 17px;

    border-radius: 15px;

    background: rgba(255, 255, 255, 0.025);

    border: 1px solid var(--border);
}


.extreme-card span {
    display: block;

    color: var(--muted);

    font-size: 10px;
}


.extreme-card strong {
    display: block;

    margin-top: 7px;

    font-size: 19px;
}


/* =========================
   CHART
========================= */

.chart-control {
    display: flex;
    align-items: center;

    gap: 10px;
}


.chart-control label {
    color: var(--muted);

    font-size: 11px;
}


.chart-control select {
    width: 170px;

    padding: 9px 11px;
}


.chart-wrapper {
    position: relative;

    height: 390px;

    padding: 10px 0;
}


/* =========================
   SUMMARY
========================= */

.summary-content {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 14px;
}


.summary-item {
    padding: 17px;

    border-radius: 15px;

    background: rgba(255, 255, 255, 0.025);

    border: 1px solid var(--border);
}


.summary-item strong {
    display: block;

    margin-bottom: 5px;

    color: var(--cyan);

    font-size: 12px;
}


.summary-item p {
    color: #c1cfdd;

    font-size: 13px;
}


/* =========================
   TABLE
========================= */

.table-container {
    overflow-x: auto;

    border: 1px solid var(--border);

    border-radius: 14px;
}


table {
    width: 100%;

    border-collapse: collapse;

    min-width: 850px;
}


th,
td {
    padding: 13px 15px;

    text-align: left;

    border-bottom: 1px solid var(--border);

    font-size: 12px;
}


th {
    color: var(--cyan);

    background: rgba(77, 220, 255, 0.035);

    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: 1px;
}


td {
    color: #c7d4e1;
}


tbody tr:hover {
    background: rgba(255, 255, 255, 0.025);
}


tbody tr:last-child td {
    border-bottom: none;
}


/* =========================
   WORKFLOW
========================= */

.info-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 18px;

    margin-top: 25px;
}


.info-card {
    position: relative;

    overflow: hidden;

    padding: 25px;

    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            rgba(15, 31, 51, 0.9),
            rgba(8, 19, 33, 0.88)
        );

    border: 1px solid var(--border);
}


.info-number {
    display: block;

    margin-bottom: 20px;

    color: rgba(77, 220, 255, 0.55);

    font-size: 12px;

    font-weight: 900;

    letter-spacing: 2px;
}


.info-card h3 {
    margin-bottom: 7px;

    font-size: 19px;
}


.info-card p {
    color: var(--muted);

    font-size: 12px;
}


/* =========================
   FOOTER
========================= */

.footer {
    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 20px;

    padding: 30px 5%;

    border-top: 1px solid var(--border);

    background: rgba(4, 10, 17, 0.7);
}


.footer strong {
    font-size: 13px;
}


.footer p,
.footer span,
.footer a {
    color: var(--muted);

    font-size: 11px;
}


.footer a {
    color: var(--cyan);

    text-decoration: none;
}


.footer a:hover {
    text-decoration: underline;
}


/* =========================
   ANIMATIONS
========================= */

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.45;
        transform: scale(0.75);
    }
}


@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1100px) {

    .controls-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .extremes-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-visual {
        opacity: 0.35;
    }

}


@media (max-width: 800px) {

    .topbar {
        padding: 15px 4%;
    }

    .system-status {
        display: none;
    }

    .app-container {
        width: 94%;
        padding-top: 25px;
    }

    .hero {
        min-height: 450px;

        padding: 35px 25px;
    }

    .hero h2 {
        font-size: 47px;

        letter-spacing: -2.5px;
    }

    .hero-visual {
        right: -40px;
        opacity: 0.25;
    }

    .location-panel {
        align-items: flex-start;

        flex-direction: column;
    }

    .location-meta {
        width: 100%;

        justify-content: space-between;
    }

    .summary-content {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 600px) {

    .brand h1 {
        font-size: 15px;
    }

    .brand p {
        font-size: 10px;
    }

    .brand-icon {
        width: 42px;
        height: 42px;
    }

    .hero {
        min-height: 500px;
    }

    .hero h2 {
        font-size: 39px;
    }

    .hero p {
        font-size: 14px;
    }

    .controls-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .extremes-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-heading {
        align-items: flex-start;

        flex-direction: column;
    }

    .chart-control {
        width: 100%;
    }

    .chart-control select {
        width: 100%;
    }

    .chart-wrapper {
        height: 300px;
    }

    .control-actions {
        flex-direction: column;
    }

    .primary-btn,
    .secondary-btn {
        width: 100%;
    }

    .location-meta {
        gap: 15px;
    }

    .footer {
        flex-direction: column;

        align-items: flex-start;
    }

}


@media (max-width: 420px) {

    .app-container {
        width: 92%;
    }

    .panel {
        padding: 20px;
    }

    .hero {
        padding: 28px 20px;
    }

    .hero h2 {
        font-size: 34px;
    }

    .extremes-grid {
        grid-template-columns: 1fr;
    }

    .location-meta {
        flex-wrap: wrap;
    }

}