:root {
    --bg: #0f0f0f; --side: #161616; --text: #fff; --accent: #55ff55; --input: #222;
}
[data-theme="light"] {
    --bg: #f0f0f0; --side: #ffffff; --text: #111; --accent: #00aa00; --input: #ddd;
}

body {
    margin: 0;
    display: flex;
    font-family: 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
}

.sidebar {
    width: 260px; height: 100vh; background: var(--side); position: fixed;
    display: flex; flex-direction: column; padding: 20px; border-right: 2px solid var(--accent);
    box-sizing: border-box;
}

.profile-area { text-align: center; margin-bottom: 30px; }
.avatar { 
    width: 70px; height: 70px; border-radius: 50%; border: 2px solid var(--accent); 
    margin-bottom: 10px; background: #333; display: inline-block;
}

.role-tag { 
    font-size: 0.7rem; font-weight: bold; padding: 4px 10px; border-radius: 5px; color: #000;
}

.nav { flex-grow: 1; display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.nav a { color: var(--text); text-decoration: none; padding: 10px; border-radius: 5px; background: rgba(255,255,255,0.05); transition: 0.3s; }
.nav a:hover { background: var(--accent); color: #000; }

.bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px; /* Abstand zwischen den Buttons */
}

.content { margin-left: 260px; padding: 40px; width: 100%; }
.card { background: var(--side); padding: 20px; border-radius: 10px; border: 1px solid #333; }

input { width: 100%; padding: 10px; margin: 10px 0; background: var(--input); border: 1px solid #444; color: var(--text); box-sizing: border-box;}
button { width: 100%; padding: 10px; background: var(--accent); border: none; font-weight: bold; cursor: pointer; }

/* Gemeinsames Styling für Links und Buttons in der Sidebar */
.btn-sidebar {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--input); /* Nutzt die Theme-Farbe */
    color: var(--text);
    border: 1px solid #444;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    font-size: 0.9rem;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.btn-sidebar:hover {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

/* Spezielles Rot für den Logout-Button, wenn du magst */
.btn-logout:hover {
    background: #ff5555;
    color: white;
    border-color: #ff5555;
}

/* Der Bereich zwischen Sidebar und Discord */
.content-wrapper {
    margin-left: 260px; /* Platz für Sidebar */
    margin-right: 320px; /* Platz für Discord Widget rechts */
    padding: 40px;
    flex-grow: 1;
}

/* Rechte Infoleiste */
.info-sidebar {
    position: fixed;
    right: 0;
    top: 0;
    width: 300px;
    height: 100vh;
    background: var(--side);
    border-left: 2px solid var(--accent);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* Discord Bereich (Obere Hälfte) */
.discord-container {
    height: 60%; /* Discord bekommt etwas mehr Platz */
    border-bottom: 1px solid #333;
    padding: 10px;
}

/* MC-Server Bereich (Untere Hälfte) */
.mc-status-container {
    height: 40%;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.status-dot {
    height: 12px;
    width: 12px;
    background-color: #55ff55;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}

.server-ip {
    background: var(--input);
    padding: 10px;
    border-radius: 5px;
    font-family: monospace;
    margin-top: 10px;
    border: 1px solid #444;
}