* {
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    margin: 0;
    height: 100vh;
    overflow: hidden;
    position: relative;

    background: radial-gradient(circle at center, #1a1f3a, #0b0f1f);
}

.logout-screen {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;

    background: radial-gradient(circle at center, #1a1f3a, #0b0f1f);
    color: #00ffc8;
    text-align: center;
}

.logout-box h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.logout-box p {
    opacity: 0.7;
}

@media (max-width: 768px) {

    /* ❌ heavy effects aus */
    .particles,
    .noise-overlay,
    .mouse-glow,
    .light-beam {
        display: none !important;
    }

    /* ⚡ blur stark reduzieren */
    .bg-orbs::before,
    .bg-orbs::after {
        content: "";
        position: fixed;
        border-radius: 50%;
        opacity: 0.08;
        z-index: 0;

        /* FIX: weniger GPU heavy */
        filter: blur(70px);
        will-change: transform;
    }
    /* ⚡ grid entschärfen */
    body::before {
        opacity: 0.08;
        background-size: 80px 80px;
    }

    /* ⚡ animation reduzieren */
    * {
        animation-duration: 0.001s !important;
        animation-iteration-count: 1 !important;
    }
}


/* =========================
   FLOATING ORBS (Glow Lights)
========================= */

.bg-orbs::before,
.bg-orbs::after {
    content: "";
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.25;
    z-index: 0;
    animation: floatOrb 12s ease-in-out infinite;
}

.bg-orbs::before,
.bg-orbs::after {
    content: "";
    position: fixed;
    width: 220px;
    height: 220px;
    border-radius: 50%;

    filter: blur(90px);
    opacity: 0.08;
    z-index: 0;
    animation: softFloat 18s ease-in-out infinite;
}

.color-flow {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;

    opacity: 0.25;
    mix-blend-mode: screen;

    background:
        radial-gradient(circle at 25% 30%, rgba(0,255,200,0.9), transparent 60%),
        radial-gradient(circle at 75% 70%, rgba(59,130,246,0.9), transparent 60%),
        radial-gradient(circle at 50% 50%, rgba(26,31,58,0.8), transparent 70%);

    filter: blur(75px);

    animation: colorFlowSmooth 18s ease-in-out infinite;


}


.bg-orbs::before {
    background: #00ffc8;
    top: 20%;
    left: 25%;
}

.bg-orbs::after {
    background: #3b82f6;
    bottom: 20%;
    right: 25%;
    animation-delay: 4s;
}

@keyframes softFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-15px) scale(1.05);
    }
}

/* =========================
   FLOATING PARTICLES
========================= */

.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particles::before {
    width: 1px;
    height: 1px;
    box-shadow:
        20vw 10vh rgba(0,255,200,0.2),
        60vw 50vh rgba(0,255,200,0.15),
        80vw 70vh rgba(0,255,200,0.1);
}

@keyframes floatParticles {
    from { transform: translateY(0); }
    to { transform: translateY(-200px); }
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background:
        linear-gradient(rgba(0,255,200,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,255,200,0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    transform: perspective(500px) rotateX(60deg) translateY(-20%);
    transform-origin: center;
    opacity: 0.25;
    animation: gridMove 12s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes gridMove {
    from { background-position: 0 0; }
    to { background-position: 0 200px; }
}

.light-beam {
    position: fixed;
    width: 1px;
    height: 100vh;
    background: linear-gradient(to bottom,
        transparent,
        rgba(0,255,200,0.2),
        transparent);
    left: 50%;
    transform: rotate(25deg);
    filter: blur(1px);
    animation: beamMove 8s ease-in-out infinite;
    opacity: 0.4;
    z-index: 0;
}

body {
    margin: 0;
    height: 100vh;
    overflow: hidden;
    position: relative;

    background: #0b0f1f; /* FIXED BASE */
}

@keyframes beamMove {
    0%, 100% { transform: translateX(-200px) rotate(25deg); opacity: 0.2; }
    50% { transform: translateX(200px) rotate(25deg); opacity: 0.5; }
}

/* =========================
   NOISE OVERLAY (film grain)
========================= */



.noise-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.05;
    background-image: url("https://www.transparenttextures.com/patterns/3px-tile.png");
}

/* =========================
   ensure layering fix
========================= */

.container {
    position: relative;
    z-index: 2;
}

.mouse-glow {
    z-index: 1;
}
/* Loader */
.loader {
    margin: 20px auto;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0,255,200,0.2);
    border-top: 3px solid #00ffc8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

.logout-btn {
    display: block;
    margin: 15px;
    padding: 10px;
    border-radius: 10px;

    background: rgba(0,255,200,0.12);
    color: #00ffc8;

    text-decoration: none;
    text-align: center;

    transition: 0.3s;
}

.logout-btn:hover {
    background: rgba(0,255,200,0.3);
    box-shadow: 0 0 15px rgba(0,255,200,0.25);
    transform: translateY(-1px);
}

/* =========================
   ACTIVE USERS SPECIAL CARD
========================= */

.card.active-users {
    position: relative;
    overflow: hidden;

    border: 1px solid rgba(0,255,200,0.35);
    background: rgba(0,255,200,0.05);

    box-shadow:
        0 0 20px rgba(0,255,200,0.12),
        inset 0 0 15px rgba(0,255,200,0.05);
}

/* Pulsierender Glow-Hintergrund */
.card.active-users::before {
    content: "";
    position: absolute;
    inset: -50%;

    background: radial-gradient(
        circle,
        rgba(0,255,200,0.25),
        transparent 60%
    );

    animation: activePulse 3s ease-in-out infinite;
    z-index: 0;
}

@keyframes activePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.4;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

/* Content über Effekt */
.card.active-users h3,
.card.active-users p {
    position: relative;
    z-index: 1;
}

/* Zahl stärker hervorheben */
.card.active-users p {
    font-size: 30px;
    font-weight: bold;
    color: #00ffc8;
    text-shadow: 0 0 10px rgba(0,255,200,0.5);
}

/* DASHBOARD LAYOUT FIX */
.dashboard {
    display: flex;
    height: 100vh;
}

/* SIDEBAR */
.sidebar {
    width: 240px;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(0,255,200,0.1);
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.sidebar .logo {
    color: #00ffc8;
    font-weight: bold;
    margin-bottom: 20px;
}

.menu a {
    display: block;
    padding: 10px;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 6px;
}

.menu a.active,
.menu a:hover {
    background: rgba(0,255,200,0.1);
    color: #00ffc8;
}

/* MAIN */
.main {
    flex: 1;
    padding: 20px;
}

/* PANEL (BLACKBOARD + DISCORD) */
.panel {
    margin-top: 20px;
    padding: 20px;
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(0,255,200,0.1);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #00ffc8;
}

.panel-body {
    color: white;
    opacity: 0.85;
}

.menu-card {
    display: block;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 12px;

    text-decoration: none;

    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(0,255,200,0.1);

    transition: 0.3s;
}

.bb-entry {
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 10px;

    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(0,255,200,0.1);

    animation: fadeIn 0.3s ease;
}

.bb-meta {
    font-size: 12px;
    color: rgba(0,255,200,0.7);
    margin-bottom: 5px;
}

.bb-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bb-entry {
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(0,255,200,0.1);
}

.bb-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 6px;
}

.bb-delete {
    cursor: pointer;
    font-size: 12px;
    color: #ff4d4d;
    border: 1px solid rgba(255, 77, 77, 0.4);
    padding: 2px 6px;
    border-radius: 4px;
}

.bb-delete:hover {
    background: rgba(255, 77, 77, 0.15);
}

.bb-delete {
    cursor: pointer;
    margin-left: 10px;
    opacity: 0.6;
    transition: 0.2s;
}

.bb-delete:hover {
    opacity: 1;
    transform: scale(1.2);
    color: red;
}

.bb-content {
    color: white;
    line-height: 1.4;
}

/* optional Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.menu-card h3 {
    margin: 0;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}


.bb-entry {
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.2s;
}

.bb-entry:hover {
    background: rgba(255,255,255,0.03);
}

/* Layout row */
.bb-row {
    display: flex;
    gap: 10px;
}

/* Avatar */
.bb-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0,255,200,0.15);
    color: rgba(0,255,200,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

/* Body */
.bb-body {
    flex: 1;
}

/* Header line */
.bb-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    margin-bottom: 2px;
}

/* Username */
.bb-user {
    font-weight: bold;
    color: rgba(255,255,255,0.9);
}

/* Time */
.bb-time {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
}

/* Content */
.bb-content {
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    line-height: 1.4;
}

/* Delete */
.bb-delete {
    margin-left: auto;
    font-size: 11px;
    cursor: pointer;
    color: rgba(255,80,80,0.8);
}

.bb-delete:hover {
    color: red;
}

.menu-card p {
    margin: 5px 0 0;
    font-size: 18px;
    color: rgba(0,255,200,0.9);
}

/* Hover + Active */
.menu-card:hover,
.menu-card.active {
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(0,255,200,0.15);
    background: rgba(0,255,200,0.08);
}

/* ADMIN AREA */
.admin-panel textarea {
    width: 100%;
    height: 80px;
    margin-top: 10px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(0,255,200,0.2);
    color: white;
    padding: 10px;
}

.admin-panel button {
    margin-top: 10px;
    padding: 10px;
    background: #00ffc8;
    border: none;
    cursor: pointer;
}

/* Live Punkt */
.pulse-dot {
    position: absolute;
    top: 12px;
    right: 12px;

    width: 10px;
    height: 10px;

    background: #00ffc8;
    border-radius: 50%;

    box-shadow: 0 0 12px #00ffc8;
    animation: dotPulse 1.5s infinite;
}

@keyframes dotPulse {
    0% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.6); opacity: 1; }
    100% { transform: scale(1); opacity: 0.6; }
}

/* GRID OVERLAY */
body::before {
    position: fixed; /* besser als absolute */
    opacity: 0.15;
    background-size: 80px 80px;
    will-change: transform;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .login-box {
        width: 100%;
        max-width: 320px;
        padding: 25px;
    }

    .character img {
        max-height: 220px;
    }
}

/* MOUSE GLOW */
.mouse-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    pointer-events: none;

    background: radial-gradient(circle, rgba(0,255,200,0.18), transparent 70%);
    filter: blur(40px);

    transform: translate(-50%, -50%);
    z-index: 0;
}

/* MAIN LAYOUT */
.container {
    display: flex;
    align-items: center;
    justify-content: center;

    height: 100%;
    gap: 60px;

    position: relative;
    z-index: 1;
}

/* CHARACTER */
.character img {
    max-height: 520px;

    transition: 0.4s ease;
    filter: drop-shadow(0 0 30px rgba(0,255,200,0.4));
}

.character img:hover {
    transform: scale(1.03);
    filter: drop-shadow(0 0 45px rgba(0,255,200,0.6));
}

/* LOGIN BOX */
.login-box {
    width: 340px;
    padding: 45px;
    border-radius: 18px;

    color: white;
    position: relative;
    overflow: hidden;

    background: linear-gradient(
        145deg,
        rgba(255,255,255,0.08),
        rgba(255,255,255,0.03)
    );

    border: 1px solid rgba(0,255,200,0.15);

    box-shadow:
        0 0 35px rgba(0,255,200,0.08),
        inset 0 0 15px rgba(255,255,255,0.03);
}

/* ANIMATED BORDER */
.login-box::before {
    content: "";
    position: absolute;
    inset: -2px;

    background: linear-gradient(
        90deg,
        transparent,
        rgba(0,255,200,0.4),
        transparent
    );

    animation: glowMove 4s linear infinite;
    z-index: 0;
}

@keyframes glowMove {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.login-box > * {
    position: relative;
    z-index: 1;
}

/* TITLE */
.login-box h2 {
    text-align: center;
    margin-bottom: 25px;

    letter-spacing: 2px;
    font-weight: 600;
    color: rgba(0,255,200,0.9);
}

/* INPUTS */
.login-box input {
    width: 100%;
    padding: 14px;
    margin-bottom: 15px;

    border-radius: 10px;
    border: 1px solid rgba(0,255,200,0.15);

    background: rgba(0,0,0,0.25);
    color: white;

    outline: none;
    transition: 0.25s;
}

.login-box input::placeholder {
    color: rgba(255,255,255,0.5);
}

.login-box input:focus {
    border-color: rgba(0,255,200,0.8);
    box-shadow:
        0 0 10px rgba(0,255,200,0.2),
        inset 0 0 8px rgba(0,255,200,0.08);
    transform: scale(1.02);
}

/* BUTTON */
.login-box button {
    width: 100%;
    padding: 12px;

    border: none;
    border-radius: 10px;

    background: linear-gradient(90deg, #00ffc8, #00bfa6);
    color: #000;

    font-weight: bold;
    letter-spacing: 1px;

    cursor: pointer;
    position: relative;
    overflow: hidden;

    transition: 0.3s;
}

.login-box button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;

    width: 100%;
    height: 100%;

    background: rgba(255,255,255,0.25);
    transform: skewX(-20deg);
    transition: 0.5s;
}

.login-box button:hover::before {
    left: 120%;
}

.login-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0,255,200,0.35);
}

/* FOOTER */
.system-footer {
    margin-top: 20px;
    font-size: 11px;
    text-align: center;

    color: rgba(0,255,200,0.6);
    letter-spacing: 1px;

    text-shadow: 0 0 8px rgba(0,255,200,0.25);
    transition: 0.3s;
    cursor: default;

    position: relative;
}

.system-footer:hover {
    color: rgba(0,255,200,0.95);
    text-shadow:
        0 0 10px rgba(0,255,200,0.6),
        0 0 25px rgba(0,255,200,0.4);

    transform: scale(1.02);
}

.system-footer::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -5px;
    transform: translateX(-50%);

    width: 60%;
    height: 2px;

    background: rgba(0,255,200,0.4);
    filter: blur(2px);

    opacity: 0.5;
    animation: footerPulse 2.5s ease-in-out infinite;
}

@keyframes footerPulse {
    0%, 100% {
        opacity: 0.2;
        width: 40%;
    }
    50% {
        opacity: 0.8;
        width: 80%;
    }
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .container {
        flex-direction: column;
        gap: 30px;
    }

    .character img {
        max-height: 320px;
    }
}

/* DASHBOARD LAYOUT */
.dashboard {
    display: flex;
    height: 100vh;
    position: relative;
    z-index: 1;
    color: white;
}

/* SIDEBAR */
.sidebar {
    width: 220px;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(15px);
    border-right: 1px solid rgba(0,255,200,0.1);

    display: flex;
    flex-direction: column;
    padding: 20px;
}

.sidebar .logo {
    color: rgba(0,255,200,0.9);
    font-weight: bold;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.sidebar a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: 0.2s;
}

.sidebar a:hover,
.sidebar a.active {
    background: rgba(0,255,200,0.1);
    color: rgba(0,255,200,0.9);
}

.sidebar-footer {
    margin-top: auto;
    font-size: 11px;
    color: rgba(0,255,200,0.5);
}

/* MAIN */
.main {
    flex: 1;
    padding: 25px;
}

/* TOPBAR */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 20px;
    padding: 10px 15px;

    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(0,255,200,0.1);
    border-radius: 10px;
}

.status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(0,255,200,0.8);
}

.dot {
    width: 8px;
    height: 8px;
    background: #00ffc8;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ffc8;
}

/* GRID CARDS */
.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(0,255,200,0.1);
    border-radius: 14px;
    padding: 20px;

    transition: 0.3s;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(0,255,200,0.15);
}

.card h3 {
    margin: 0;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

.card p {
    font-size: 26px;
    margin-top: 10px;
    color: rgba(0,255,200,0.9);
}
