:root {
    --bg-deep: #050510;
    --glass-bg: rgb(255, 255, 255, 0.05);
    --glass-border: rgb(255, 255, 255, 0.05);
    --neon-cyan: #00f3ff;
    --neon-pink: #ff00ff;
    --warning-red: #ff3e3e
}

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

body {
    background: var(--bg-deep);
    color: white;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    height: 100vh;
    overflow: hidden;
    /* overflow-y: scroll; */
}

/* )_layout structure_ */
.dashboard-container {
    display: grid;
    grid-template-columns: 80px 1fr;
    height: 100vh;
}

/* _sidebar_ */
.sidebar {
    background-color: rgba(0, 0, 0, 0.5);
    border-right: 1px solid var(--glass-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
}
.logo{
    font-size: 2rem; margin-bottom: 40px;
}
.nav-icons .icon{
    font-size: 1.5rem;
    margin:25px 0;
    cursor: pointer;
    transition: 0.3s;
    filter: grayscale(1);
}

.nav-icons .icon:hover, .nav-icons .icons-active{
    filter: grayscale(0);
    transform:scale(1.2) ;
    text-shadow: 0 0 10px var(--neon-cyan);
}
/* 
_Main Viewport_ */
.main-container{
display: grid;
grid-template-rows: 80px 1fr 220px;
padding: 20px;
gap:20px ;

}
.top-bar{
    display:flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--glass-border);
}
.status-alert{
    background-color: rgba(0,225,0, 0.1);
    color: #00ff00;
    padding: 5px 15px;
    border-radius: 20px;
    border: 1px solid #00ff00;
}
.viewport{
    background: radial-gradient(circle at center,#050510);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--glass-border);
}

/* ANIMI */
/* Space sheep*/
.spaceship{
    position: absolute;
    font-size: 4rem;
    top: 40%;
    left: 45%;
    animation:float 4s ease-in-out infinite ;
    z-index: 10;
}
 @keyframes float{
    0%,100%{
        transform: translateY(0) rotate(0deg);
    }
    50%{transform: translateY(-20px) rotate(5deg);}
 }

 .planet{
    position: absolute;
    width: 150px;
    height: 150px;
    background: linear-gradient(45deg, #44107a,#ff1361);
    border-radius: 50%;
    top: 20%;
    right: 15%;
    box-shadow:inset-20px-20px 50x rgba(0, 0, 0, 0.5),0 0 30px rgba(0,225,0, 0.1);
    overflow: hidden;
    animation: rotate-planet 20s linear infinite;
 }

 @keyframes rotate-planet{
    from{ transform: rotate(0deg);}
    to{transform: rotate(360deg);}
 }
 .star{
    position:absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle 2s infinite ease-in-out;
 }
 .s1{
    width: 3px; height: 3px;top: 20%;left: 30%;animation-delay: 0s;
 }
.s2{ width: 2px; height: 2px;top: 60px;left: 70%;animation-delay: 1s;}
.s3{ width: 4px; height: 4px;top: 80px;left: 10%;animation-delay: 0.5s;}

@keyframes twinkle{
    0%,100%{opacity:0.2;transform: scale(1);}
    50%{opacity: 1;transform: scale(1.2);}
    
}
.stats-grid{
    display: grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
}
.stat-card{
    background: var(--glass-bg);
    backdrop-filter:blur(10px);
    border:2px solid var(--glass-border);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
}
.guage-container{
    background: rgba(225, 255,255,0.1);
    height: 10px;
    border-radius: 5px;
    margin: 15px 0;
    overflow: hidden;
}
.guage-fill{
    height:100%;
    width:0;
    animation:fill-up 2s infinite alternate;
}

.oxygen {
    background: var(--neon-cyan);
    width: 98%;
}

.fuel {
    background: var(--neon-pink);
    width: 64%;
}
@keyframes fill-up{
    from{width:0;}
}
.pulse-warning{
    border: 1px solid var(--warning-red);
    animation: pulse 1.5s infinite alternate;
}
@keyframes pulse{
    from{
        box-shadow: 0 0 5px var(--warning-red)
    }
    to{box-shadow:0 0 20px var(--warning-red)};
}
.temp-readout{
    font-size: 2rem;
    color: var(--warning-red);
    font-weight: bold;
    margin: 10px o;
}
 @media(max-width:760px){
    .dashboard-container{
        grid-template-columns: 2fr;
    }
    .sidebar{
        display: none;
    }
    .stats-grid{
        grid-template-columns:1fr;
    }
    .main-content{overflow-y:auto}
 }