:root {
    --color-bg-start: #0e0f1a;
    --color-bg-end: #161a2f;
    --color-accent: #2af5c1;
    --color-secondary: #b48eff;
    --color-shadow: rgba(42, 245, 193, 0.3);
    --color-text: #e0f7fa;
    --color-muted: #708090;
    --color-btn-glow: rgba(42, 245, 193, 0.6);
    --color-ring: rgba(42, 245, 193, 0.2);
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-blur: blur(14px);
    --radius: 25px;
}

body {
    background: linear-gradient(145deg, var(--color-bg-start), var(--color-bg-end));
    font-family: 'Vazirmatn', 'Orbitron', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    color: var(--color-text);
}

.connection {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    height: 100%;
    text-align: center;
    animation: fadeIn 1s ease;
}

.connection::after {
    font-size: 1.3rem;
    color: var(--color-muted);
    transition: 0.3s ease;
}

.connection:has(#ChangeStatus.connecting)::after {
    color: var(--color-accent);
}

.connection:has(#ChangeStatus.connected)::after {
    color: var(--color-secondary);
    text-shadow: 0 0 12px var(--color-secondary);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulseRing {
    0% {
        box-shadow: 0 0 0 0 var(--color-ring);
    }

    100% {
        box-shadow: 0 0 0 25px transparent;
    }
}

#ChangeStatus {
    width: 200px;
    height: 70px;
    border-radius: 100px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--color-ring);
    color: var(--color-text);
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.35s ease;
    overflow: hidden;
    z-index: 1;
}

#ChangeStatus::before {
    content: "";
    position: absolute;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle at center, var(--color-btn-glow), transparent 70%);
    animation: pulseRing 2s infinite;
    border-radius: 50%;
    z-index: -1;
    opacity: 0.2;
    transition: all 0.4s;
}

#ChangeStatus:hover {
    transform: scale(1.04);
    box-shadow: 0 0 20px var(--color-shadow);
    border-color: var(--color-accent);
}

#ChangeStatus.connecting {
    background: linear-gradient(90deg, var(--color-accent), var(--color-secondary));
    color: #fff;
    box-shadow: 0 0 25px var(--color-btn-glow);
    animation: pulseRing 1.2s infinite;
}

#ChangeStatus.connected {
    background: var(--color-secondary);
    color: #fff;
    box-shadow: 0 0 30px var(--color-secondary);
    transform: scale(1.08);
}

#ChangeStatus svg {
    display: none;
}

#ChangeStatus::after {
    content: "Connect";
    transition: all 0.3s;
}

#ChangeStatus.connecting::after {
    content: "Connecting...";
}

#ChangeStatus.connected::after {
    content: "Connected";
}

#ChangeStatus.connecting::after {
    animation: none;
    border-radius: 25px;
    inset: 0;
}

#setting-app>div:not(#main),
.box-select-server,
.box-select-server-mini,
#Logs,
#ip-ping,
.connected-box,
h1 {
    display: none !important;
}

#menu>div:nth-child(-n+4):not(#menu-exit) {
    display: none !important;
}