textarea {
    color: black
}

body {
    padding-top: 50px;
    padding-bottom: 20px;
}

/* Set padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/* Set width on the form input elements since they're 100% wide by default */
input,
select {
    max-width: 240px;
}

:root {
    --bg: #050816;
    --bg-alt: #0b1020;
    --primary: #3ba9ff;
    --accent: #ffc857;
    --text: #f5f7fa;
    --muted: #9ca3af;
    --danger: #ff4b6a;
    --radius: 14px;
    --shadow-soft: 0 18px 45px rgba(0,0,0,0.45);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    background: radial-gradient(circle at top, #1b2a4a 0, #050816 55%);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: linear-gradient(to right, rgba(5,8,22,0.96), rgba(5,8,22,0.85));
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.nav {
    max-width: 1120px;
    margin: 0 auto;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 20%, #fff 0, #3ba9ff 40%, #050816 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 18px rgba(59,169,255,0.6);
    font-size: 18px;
    font-weight: 700;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

    .brand-text span:first-child {
        font-weight: 600;
        letter-spacing: 0.04em;
        font-size: 15px;
    }

    .brand-text span:last-child {
        font-size: 11px;
        color: var(--muted);
        text-transform: uppercase;
        letter-spacing: 0.16em;
    }

.nav-links {
    display: flex;
    gap: 18px;
    font-size: 14px;
}

    .nav-links a {
        color: var(--muted);
        text-decoration: none;
        padding: 6px 10px;
        border-radius: 999px;
        transition: all 0.18s ease;
    }

        .nav-links a:hover {
            color: var(--text);
            background: rgba(255,255,255,0.04);
        }

.nav-cta {
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid rgba(59,169,255,0.7);
    color: var(--primary);
    font-size: 13px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(to right, rgba(59,169,255,0.12), rgba(5,8,22,0.2));
    box-shadow: 0 0 18px rgba(59,169,255,0.35);
}

main {
    flex: 1;
}

.hero {
    max-width: 1120px;
    margin: 26px auto 0;
    padding: 0 18px 40px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 26px;
    align-items: stretch;
}

.hero-left {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(148,163,184,0.35);
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.pill-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 10px rgba(34,197,94,0.9);
}

.hero-title {
    font-size: clamp(30px, 4vw, 38px);
    font-weight: 700;
    line-height: 1.1;
}

    .hero-title span {
        background: linear-gradient(to right, #3ba9ff, #ffc857);
        -webkit-background-clip: text;
        color: transparent;
    }

.hero-subtitle {
    color: var(--muted);
    font-size: 14px;
    max-width: 480px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: var(--muted);
}

    .hero-meta span {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 4px 9px;
        border-radius: 999px;
        background: rgba(15,23,42,0.9);
        border: 1px solid rgba(148,163,184,0.25);
    }

        .hero-meta span strong {
            color: var(--text);
            font-weight: 500;
        }

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.btn-primary,
.btn-ghost {
    border-radius: 999px;
    padding: 9px 16px;
    font-size: 13px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #3ba9ff, #2563eb);
    color: #0b1020;
    font-weight: 600;
    box-shadow: 0 14px 30px rgba(37,99,235,0.45);
}

    .btn-primary:hover {
        transform: translateY(-1px);
        box-shadow: 0 18px 40px rgba(37,99,235,0.6);
    }

.btn-ghost {
    background: rgba(15,23,42,0.9);
    color: var(--muted);
    border: 1px solid rgba(148,163,184,0.4);
}

    .btn-ghost:hover {
        background: rgba(15,23,42,1);
        color: var(--text);
    }

.hero-right {
    position: relative;
}

.card-current {
    position: relative;
    height: 100%;
    min-height: 260px;
    border-radius: 22px;
    background: radial-gradient(circle at top, #1d2a4a 0, #050816 55%);
    border: 1px solid rgba(148,163,184,0.35);
    box-shadow: var(--shadow-soft);
    padding: 18px 18px 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    .card-current::before {
        content: "";
        position: absolute;
        inset: -40%;
        background: radial-gradient(circle at 10% 0, rgba(59,169,255,0.18) 0, transparent 55%), radial-gradient(circle at 90% 0, rgba(255,200,87,0.18) 0, transparent 55%);
        opacity: 0.9;
        pointer-events: none;
    }

.card-current-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.card-header-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-location {
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .card-location span {
        font-size: 11px;
        padding: 3px 7px;
        border-radius: 999px;
        background: rgba(15,23,42,0.9);
        border: 1px solid rgba(148,163,184,0.4);
        color: var(--muted);
    }

.card-updated {
    font-size: 11px;
    color: var(--muted);
}

.card-badge {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(59,169,255,0.6);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.card-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.temp-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.temp-value {
    font-size: 44px;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.temp-feels {
    font-size: 12px;
    color: var(--muted);
}

.temp-desc {
    font-size: 13px;
    color: var(--accent);
    font-weight: 500;
    text-transform: capitalize;
}

.temp-range {
    font-size: 12px;
    color: var(--muted);
}

.icon-weather {
    width: 80px;
    height: 80px;
    border-radius: 26px;
    background: radial-gradient(circle at 30% 20%, #fff 0, #ffc857 40%, #f97316 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 18px 40px rgba(248,181,0,0.55);
    font-size: 34px;
}

.card-footer {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 6px;
}

.metric {
    padding: 8px 9px;
    border-radius: 12px;
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(148,163,184,0.35);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.metric-label {
    font-size: 11px;
    color: var(--muted);
}

.metric-value {
    font-size: 13px;
    font-weight: 500;
}

.metric-trend {
    font-size: 11px;
    color: var(--primary);
}

.section {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 18px 32px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
    gap: 10px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
}

.section-subtitle {
    font-size: 12px;
    color: var(--muted);
}

.forecast-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.forecast-card {
    min-width: 90px;
    border-radius: 14px;
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(148,163,184,0.35);
    padding: 8px 9px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 11px;
    flex-shrink: 0;
}

.forecast-time {
    color: var(--muted);
}

.forecast-icon {
    font-size: 20px;
}

.forecast-temp {
    font-size: 13px;
    font-weight: 500;
}

.forecast-extra {
    font-size: 11px;
    color: var(--muted);
}

.grid-two {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 16px;
}

.panel {
    border-radius: 18px;
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(148,163,184,0.35);
    padding: 14px 14px 12px;
    box-shadow: 0 14px 35px rgba(0,0,0,0.45);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
    gap: 10px;
}

.panel-title {
    font-size: 14px;
    font-weight: 500;
}

.panel-tag {
    font-size: 11px;
    color: var(--muted);
    padding: 3px 7px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.35);
}

.panel-body {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
}

    .panel-body ul {
        list-style: none;
        margin-top: 6px;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px 10px;
    }

    .panel-body li span {
        color: var(--text);
        font-weight: 500;
    }

footer {
    border-top: 1px solid rgba(148,163,184,0.25);
    margin-top: 10px;
    background: #050816;
}

.footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 12px 18px 16px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    font-size: 11px;
    color: var(--muted);
}

    .footer-inner a {
        color: var(--primary);
        text-decoration: none;
    }

        .footer-inner a:hover {
            text-decoration: underline;
        }

@media (max-width: 880px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-right {
        order: -1;
    }

    .card-current {
        min-height: 230px;
    }

    .grid-two {
        grid-template-columns: minmax(0, 1fr);
    }

    .nav-links {
        display: none;
    }
}

@media (max-width: 520px) {
    .card-footer {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .panel-body ul {
        grid-template-columns: minmax(0, 1fr);
    }
}
