*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: white;

    background-image:
        linear-gradient(
            rgba(0,0,0,.45),
            rgba(0,0,0,.45)
        ),
        url("/static/backgrounds/forest.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    height: 100vh;
    overflow: hidden;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(0,0,0,.45),
            rgba(0,0,0,.45)
        ),
        var(--next-background);

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    opacity: 0;
    z-index: -1;

    pointer-events: none;
    transition: opacity 3s ease-in-out;
}
body.background-fade::before {
    opacity: 1;
}
.overlay{

    height:100vh;
    padding:40px;

    display:flex;
    flex-direction:column;

}

/* =======================================
   HEADER
======================================= */

header{

    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    position: relative;
    margin-bottom:25px;

}

h1{

    font-size:48px;
    font-weight:300;
    letter-spacing:10px;

}

.datetime{

    text-align:right;

}

.time{

    font-size:64px;
    font-weight:bold;

}

.date{

    font-size:20px;
    color:#d5d5d5;

}

/* =======================================
   GRID
======================================= */

.dashboard{

    flex:1;

    display:grid;
    grid-template-columns:1fr 1fr;
    grid-template-rows:auto 1fr;
    gap:24px;

    min-height:0;

}

/* =======================================
   CARDS
======================================= */

.card{

    background:rgba(15,15,15,.30);

    backdrop-filter:blur(18px);

    border-radius:24px;

    padding:35px;

    min-height:0;

    box-shadow:
        0 18px 50px rgba(0,0,0,.35);

}

.card h2{

    color:#8fd3ff;

    font-size:20px;

    letter-spacing:2px;

    margin-bottom:28px;

}

/* =======================================
   TWO COLUMN LAYOUT
======================================= */

.split-layout{

    display:flex;

    justify-content:space-between;

    align-items:flex-start;

    gap:50px;

}

.left-column{

    flex:1;

}

.right-column{

    width:230px;

}

/* =======================================
   AIRCRAFT
======================================= */

.airline{

    font-size:20px;

    color:#8fd3ff;

    font-weight:600;

    margin-bottom:8px;

}

.callsign{

    font-size:42px;

    font-weight:bold;

    margin-bottom:10px;

}

.route{

    font-size:18px;

    color:#d6d6d6;

    margin-top:12px;

}

/* =======================================
   WEATHER
======================================= */

.temperature{

    font-size:72px;

    font-weight:bold;

    line-height:1;

}

.condition{

    font-size:24px;

    color:#d6d6d6;

    margin-top:14px;

}

/* =======================================
   STATS
======================================= */

.stat{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:18px;

    font-size:22px;

}

.label{

    color:#b8b8b8;

    font-size:17px;

}

.stat span:last-child{

    font-weight:bold;

    text-align:right;

}

/* =======================================
   COMING SOON
======================================= */

.coming{

    text-align:center;

    margin-top:70px;

    font-size:28px;

    color:#d5d5d5;

}

/* =======================================
   MOBILE
======================================= */

@media (max-width:1000px){

    .dashboard{

        grid-template-columns:1fr;

    }

    header{

        flex-direction:column;
        gap:20px;

    }

    .split-layout{

        flex-direction:column;

    }

    .right-column{

        width:100%;

        margin-top:25px;

    }

    .time{

        font-size:48px;
}
    }
    /* =======================================
   FORECAST
======================================= */

.forecast{

    display:flex;

    justify-content:space-between;

    gap:16px;

    margin-top:20px;

}

.forecast-day{

    flex:1;

    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;

    padding:16px 10px;

    background:rgba(255,255,255,.06);

    border:1px solid rgba(255,255,255,.10);

    border-radius:16px;

    backdrop-filter:blur(10px);

    transition:.25s ease;

}

.forecast-day:hover{

    background:rgba(255,255,255,.10);

    transform:translateY(-3px);

}

.forecast-name{

    font-size:15px;

    font-weight:600;

    letter-spacing:1px;

    color:#cfd8dc;

    margin-bottom:14px;

}

.forecast-icon{

    width:42px;

    height:42px;

    margin-bottom:16px;

}

.forecast-high{

    font-size:28px;

    font-weight:bold;

    line-height:1;

}

.forecast-low{

    margin-top:6px;

    font-size:18px;

    color:#b8b8b8;

}

    /* ======================================
RADAR
====================================== */

.radar-horizontal{

    position:absolute;

    left:0;
    right:0;
    top:50%;

    height:1px;

    background: rgba(143,211,255,.20);

}

.radar-vertical{

    position:absolute;

    top:0;
    bottom:0;
    left:50%;

    width:1px;

    background: rgba(143,211,255,.20);

}

.radar{

    position:relative;

    margin-top:27px;

    width:100%;
    height:180px;

    border-radius:18px;

    background:rgba(255,255,255,.06);

    border:1px solid rgba(255,255,255,.10);

    backdrop-filter:blur(10px);

    overflow:hidden;

}

.radar-compass{

    position:absolute;

    color:rgba(143,211,255,.55);

    font-size:13px;

    font-weight:600;

    letter-spacing:2px;

}

.north{

    top:10px;
    left:calc(50% + 1px);

    transform:translateX(-50%);

}

.south{

    bottom:10px;
    left:calc(50% + 1px);

    transform:translateX(-50%);

}

.east{

    right:12px;
    top:50%;

    transform:translateY(-50%);

}

.west{

    left:12px;
    top:50%;

    transform:translateY(-50%);

}

.radar-home{

    position:absolute;

    left:50%;
    top:50%;

    transform:translate(-50%, calc(-50% + 3px));

}

.home-dot{

    position:absolute;

    left:50%;
    top:50%;

    transform:translate(-50%,-50%);

    width:8px;
    height:8px;

    border-radius:50%;

    background:white;

    box-shadow:0 0 10px rgba(255,255,255,.45);

}

.home-label{

    position:absolute;

    left:calc(50% + 2px);

    top:calc(50% + 12px);

    transform:translateX(-50%);

    font-size:9px;

    letter-spacing:3px;

    color:rgba(255,255,255,.55);

}

.radar-plane{

    position:absolute;

    left:72%;
    top:38%;

    transform:translate(-50%,-50%);

}

.radar-plane img{

    width:34px;
    height:34px;

}

.radar-range{

    position:absolute;

    right:18px;
    bottom:16px;

    font-size:13px;

    color:rgba(255,255,255,.50);

    letter-spacing:1px;

}
/* =======================================
   WEATHER ALERT
======================================= */

.weather-alert {
    display: none;

    position: absolute;

    top: -40px;
    left: 0;
    width: 100%;
    box-sizing: border-box;

    padding: 10px 18px;

    align-items: center;
    gap: 14px;

    background: rgba(255, 193, 7, 0.18);

    border: 1px solid rgba(255, 193, 7, 0.50);
    border-radius: 14px;

    backdrop-filter: blur(18px);

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.25);

    z-index: 1000;
}

.weather-alert-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.weather-alert-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.weather-alert-title {
    font-size: 18px;
    font-weight: bold;
    color: #ffd54f;
}

.weather-alert-message {
    font-size: 14px;
    color: #eeeeee;
}

.weather-alert-description {
    margin-top: 4px;
    opacity: 0.85;
}

.weather-alert.watch {
    background: rgba(255, 193, 7, 0.18);
    border-color: rgba(255, 193, 7, 0.55);
}

.weather-alert.warning {
    background: rgba(220, 50, 50, 0.22);
    border-color: rgba(255, 80, 80, 0.65);
}

.weather-alert.warning .weather-alert-title {
    color: #ff6b6b;
}
/* =======================================
   SKY WATCH
======================================= */


.sky-watch {
    display: flex;
    flex-direction: column;

    gap: 18px;

    width: 100%;
}


/* Top section */

.sky-top {
    display: grid;

    grid-template-columns: 1fr 2fr;

    align-items: center;

    gap: 35px;

    width: 100%;
}


/* Moon */

.moon-section {
    display: flex;

    align-items: center;

    gap: 20px;

    min-width: 0;
}

.moon-icon {
    font-size: 58px;

    line-height: 1;

    flex-shrink: 0;
}

.moon-phase {
    font-size: 24px;

    font-weight: 600;

    white-space: nowrap;
}


/* Astronomy times */

.sky-times {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 20px;

    width: 100%;
}

.sky-time {
    display: flex;

    flex-direction: column;

    gap: 6px;

    min-width: 0;
}

.sky-time .label {
    font-size: 14px;

    color: rgba(255,255,255,.65);
}

.sky-time span:last-child {
    font-size: 19px;

    font-weight: 600;

    white-space: nowrap;
}


/* Next event */

.sky-event {
    width: 100%;

    box-sizing: border-box;

    padding: 14px 22px;

    border-radius: 16px;

    background: rgba(255,255,255,.05);

    border: 1px solid rgba(255,255,255,.10);

    display: flex;

    flex-direction: column;

    justify-content: center;
}

.sky-event-title {
    color: #8fd3ff;

    font-size: 15px;

    font-weight: bold;

    letter-spacing: 1.5px;

    margin-bottom: 5px;
}

.sky-event-name {
    font-size: 21px;

    font-weight: 600;
}

.sky-event-info {
    margin-top: 3px;

    font-size: 16px;

    color: rgba(255,255,255,.70);
}

.sky-times {
    flex: 2;
}

/* =======================================
   MOON PHASE
======================================= */

.moon-icon {
    position: relative;

    width: 58px;
    height: 58px;

    border-radius: 50%;

    background: #f4f1d0;

    box-shadow:
        0 0 18px rgba(244, 241, 208, .25);

    overflow: hidden;

    flex-shrink: 0;
}


/* Waning Crescent */

.moon-waning-crescent::after {
    content: "";

    position: absolute;

    width: 58px;
    height: 58px;

    border-radius: 50%;

    background: #101010;

    left: 20px;
    top: 0;
}


/* Waxing Crescent */

.moon-waxing-crescent::after {
    content: "";

    position: absolute;

    width: 58px;
    height: 58px;

    border-radius: 50%;

    background: #101010;

    left: -20px;
    top: 0;
}


/* First Quarter */

.moon-first-quarter::after,
.moon-last-quarter::after {
    content: "";

    position: absolute;

    top: 0;

    width: 29px;
    height: 58px;

    background: #101010;
}


/* Last Quarter */

.moon-last-quarter::after {
    right: 0;
}


/* First Quarter */

.moon-first-quarter::after {
    left: 0;
}


/* Full Moon */

.moon-full {
    background: #f4f1d0;
}


/* New Moon */

.moon-new {
    background: #101010;

    border: 1px solid rgba(255,255,255,.15);

    box-shadow: none;
}


/* Waxing Gibbous */

.moon-waxing-gibbous::after {
    content: "";

    position: absolute;

    width: 58px;
    height: 58px;

    border-radius: 50%;

    background: #101010;

    left: -12px;
    top: 0;
}


/* Waning Gibbous */

.moon-waning-gibbous::after {
    content: "";

    position: absolute;

    width: 58px;
    height: 58px;

    border-radius: 50%;

    background: #101010;

    left: 12px;
    top: 0;
}

/* =======================================
   CALENDAR
======================================= */

.calendar-events{

    display:flex;

    flex-direction:column;

    gap:16px;

}

.calendar-event{

    display:grid;

    grid-template-columns:90px 1fr;

    align-items:center;

    padding:12px 0;

    border-bottom:1px solid rgba(255,255,255,.10);

}

.calendar-event:last-child{

    border-bottom:none;

}

.calendar-event-time{

    color:#8fd3ff;

    font-size:16px;

    font-weight:600;

    white-space:nowrap;

}

.calendar-event-title{
    color:#ffffff;
    font-size:20px;
    line-height:1.3;
}
.calendar-view,
.chore-view {
    transition: opacity 0.8s ease;
}

.chore-view {
    display: none;
    opacity: 0;
}

.chore-view .calendar-events {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chore-view .calendar-event {
    display: flex;
    align-items: center;

    padding: 12px 0;

    border-bottom: 1px solid rgba(255,255,255,.10);
}

.chore-view .calendar-event:last-child {
    border-bottom: none;
}

.chore-view .calendar-event-title {
    color: #ffffff;
    font-size: 20px;
    line-height: 1.3;
}
