/* =========================
   RESET
========================= */

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

:root{
    --bg:#050816;
    --card:#0d1324;
    --card2:#121a2f;

    --cyan:#00eaff;
    --blue:#00aaff;
    --green:#00ff9d;
    --orange:#ffb100;
    --red:#ff4d67;

    --text:#ffffff;
    --textSoft:#91a1bd;

    --border:rgba(255,255,255,.08);

    --shadow:
    0 0 30px rgba(0,234,255,.08);

    --radius:26px;
}

/* =========================
   BODY
========================= */

body{
    background:
    radial-gradient(circle at top left,
    rgba(0,170,255,.08),
    transparent 30%),

    radial-gradient(circle at bottom right,
    rgba(0,255,255,.05),
    transparent 30%),

    var(--bg);

    color:var(--text);
    font-family:Inter,Arial,sans-serif;

    min-height:100vh;
    overflow-x:hidden;
}

body::before{
    content:'';

    position:fixed;
    left:-200px;
    top:-200px;

    width:500px;
    height:500px;

    background:
    radial-gradient(
    circle,
    rgba(0,255,255,.08),
    transparent 70%
    );

    pointer-events:none;
}

body::after{
    content:'';

    position:fixed;
    right:-200px;
    bottom:-200px;

    width:500px;
    height:500px;

    background:
    radial-gradient(
    circle,
    rgba(0,140,255,.08),
    transparent 70%
    );

    pointer-events:none;
}

/* =========================
   LAYOUT
========================= */

.panelWrapper{
    display:flex;
    min-height:100vh;
}

.mainContent{
    flex:1;
    padding:40px 50px;
}

/* =========================
   SIDEBAR
========================= */

.sidebar{
    width:260px;
    min-width:260px;

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

    backdrop-filter:blur(20px);

    border-right:
    1px solid var(--border);

    padding:26px;

    position:sticky;
    top:0;

    height:100vh;
}

.logo{
    display:flex;
    align-items:center;
    gap:12px;

    font-size:22px;
    font-weight:800;

    margin-bottom:40px;
}

.sidebar nav{
    display:flex;
    flex-direction:column;
    gap:14px;
}

.sidebar nav a{
    text-decoration:none;
    color:#dbe8ff;

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

    border:
    1px solid transparent;

    padding:18px 20px;

    border-radius:20px;

    transition:.3s ease;

    display:flex;
    align-items:center;
    gap:12px;

    font-size:17px;
}

.sidebar nav a:hover{
    transform:translateX(6px);

    background:
    rgba(0,234,255,.08);

    border-color:
    rgba(0,234,255,.2);

    box-shadow:var(--shadow);
}

.sidebar nav a.active{
    background:
    linear-gradient(
    135deg,
    rgba(0,234,255,.12),
    rgba(0,170,255,.06)
    );

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

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

    position:relative;
}

.sidebar nav a.active::before{
    content:'';

    position:absolute;
    left:0;
    top:15%;

    width:4px;
    height:70%;

    background:var(--cyan);

    border-radius:999px;
}

/* =========================
   TOPBAR
========================= */

.topbar{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;

    gap:20px;

    margin-bottom:35px;
}

.welcomeBox h2{
    font-size:32px;
    font-weight:800;
}

.welcomeBox p{
    margin-top:10px;
    color:var(--textSoft);
}

.topActions{
    display:flex;
    gap:14px;
    align-items:center;
}

.topBtn{
    background:
    rgba(255,255,255,.04);

    border:
    1px solid var(--border);

    border-radius:18px;

    padding:14px 20px;

    color:#fff;

    cursor:pointer;

    transition:.3s ease;
}

.topBtn:hover{
    transform:translateY(-2px);

    border-color:
    rgba(0,234,255,.2);

    box-shadow:
    0 0 20px rgba(0,234,255,.10);
}

/* =========================
   USER BOX
========================= */

.userBox{
    display:flex;
    align-items:center;
    gap:14px;

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

    border:
    1px solid var(--border);

    border-radius:20px;

    padding:12px 18px;
}

.userAvatar{
    width:46px;
    height:46px;

    border-radius:50%;

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

    font-weight:800;

    background:
    linear-gradient(
    135deg,
    var(--cyan),
    var(--blue)
    );

    color:#001522;
}

.userInfo{
    display:flex;
    flex-direction:column;
}

.userInfo span{
    font-size:13px;
    color:var(--textSoft);
}

/* =========================
   HERO
========================= */

.heroHeader{
    display:grid;
    grid-template-columns:
    1fr 280px;

    gap:30px;

    margin-bottom:40px;
}

.heroBadge{
    display:inline-flex;

    background:
    rgba(0,234,255,.08);

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

    padding:12px 18px;

    border-radius:999px;

    color:var(--cyan);

    margin-bottom:24px;
}

.heroLeft h1{
    font-size:72px;
    line-height:.95;

    margin-bottom:20px;

    letter-spacing:-2px;

    text-shadow:
    0 0 35px rgba(255,255,255,.05);
}

.heroLeft p{
    color:var(--textSoft);
    line-height:1.8;
    max-width:720px;
}

.heroRight{
    display:flex;
    flex-direction:column;
    gap:18px;
}

.heroInfoCard{
    background:
    linear-gradient(
    145deg,
    rgba(255,255,255,.04),
    rgba(255,255,255,.02)
    );

    border:
    1px solid var(--border);

    border-radius:24px;

    padding:24px;
}

.heroInfoCard span{
    display:block;
    color:var(--textSoft);
    margin-bottom:10px;
}

.heroInfoCard strong{
    font-size:30px;
}

/* =========================
   SERVERS
========================= */

.serverGrid{
    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(480px,1fr));

    gap:28px;
}

.serverCard{
    background:
    linear-gradient(
    160deg,
    rgba(255,255,255,.04),
    rgba(255,255,255,.02)
    );

    border:
    1px solid var(--border);

    border-radius:30px;

    padding:28px;

    transition:.3s ease;

    min-height:auto;
}

.serverCard:hover{
    transform:translateY(-5px);
}

.serverCard.expanded{
    min-height:420px;
}
.serverHeader{
    display:flex;
    justify-content:space-between;
    align-items:center;

    margin-bottom:28px;
}

.serverCard h2{
    font-size:34px;
}

.statusBadge{
    padding:12px 18px;
    border-radius:999px;
    font-weight:700;
}

.onlineBadge{
    background:
    rgba(0,255,157,.12);

    color:var(--green);
}

.warningBadge{
    background:
    rgba(255,177,0,.12);

    color:var(--orange);
}

.offlineBadge{
    background:
    rgba(255,77,103,.12);

    color:var(--red);
}

.serverInfo{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px;
}

.infoBox{
    background:
    rgba(255,255,255,.03);

    border-radius:18px;

    padding:20px;
}

.infoBox span{
    display:block;
    color:var(--textSoft);
    margin-bottom:8px;
}

.infoBox strong{
    font-size:22px;
}

.serverActions{
    display:flex;
    gap:12px;

    margin-top:28px;
}

.serverBtn{
    flex:1;

    border:none;

    border-radius:16px;

    padding:14px 18px;

    font-weight:700;

    font-size:15px;

    cursor:pointer;

    transition:.25s ease;
}
.serverBtn:hover{
    transform:translateY(-2px);
}

.startBtn{
    background:
    linear-gradient(
    135deg,
    #00ff9d,
    #00d885
    );
}

.restartBtn{
    background:
    linear-gradient(
    135deg,
    #ffca28,
    #ffb300
    );
}

.stopBtn{
    background:
    linear-gradient(
    135deg,
    #ff5572,
    #ff3d5d
    );

    color:#fff;
}

/* =========================
   FOOTER
========================= */

.footer{
    text-align:right;

    margin-top:60px;
    padding-bottom:25px;

    color:var(--textSoft);
}
/* =========================
   STATS
========================= */

.statsGrid{
    display:grid;

    grid-template-columns:
    repeat(4,minmax(180px,1fr));

    gap:20px;

    margin-bottom:35px;
}

.statCard{
    background:
    linear-gradient(
    160deg,
    rgba(255,255,255,.04),
    rgba(255,255,255,.02)
    );

    border:
    1px solid var(--border);

    border-radius:28px;

    padding:28px;

    min-height:140px;

    transition:.3s ease;
}

.statCard:hover{
    transform:translateY(-4px);
}

.statCard span{
    display:block;
    font-size:16px;
    color:#a8b6d8;

    margin-bottom:14px;
}

.statCard p{
    font-size:52px;
    font-weight:800;

    color:#fff;
}

.statCard small{
    color:#94a3c7;
}
/* =========================
   RESPONSIVE
========================= */

@media(max-width:1400px){

.statsGrid{
    grid-template-columns:
    repeat(2,1fr);
}

.heroHeader{
    grid-template-columns:1fr;
}

.heroRight{
    flex-direction:row;
}

}

@media(max-width:1000px){

.sidebar{
    position:fixed;
    left:-100%;
}

.mainContent{
    padding:25px;
}

.serverGrid{
    grid-template-columns:1fr;
}

.heroLeft h1{
    font-size:42px;
}

.topbar{
    flex-direction:column;
}

.topActions{
    flex-wrap:wrap;
}

.heroRight{
    flex-direction:column;
}

}
