:root {
    /* Dark Theme (Standard) */
    --primary: #2e7d32;
    --primary-dark: #1b5e20;
    --primary-light: #4caf50;
    --accent: #ff9800;
    --text: #f5f5f5;
    --text-secondary: #bdbdbd;
    --background: #121212;
    --card-bg: #1e1e1e;
    --card-border: #333;
    --success: #4caf50;
    --warning: #ff9800;
    --error: #f44336;
    --input-bg: #2d2d2d;
    --input-border: #444;
}

[data-theme="light"] {
    --primary: #2e7d32;
    --primary-dark: #1b5e20;
    --primary-light: #4caf50;
    --accent: #ff9800;
    --text: #212121;
    --text-secondary: #757575;
    --background: #f5f5f5;
    --card-bg: #ffffff;
    --card-border: #e0e0e0;
    --success: #4caf50;
    --warning: #ff9800;
    --error: #f44336;
    --input-bg: #ffffff;
    --input-border: #ccc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    margin-bottom: 30px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 10px;
    border: 1px solid var(--card-border);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.header-controls {
    display: flex;
    gap: 10px;
}

h1 {
    color: var(--primary-light);
    margin-bottom: 0;
}

.status-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1.1em;
}

.status-online {
    background-color: var(--success);
    color: white;
}

.status-offline {
    background-color: var(--error);
    color: white;
}

/* Dashboard */
.dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid var(--card-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.card h2 {
    color: var(--primary-light);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--card-border);
}

.server-icon {
    text-align: center;
    margin-bottom: 15px;
}

.server-icon img {
    border-radius: 8px;
    border: 2px solid var(--card-border);
}

/* Player List */
.player-list {
    list-style-type: none;
    max-height: 200px;
    overflow-y: auto;
}

.player-list li {
    padding: 8px;
    border-bottom: 1px solid var(--card-border);
    display: flex;
    align-items: center;
}

.player-list li:last-child {
    border-bottom: none;
}

/*
.player-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 10px;
    background-color: var(--input-bg);
}
*/

/**
 * styles.css
 * Version: 6.1
 * Author: Natural.yt
 * Description: Erweiterte Version mit Spieler-Avatar-Styling
 * Changes:
 * - Spieler-Avatar Styling
 * - Verbesserte Spielerliste
 */

/* ===== SPIELER-AVATARE ===== */
.player-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 10px;
    background-color: var(--input-bg);
    background-size: cover;
    background-position: center;
    border: 2px solid var(--primary);
    flex-shrink: 0;
}

.player-name {
    font-weight: 500;
}

.player-list li {
    padding: 8px;
    border-bottom: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    transition: background-color 0.2s ease;
}

.player-list li:hover {
    background-color: var(--input-bg);
}

.player-list li:last-child {
    border-bottom: none;
}

/* Avatar Loading Animation */
.player-avatar.loading {
    background: linear-gradient(90deg, var(--input-bg) 25%, var(--card-border) 50%, var(--input-bg) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Responsive Avatare */
@media (max-width: 768px) {
    .player-avatar {
        width: 28px;
        height: 28px;
        margin-right: 8px;
    }
    
    .player-name {
        font-size: 0.9em;
    }
}

/* Rest des CSS bleibt gleich wie in der vorherigen Version */

/* Plugin und Mod Listen */
.plugin-list, .mod-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.plugin, .mod {
    background: var(--primary-dark);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9em;
    color: white;
}

/* Buttons */
button {
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    font-weight: 500;
}

button:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-light);
}

.btn-secondary {
    background: var(--input-bg);
    color: var(--text);
    border: 1px solid var(--input-border);
}

.btn-secondary:hover {
    background: var(--card-border);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #45a049;
}

.btn-warning {
    background: var(--warning);
    color: white;
}

.btn-warning:hover {
    background: #e68a00;
}

.btn-danger {
    background: var(--error);
    color: white;
}

.btn-danger:hover {
    background: #da190b;
}

/* Controls */
.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.rcon-command {
    display: flex;
    margin-bottom: 10px;
}

.rcon-command input {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--input-border);
    border-radius: 5px 0 0 5px;
    background: var(--input-bg);
    color: var(--text);
}

.rcon-command button {
    border-radius: 0 5px 5px 0;
}

.rcon-response {
    padding: 10px;
    background: var(--input-bg);
    border-radius: 5px;
    border: 1px solid var(--input-border);
    min-height: 40px;
    display: none;
}

/* Refresh Button */
.refresh-btn {
    display: block;
    margin: 20px auto;
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
}

.refresh-btn:hover {
    background: var(--primary-light);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    border: 1px solid var(--card-border);
}

.modal h2 {
    margin-bottom: 20px;
    color: var(--primary-light);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--input-border);
    border-radius: 5px;
    background: var(--input-bg);
    color: var(--text);
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.form-actions button {
    flex: 1;
}

/* User Info im Header */
.user-info {
    color: var(--text-secondary);
    font-size: 0.9em;
    margin-right: 10px;
}

/* Kompatibilitäts-Status */
#compatibility-status {
    font-weight: bold;
}

/* Responsive Verbesserungen */
@media (max-width: 768px) {
    .header-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .user-info {
        order: -1;
        margin-right: 0;
    }
}

/* RCON Response Styling */
.rcon-response {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 5px;
    padding: 10px;
    margin-top: 10px;
    font-family: monospace;
    font-size: 0.9em;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 200px;
    overflow-y: auto;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: var(--text-secondary);
    font-size: 0.9em;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard {
        grid-template-columns: 1fr;
    }
    
    .header-top {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .controls {
        flex-direction: column;
    }
}

/* Notification System */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 300px;
    max-width: 500px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    border-left: 4px solid;
}

.notification.hidden {
    display: none;
}

.notification-success {
    background-color: var(--success);
    border-left-color: #2e7d32;
}

.notification-error {
    background-color: var(--error);
    border-left-color: #c62828;
}

.notification-warning {
    background-color: var(--warning);
    border-left-color: #ef6c00;
    color: #333;
}

.notification-info {
    background-color: var(--primary);
    border-left-color: var(--primary-dark);
}

.notification-message {
    flex: 1;
    margin-right: 15px;
    word-break: break-word;
}

.notification-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.5em;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.notification-close:hover {
    background-color: rgba(255,255,255,0.2);
}

/* User Info im Header */
.user-info {
    color: var(--text-secondary);
    font-size: 0.9em;
    margin-right: 10px;
}

/* Responsive Verbesserungen */
@media (max-width: 768px) {
    .notification {
        left: 10px;
        right: 10px;
        min-width: auto;
        max-width: none;
    }
    
    .header-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .user-info {
        order: -1;
        margin-right: 0;
    }
}

/* Server Icon Styling */
.server-icon {
    text-align: center;
    margin-bottom: 20px;
}

.server-icon img {
    width: 150px;
    height: 150px;
    border-radius: 12px;
    border: 3px solid var(--card-border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.server-icon img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

/* MOTD Styling für Farben */
#server-motd {
    line-height: 1.4;
}

#server-motd span {
    transition: all 0.2s ease;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .server-icon img {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .server-icon img {
        width: 100px;
        height: 100px;
    }
}

/* RCON Response Styling */
.rcon-response {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 5px;
    padding: 10px;
    margin-top: 10px;
    font-family: monospace;
    font-size: 0.9em;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 200px;
    overflow-y: auto;
}

/* Server Icon Styling */
.server-icon {
    text-align: center;
    margin-bottom: 15px;
}

.server-icon img {
    border-radius: 8px;
    border: 2px solid var(--card-border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* MOTD Styling für bessere Darstellung */
#server-motd {
    line-height: 1.4;
    max-height: 80px;
    overflow-y: auto;
    padding: 5px;
    background: var(--input-bg);
    border-radius: 5px;
    border: 1px solid var(--input-border);
    word-wrap: break-word;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

/* Debug Info Container */
#debug-info {
    max-height: 300px;
    overflow-y: auto;
}

#debug-details {
    max-height: 200px;
    overflow-y: auto;
    font-size: 0.8em;
}

/* Responsive Anpassungen für MOTD */
@media (max-width: 768px) {
    #server-motd {
        max-height: 60px;
        font-size: 0.8em;
    }
}

/* Plugin List Anpassungen */
.plugin-list {
    max-height: 150px;
    overflow-y: auto;
}

/* Card Anpassungen für besseres Layout */
.card {
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

.card h2 {
    flex-shrink: 0;
}

.card > div:not(h2) {
    flex: 1;
    overflow: hidden;
}

/**
 * styles.css
 * Version: 7.0
 * Author: Natural.yt
 * Description: Erweiterte Version mit Modal-Support und Plugin-Wolke
 * Changes:
 * - Modal Styling
 * - Plugin Tag-Wolke
 * - Spieler-Flaggen
 * - Fake-Spieler Styling
 */

/* ===== MODAL STYLES ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    overflow: auto;
}

.modal-content {
    background: var(--card-bg);
    margin: 5% auto;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--card-border);
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2em;
    color: var(--text);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.modal-close:hover {
    background-color: var(--input-bg);
}

.modal h3 {
    color: var(--primary-light);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--card-border);
}

.debug-section {
    margin-bottom: 25px;
    padding: 15px;
    background: var(--input-bg);
    border-radius: 5px;
    border: 1px solid var(--input-border);
}

.debug-section h4 {
    color: var(--accent);
    margin-bottom: 10px;
}

.debug-section pre {
    background: var(--card-bg);
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
    font-size: 0.9em;
    max-height: 300px;
    overflow-y: auto;
}

/* ===== PLUGIN TAG WOLKE ===== */
#plugin-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
    align-items: flex-start;
}

.plugin-tag {
    background: var(--primary-dark);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    color: white;
    transition: all 0.3s ease;
    border: 1px solid var(--primary);
    cursor: default;
}

.plugin-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.plugin-tag.small {
    font-size: 0.75em;
    padding: 4px 10px;
}

.plugin-tag.medium {
    font-size: 0.85em;
    padding: 6px 12px;
}

.plugin-tag.large {
    font-size: 0.95em;
    padding: 8px 14px;
    background: var(--primary);
}

/* ===== SPIELER LISTE ERWEITERUNGEN ===== */
.player-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.player-flag {
    font-size: 1.2em;
    margin-left: auto;
}

.fake-player {
    opacity: 0.7;
    background: linear-gradient(90deg, transparent, var(--input-bg), transparent);
}

.fake-badge {
    background: var(--warning);
    color: #333;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.7em;
    font-weight: bold;
}

/* ===== SERVER STEUERUNG ERWEITERUNGEN ===== */
.advanced-controls {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--card-border);
}

.advanced-controls h3 {
    color: var(--primary-light);
    margin-bottom: 10px;
    font-size: 1.1em;
}

.control-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

/* ===== USER MANAGEMENT STYLES ===== */
.user-management {
    margin-top: 20px;
}

.user-management h3 {
    color: var(--primary-light);
    margin-bottom: 15px;
}

.user-list {
    max-height: 300px;
    overflow-y: auto;
}

.user-list ul {
    list-style: none;
    padding: 0;
}

.user-list li {
    padding: 10px;
    border-bottom: 1px solid var(--card-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-list li:last-child {
    border-bottom: none;
}

.user-actions {
    display: flex;
    gap: 5px;
}

/* ===== RESPONSIVE ANPASSUNGEN ===== */
@media (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 20px;
    }
    
    .control-grid {
        grid-template-columns: 1fr;
    }
    
    .plugin-tag {
        font-size: 0.8em;
        padding: 5px 10px;
    }
    
    .player-info {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .player-flag {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .modal-content {
        margin: 5% auto;
        padding: 15px;
    }
    
    .debug-section {
        padding: 10px;
    }
    
    .plugin-tag {
        font-size: 0.75em;
        padding: 4px 8px;
    }
}

/* ===== FORM STYLES FÜR PASSWORT ÄNDERUNG ===== */
.password-form {
    max-width: 400px;
    margin: 0 auto;
}

.password-form .form-group {
    margin-bottom: 20px;
}

.password-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--text);
}

.password-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--input-border);
    border-radius: 5px;
    background: var(--input-bg);
    color: var(--text);
    font-size: 1em;
}

.password-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.2);
}

.password-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.password-actions button {
    flex: 1;
}

/**
 * styles.css
 * Version: 8.0
 * Author: Natural.yt
 * Description: Erweiterte Version mit Texturen-Modal und Plugin-Wolke
 * Changes:
 * - Texturen-Modal Styling
 * - Plugin-Wolke Animation
 * - Verbesserte Spielerliste mit Flaggen
 * - Responsive Verbesserungen
 */

/* ===== TEXTUREN MODAL ===== */
#textures-content {
    max-height: 70vh;
    overflow-y: auto;
}

.texture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.texture-card {
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.texture-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.texture-card img {
    max-width: 100%;
    border-radius: 4px;
    border: 1px solid var(--input-border);
}

.texture-type {
    font-weight: bold;
    margin-bottom: 8px;
    text-transform: capitalize;
    color: var(--primary-light);
}

/* ===== PLUGIN WOLKE ANIMATION ===== */
.plugin-tag {
    background: var(--primary-dark);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    color: white;
    transition: all 0.3s ease;
    border: 1px solid var(--primary);
    cursor: default;
    animation: float 3s ease-in-out infinite;
}

.plugin-tag:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.plugin-tag.small {
    font-size: 0.75em;
    padding: 4px 10px;
    animation-delay: 0s;
}

.plugin-tag.medium {
    font-size: 0.85em;
    padding: 6px 12px;
    animation-delay: 0.5s;
}

.plugin-tag.large {
    font-size: 0.95em;
    padding: 8px 14px;
    background: var(--primary);
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* ===== LÄNDERFLAGGEN ===== */
.player-flag {
    font-size: 1.2em;
    margin-left: auto;
    margin-right: 8px;
}

/* ===== RESPONSIVE VERBESSERUNGEN ===== */
@media (max-width: 768px) {
    .texture-grid {
        grid-template-columns: 1fr;
    }
    
    .plugin-tag {
        font-size: 0.8em;
        padding: 5px 10px;
    }
    
    .player-info {
        flex-wrap: wrap;
    }
    
    .player-flag {
        margin-left: 0;
        order: 2;
        width: 100%;
        text-align: right;
        margin-top: 4px;
    }
}

/* ===== LOADING ANIMATION FÜR AVATARE ===== */
.player-avatar.loading {
    background: linear-gradient(90deg, var(--input-bg) 25%, var(--card-border) 50%, var(--input-bg) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===== SERVER CONTROL VERBESSERUNGEN ===== */
.control-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
    margin: 10px 0;
}

.control-grid button {
    padding: 8px 12px;
    font-size: 0.9em;
}

/* ===== MODAL SCROLLBAR STYLING ===== */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: var(--input-bg);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}