body {
    font-family: sans-serif;
    text-align: center;
    padding: 50px;
    background: #1a1a1a;
    color: white;
}

button {
    padding: 12px 16px;
    margin: 0;
    font-size: 16px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
}

button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.start { background-color: #2ecc71; color: white; }
.stop  { background-color: #e74c3c; color: white; display: none; }
.restart { background-color: #f39c12; color: white; display: none; }

#status {
    font-size: 18px;
    margin: 0;
}

.online  { color: #2ecc71; }
.offline { color: #e74c3c; }
.pending { color: #f39c12; }

/* Login screen */
#loginScreen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 80vh;
}

#loginScreen input {
    padding: 12px;
    font-size: 16px;
    width: 300px;
    background: #0d0d0d;
    color: white;
    border: 1px solid #444;
    border-radius: 5px;
    margin-bottom: 10px;
}

#loginScreen button {
    background: #3498db;
    color: white;
}

#loginError {
    color: #e74c3c;
    margin-top: 10px;
    display: none;
}

/* Panel */
#panel { display: none; }

/* Console */
#console {
    width: 80%;
    background: #0d0d0d;
    color: #00ff00;
    font-family: monospace;
    font-size: 14px;
    padding: 10px;
    border: 1px solid #333;
    border-radius: 5px;
    resize: vertical;
}

#commandInput {
    width: 68%;
    padding: 10px;
    margin-top: 8px;
    background: #0d0d0d;
    color: white;
    border: 1px solid #333;
    border-radius: 5px;
    font-size: 14px;
}

#sendBtn {
    padding: 10px 20px;
    margin-left: 5px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
}

#controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

#consoleSection {
    margin-top: 30px;
}

/* Navbar */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 160px;
    background: #111;
    display: flex;
    flex-direction: column;
    padding: 20px 10px;
    gap: 10px;
    border-right: 1px solid #333;
}

.navBtn {
    background: transparent;
    color: #aaa;
    font-size: 15px;
    padding: 10px 15px;
    text-align: left;
    border-radius: 5px;
    cursor: pointer;
    border: none;
    transition: background 0.2s, color 0.2s;
}

.navBtn:hover {
    background: #222;
    color: white;
}

.navBtn.active {
    background: #2ecc71;
    color: white;
}

/* Offset panel content to account for navbar */
#panel {
    padding-left: 180px;
}

/* Player list */
#playerList {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.playerCard {
    background: #111;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 12px 20px;
    width: 500px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.playerName {
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.playerName img {
    width: 32px;
    height: 32px;
    border-radius: 4px;
}

.playerActions {
    display: flex;
    gap: 8px;
}

.playerActions button {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    color: white;
}

.btn-kick { background: #e67e22; }
.btn-ban  { background: #e74c3c; }
.btn-op   { background: #2ecc71; }
.btn-deop { background: #888;    }

/* Config */
#configForm {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.configRow {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 500px;
    gap: 5px;
}

.configRow label {
    color: #aaa;
    font-size: 14px;
}

.configRow input,
.configRow select {
    width: 100%;
    padding: 10px;
    background: #0d0d0d;
    color: white;
    border: 1px solid #333;
    border-radius: 5px;
    font-size: 15px;
}

#saveConfigBtn {
    background: #2ecc71;
    color: white;
    padding: 10px 30px;
    font-size: 15px;
    border-radius: 5px;
    cursor: pointer;
    border: none;
}