/* ========================================
   WEEDOZE PANEL — MAIN DESIGN
======================================== */

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

:root {
    --bg: #050705;
    --bg-soft: #090d09;
    --panel: rgba(11, 17, 11, 0.88);
    --panel-strong: #0d130d;

    --green: #7dff00;
    --green-light: #a6ff4d;
    --green-dark: #3f9d00;

    --purple: #9b45ff;
    --purple-dark: #552099;

    --white: #f4f7f1;
    --text: #d9ded8;
    --muted: #747d74;

    --border: rgba(125, 255, 0, 0.16);

    --shadow-green:
        0 0 25px rgba(125, 255, 0, 0.12);

    --shadow-purple:
        0 0 35px rgba(155, 69, 255, 0.10);
}

html,
body {
    width: 100%;
    min-height: 100%;
}

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

    color: var(--white);

    background:
        radial-gradient(
            circle at 78% 15%,
            rgba(125, 255, 0, 0.09),
            transparent 28%
        ),
        radial-gradient(
            circle at 18% 85%,
            rgba(155, 69, 255, 0.10),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #050705 0%,
            #071007 55%,
            #09050e 100%
        );

    overflow-x: hidden;
}


/* ========================================
   ATMOSPHERE
======================================== */

body::before {
    content: "";

    position: fixed;
    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            transparent 49.8%,
            rgba(125, 255, 0, 0.025) 50%,
            transparent 50.2%
        ),
        linear-gradient(
            transparent 49.8%,
            rgba(125, 255, 0, 0.02) 50%,
            transparent 50.2%
        );

    background-size: 70px 70px;

    opacity: 0.5;

    z-index: -2;
}

body::after {
    content: "";

    position: fixed;
    width: 700px;
    height: 700px;

    right: -300px;
    bottom: -350px;

    background:
        radial-gradient(
            circle,
            rgba(155, 69, 255, 0.12),
            transparent 68%
        );

    pointer-events: none;

    z-index: -1;
}


/* ========================================
   APPLICATION
======================================== */

.app {
    min-height: 100vh;
}


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

.sidebar {
    position: fixed;

    top: 0;
    left: 0;
    bottom: 0;

    width: 250px;

    padding: 28px 17px 20px;

    background:
        linear-gradient(
            180deg,
            rgba(6, 10, 6, 0.97),
            rgba(4, 7, 5, 0.99)
        );

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

    z-index: 50;

    display: flex;
    flex-direction: column;
}


/* ========================================
   BRAND
======================================== */

.brand {
    display: flex;

    align-items: center;

    gap: 10px;

    padding-left: 8px;

    margin-bottom: 8px;
}

.brand-icon {
    font-size: 32px;

    filter:
        drop-shadow(
            0 0 10px
            rgba(125, 255, 0, 0.7)
        );
}

.brand-name {
    font-size: 27px;

    font-weight: 900;

    letter-spacing: 1px;

    color: var(--green);

    text-shadow:
        0 0 16px
        rgba(125, 255, 0, 0.35);
}

.brand-panel {
    margin-top: -2px;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 7px;

    color: var(--white);
}


/* ========================================
   VPS STATUS
======================================== */

.server-status {
    margin: 23px 5px 24px;

    padding: 10px 12px;

    border-radius: 7px;

    background:
        rgba(125, 255, 0, 0.045);

    border:
        1px solid
        rgba(125, 255, 0, 0.10);

    color: var(--muted);

    font-size: 10px;

    letter-spacing: 1.5px;
}

.server-status span {
    display: inline-block;

    width: 7px;
    height: 7px;

    margin-right: 7px;

    border-radius: 50%;

    background: var(--green);

    box-shadow:
        0 0 10px
        var(--green);
}


/* ========================================
   NAVIGATION
======================================== */

nav {
    display: flex;

    flex-direction: column;

    gap: 5px;
}

nav a {
    position: relative;

    display: flex;

    align-items: center;

    gap: 13px;

    height: 45px;

    padding: 0 14px;

    border-radius: 8px;

    color: #9ba39a;

    text-decoration: none;

    font-size: 13px;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

nav a span {
    width: 20px;

    text-align: center;

    font-size: 15px;
}

nav a:hover {
    color: var(--white);

    background:
        rgba(125, 255, 0, 0.045);

    transform: translateX(2px);
}

nav a.active {
    color: var(--green);

    background:
        linear-gradient(
            90deg,
            rgba(125, 255, 0, 0.14),
            rgba(125, 255, 0, 0.025)
        );

    box-shadow:
        inset 3px 0 0 var(--green),
        0 0 20px
        rgba(125, 255, 0, 0.04);
}


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

.sidebar-user {
    display: flex;

    align-items: center;

    gap: 11px;

    margin-top: auto;

    padding: 13px;

    border:
        1px solid
        rgba(255, 255, 255, 0.07);

    border-radius: 10px;

    background:
        rgba(255, 255, 255, 0.025);
}

.user-avatar {
    width: 36px;
    height: 36px;

    display: flex;

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

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            var(--green-dark),
            var(--green)
        );

    color: #061000;

    font-weight: 900;
}

.sidebar-user strong {
    display: block;

    font-size: 12px;
}

.sidebar-user small {
    display: flex;

    align-items: center;

    gap: 5px;

    margin-top: 4px;

    color: var(--muted);

    font-size: 10px;
}

.sidebar-user small i {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: var(--green);

    box-shadow:
        0 0 7px
        var(--green);
}


/* ========================================
   MAIN CONTENT
======================================== */

.main {
    margin-left: 250px;

    min-height: 100vh;

    padding:
        25px
        32px
        22px;
}


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

.topbar {
    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    margin-bottom: 24px;
}

.eyebrow {
    color: var(--green);

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 3px;

    text-transform: uppercase;
}

.topbar h1 {
    margin-top: 5px;

    font-size: 30px;

    font-weight: 800;

    letter-spacing: -0.5px;
}

.top-user {
    display: flex;

    align-items: center;

    gap: 8px;

    padding-top: 5px;

    text-align: right;
}

.top-user strong {
    display: block;

    font-size: 12px;
}

.top-user small {
    display: block;

    margin-top: 3px;

    color: var(--green);

    font-size: 9px;

    letter-spacing: 1px;
}

.connection-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--green);

    box-shadow:
        0 0 10px
        var(--green);
}


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

.hero {
    position: relative;

    min-height: 330px;

    display: flex;

    align-items: center;

    overflow: hidden;

    border:
        1px solid
        rgba(125, 255, 0, 0.20);

    border-radius: 14px;

    background:
        linear-gradient(
            100deg,
            rgba(16, 28, 14, 0.98),
            rgba(8, 13, 9, 0.94) 55%,
            rgba(11, 7, 16, 0.98)
        );

    box-shadow:
        var(--shadow-green),
        var(--shadow-purple);
}


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

.hero-glow {
    position: absolute;

    width: 650px;
    height: 650px;

    left: -260px;
    top: -150px;

    background:
        radial-gradient(
            circle,
            rgba(125, 255, 0, 0.13),
            transparent 65%
        );

    pointer-events: none;
}

.hero::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(125, 255, 0, 0.035),
            transparent
        );

    pointer-events: none;
}


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

.hero-content {
    position: relative;

    z-index: 5;

    width: 44%;

    padding-left: 38px;
}

.hero-label {
    display: flex;

    align-items: center;

    gap: 8px;

    color: var(--green);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 2px;
}

.status-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--green);

    box-shadow:
        0 0 12px
        var(--green);
}

.hero h2 {
    margin-top: 7px;

    font-size: 58px;

    line-height: 1;

    letter-spacing: 2px;

    text-shadow:
        0 0 25px
        rgba(255, 255, 255, 0.08);
}

.hero-status {
    margin-top: 8px;

    color: var(--green);

    font-size: 17px;

    font-weight: 900;

    text-shadow:
        0 0 12px
        rgba(125, 255, 0, 0.35);
}

.hero-description {
    margin-top: 12px;

    color: var(--muted);

    font-size: 12px;

    line-height: 1.7;
}

.hero-meta {
    display: flex;

    gap: 28px;

    margin-top: 25px;
}

.hero-meta div {
    padding-right: 22px;

    border-right:
        1px solid
        rgba(255, 255, 255, 0.08);
}

.hero-meta div:last-child {
    border: 0;
}

.hero-meta span {
    display: block;

    color: var(--muted);

    font-size: 8px;

    letter-spacing: 1.5px;
}

.hero-meta strong {
    display: block;

    margin-top: 5px;

    color: var(--white);

    font-size: 11px;
}


/* ========================================
   CHARACTER
======================================== */

.character {
    position: absolute;

    right: 235px;
    bottom: -35px;

    width: 310px;
    height: 380px;

    z-index: 4;

    display: flex;

    align-items: flex-end;

    justify-content: center;

    pointer-events: none;
}

.character img {
    position: relative;

    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: bottom center;

    filter:
        drop-shadow(
            0 0 20px
            rgba(125, 255, 0, 0.18)
        );

    mask-image:
        linear-gradient(
            to bottom,
            black 88%,
            transparent 100%
        );
}

.character-glow {
    position: absolute;

    width: 270px;
    height: 270px;

    bottom: 35px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(125, 255, 0, 0.15),
            transparent 68%
        );

    filter: blur(15px);
}


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

.hero-controls {
    position: absolute;

    right: 28px;

    top: 50%;

    transform: translateY(-50%);

    width: 205px;

    display: flex;

    flex-direction: column;

    gap: 9px;

    z-index: 10;
}

button {
    width: 100%;

    height: 43px;

    border-radius: 7px;

    border:
        1px solid
        rgba(255, 255, 255, 0.11);

    background:
        rgba(255, 255, 255, 0.035);

    color: var(--white);

    font-size: 11px;

    font-weight: 800;

    cursor: pointer;

    transition:
        0.2s ease;
}

button:hover {
    border-color: var(--green);

    background:
        rgba(125, 255, 0, 0.07);

    box-shadow:
        0 0 15px
        rgba(125, 255, 0, 0.08);
}

button.restart {
    color: var(--green);

    border-color:
        rgba(125, 255, 0, 0.65);

    background:
        rgba(125, 255, 0, 0.08);
}


/* ========================================
   CONFIRMATION
======================================== */

button.restart.confirming {
    color: white;

    border-color: #ffb300;

    background:
        rgba(255, 179, 0, 0.12);

    box-shadow:
        0 0 20px
        rgba(255, 179, 0, 0.15);
}

button.restart:disabled {
    opacity: 0.65;

    cursor: wait;
}


/* ========================================
   STATISTICS
======================================== */

.stats {
    display: grid;

    grid-template-columns:
        repeat(6, 1fr);

    gap: 12px;

    margin-top: 16px;
}

.stat-card {
    position: relative;

    min-height: 112px;

    padding: 17px;

    overflow: hidden;

    border:
        1px solid
        rgba(255, 255, 255, 0.07);

    border-radius: 10px;

    background:
        linear-gradient(
            145deg,
            rgba(15, 21, 15, 0.92),
            rgba(8, 11, 8, 0.94)
        );

    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

.stat-card::after {
    content: "";

    position: absolute;

    width: 90px;
    height: 90px;

    right: -45px;
    bottom: -45px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(125, 255, 0, 0.10),
            transparent 70%
        );
}

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

    border-color:
        rgba(125, 255, 0, 0.20);
}

.stat-card span {
    color: var(--muted);

    font-size: 8px;

    letter-spacing: 1.5px;
}

.stat-card strong {
    display: block;

    margin-top: 13px;

    font-size: 27px;
}

.stat-card small {
    display: block;

    margin-top: 5px;

    color: var(--green);

    font-size: 9px;
}


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

.dashboard-grid {
    display: grid;

    grid-template-columns:
        1.45fr 1fr;

    gap: 15px;

    margin-top: 16px;
}

.panel {
    min-height: 330px;

    padding: 20px;

    border:
        1px solid
        rgba(255, 255, 255, 0.07);

    border-radius: 11px;

    background:
        linear-gradient(
            145deg,
            rgba(13, 18, 13, 0.94),
            rgba(7, 10, 8, 0.95)
        );

    box-shadow:
        0 15px 45px
        rgba(0, 0, 0, 0.20);
}


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

.panel-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 18px;
}

.panel-kicker {
    display: block;

    color: var(--green);

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 2px;
}

.panel h3 {
    margin-top: 3px;

    font-size: 16px;

    font-weight: 800;
}

.live,
.resource-status {
    color: var(--green);

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1px;
}

.live span {
    display: inline-block;

    width: 6px;
    height: 6px;

    margin-right: 5px;

    border-radius: 50%;

    background: var(--green);

    box-shadow:
        0 0 8px
        var(--green);
}


/* ========================================
   LOGS
======================================== */

.logs {
    height: 245px;

    padding: 15px;

    overflow-y: auto;

    border:
        1px solid
        rgba(125, 255, 0, 0.07);

    border-radius: 7px;

    background:
        #030503;

    font-family:
        "Consolas",
        "Courier New",
        monospace;

    font-size: 10px;
}

.logs div {
    margin-bottom: 13px;

    color: #9aa29a;
}

.log-time {
    margin-right: 8px;

    color: #4c554c;
}

.log-type {
    display: inline-block;

    min-width: 62px;

    margin-right: 8px;

    font-weight: 800;
}

.log-type.success {
    color: var(--green);
}

.log-type.info {
    color: #94a894;
}

.log-type.command {
    color: var(--purple);
}


/* ========================================
   RESOURCES
======================================== */

.resource {
    margin-top: 24px;
}

.resource-title {
    display: flex;

    justify-content: space-between;

    margin-bottom: 8px;

    font-size: 10px;
}

.resource-title strong {
    color: var(--green);

    font-size: 10px;
}

.progress {
    width: 100%;

    height: 7px;

    overflow: hidden;

    border-radius: 20px;

    background:
        rgba(255, 255, 255, 0.07);
}

.progress .bar {
    width: 0%;

    height: 100%;

    border-radius: 20px;

    background:
        linear-gradient(
            90deg,
            var(--green-dark),
            var(--green)
        );

    box-shadow:
        0 0 12px
        rgba(125, 255, 0, 0.35);

    transition:
        width 0.5s ease;
}


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

footer {
    padding: 22px 0 4px;

    text-align: center;

    color: #535c53;

    font-size: 9px;

    letter-spacing: 2px;
}

footer span {
    color: var(--green);
}

footer small {
    color: #353b35;

    margin: 0 5px;
}


/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 1250px) {

    .stats {
        grid-template-columns:
            repeat(3, 1fr);
    }

    .character {
        right: 225px;

        width: 280px;
    }

    .hero-content {
        width: 48%;
    }
}


@media (max-width: 950px) {

    .sidebar {
        width: 75px;

        padding:
            25px 10px;
    }

    .brand {
        justify-content: center;

        padding: 0;
    }

    .brand-name,
    .brand-panel,
    .server-status,
    nav a:not(.active) {
        font-size: 0;
    }

    nav a {
        justify-content: center;

        padding: 0;
    }

    nav a span {
        margin: 0;
    }

    .sidebar-user {
        justify-content: center;
    }

    .sidebar-user div:not(.user-avatar) {
        display: none;
    }

    .main {
        margin-left: 75px;
    }

    .hero-content {
        width: 55%;
    }

    .character {
        opacity: 0.55;

        right: 160px;
    }

    .hero-controls {
        right: 18px;

        width: 170px;
    }
}


@media (max-width: 700px) {

    .main {
        padding: 18px;
    }

    .top-user {
        display: none;
    }

    .hero {
        min-height: 650px;

        align-items: flex-start;
    }

    .hero-content {
        width: 100%;

        padding:
            35px 25px;
    }

    .hero h2 {
        font-size: 45px;
    }

    .character {
        right: 50%;

        transform: translateX(50%);

        opacity: 0.55;

        bottom: 115px;
    }

    .hero-controls {
        left: 25px;
        right: 25px;

        bottom: 25px;
        top: auto;

        transform: none;

        width: auto;
    }

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

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


@media (max-width: 480px) {

    .sidebar {
        display: none;
    }

    .main {
        margin-left: 0;
    }

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