* { box-sizing:border-box; }
body {
    background:#111;
    color:#eee;
    font-family:system-ui, sans-serif;
    display:flex;
    align-items:center;       /* VERTIKAL zentriert */
    justify-content:center;   /* HORIZONTAL zentriert */
    min-height:70vh;
    padding:50px;
}
.box {
    background:#1b1b1b;
    padding:20px 24px;
    border-radius:10px;
    box-shadow:0 0 15px rgba(0,0,0,0.6);
    max-width:70%;   /* sinnvolle Max-Breite */
    width:100%;         /* füllt bis max-width */
    /* KEIN height/max-height nötig */
    position:relative;  /* wichtig für .top-right */
}
h2 { margin-top:0; }
h3 { margin-top:16px; }
label { display:block; margin-top:8px; margin-bottom:4px; }
input, select {
    width:100%;
    padding:8px 10px;
    border-radius:6px;
    border:1px solid #444;
    background:#111;
    color:#eee;
    margin-bottom:10px;
}
.row { display:flex; gap:8px; }
.row > div { flex:1; }
button {
    padding:8px 10px;
    border-radius:6px;
    border:none;
    cursor:pointer;
    background:#4b7cff;
    color:#fff;
    font-weight:600;
    margin-right:6px;
}
button[name="action"][value="stop"],
.icon-btn {
    background:#ff4b4b;
}
button:hover,
.icon-btn:hover,
.copy-btn:hover {
    filter:brightness(1.1);
}
.msg { margin-top:10px; font-size:0.9rem; }
code {
    background:#000;
    padding:2px 4px;
    border-radius:4px;
    font-size:0.85rem;
    word-break:break-all;
}
table {
    width:100%;
    border-collapse:collapse;
    margin-top:16px;
    font-size:0.85rem;
}
th, td {
    padding:6px 8px;
    border-bottom:1px solid #333;
    text-align:left;
    white-space:nowrap;
}
th {
    background:#222;
}
.icon-btn,
.copy-btn {
    padding:4px 6px;
    border-radius:4px;
    border:none;
    cursor:pointer;
    font-size:0.9rem;
}
.copy-btn {
    background:#3b9bff;
    margin-right:4px;
}
.server-header {
    margin-top:18px;
    font-weight:600;
}
.hint {
    font-size:0.8rem;
    color:#aaa;
    margin-top:4px;
}
.top-right {
    position:absolute;
    top:12px;
    right:16px;
    font-size:0.8rem;
    color:#bbb;
}
.top-right a {
    color:#ff7b7b;
    text-decoration:none;
}
.top-right a:hover {
    text-decoration:underline;
}
.role-badge {
    display:inline-block;
    padding:2px 6px;
    border-radius:4px;
    font-size:0.75rem;
    background:#333;
}
.role-admin { background:#b83232; }
.role-user  { background:#3264b8; }
hr {
    border:0;
    border-top:1px solid #333;
    margin:20px 0;
}

.home:link {
    text-decoration:none;
    color: white;
}
.home:visited {
    text-decoration:none;
    color: white;
}
.home:hover {
    color: Gainsboro;
    text-decoration: none;
}

/* Slot Icons */
.hint .slot-icon {
    margin-right: 0.45rem;
    font-size: 1.1em;
    display: inline-block;
}

/* Stufen */
.slots-ok {
    color: #8dff9c;
}
.slots-warning {
    color: #ffd27f;
}
.slots-critical {
    color: #ff6b6b;
    font-weight: bold;
}

/* Kritischer Puls */
.slots-critical .slot-icon {
    animation: slot-pulse 1s ease-in-out infinite;
}
@keyframes slot-pulse {
    0%   { transform: scale(1);   opacity: 1; }
    50%  { transform: scale(1.35); opacity: 0.55; }
    100% { transform: scale(1);   opacity: 1; }
}

/* Alerts */
.alert {
    padding: 10px 14px;
    border-radius: 6px;
    margin: 12px 0;
    font-weight: bold;
}
.alert-warning {
    background: #442222;
    color: #ff6b6b;
    border: 1px solid #aa4444;
}

/* Neue Button-Typen */
.btn-primary {
    background: #0066ff;
    border: 1px solid #0052cc;
    color: #fff;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}
.btn-primary:hover {
    background: #0052cc;
}
.btn-secondary {
    background: #333;
    border: 1px solid #555;
    color: #ddd;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    margin-right: 6px;
    margin-top: 8px;
}
.btn-secondary:hover {
    background: #444;
}

/* Fade-Panel für Registrierung + Card-Glow */
.fade-panel {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease;
    margin-top: 10px;
}
.fade-panel.show {
    max-height: 500px;
    opacity: 1;
}
#register-panel {
    background: rgba(20, 20, 30, 0.95);
    border-radius: 10px;
    padding: 12px 14px 16px;
    box-shadow: 0 0 18px rgba(0, 120, 255, 0.25);
    border: 1px solid rgba(0, 120, 255, 0.35);
}

/* Mobile-Optimierung */
@media (max-width: 600px) {
    .box {
        width: 95%;
        padding: 12px;
    }
    .box h2 {
        font-size: 1.1rem;
    }
    .row {
        flex-direction: column;
        gap: 6px;
    }
    input[type="text"],
    input[type="password"],
    input[type="number"],
    select {
        width: 100%;
        box-sizing: border-box;
    }
    table {
        font-size: 0.85rem;
    }
}

/* Admin-Aktionsleiste in der User-Tabelle */
.admin-actions {
    display: flex;
    gap: 4px;
    align-items: center;
}

/* Allgemeiner Icon-Link für Aktionen */
.action-icon {
    display: inline-flex;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.9rem;
    margin-right: 4px;
    cursor: pointer;
    border: 1px solid transparent;
}

/* Farben pro Aktion */
.icon-copy {
    background: #003a5a;
    color: #6bb8ff;
    border-color: #1f6fb9;
}

/* Play-Button (NEU – passend zu deinem Screenshot) */
.icon-play {
    background: #003a1a;
    color: #8dff9c;
    border-color: #1fb96a;
}

.icon-stop {
    background: #3a0000;
    color: #ff6b6b;
    border-color: #aa3a3a;
}

.icon-lock {
    background: #3a2a00;
    color: #ffd27f;
    border-color: #b98a1f;
}

.icon-unlock {
    background: #003a1a;
    color: #8dff9c;
    border-color: #1fb96a;
}

.icon-reset {
    background: #3a0000;
    color: #ffb3b3;
    border-color: #ff6b6b;
}

.icon-role {
    background: #001e3a;
    color: #9cc9ff;
    border-color: #4da3ff;
}

.icon-delete {
    background: #4a0000;
    color: #ff8080;
    border-color: #d93a3a;
}

.action-icon:hover {
    filter: brightness(1.15);
}
/* Hinweis-Farben für Registrierung */
.hint-text {
    font-size: 0.8rem;
    margin-top: -6px;
    margin-bottom: 8px;
    display: block;
}

.hint-text.error {
    color: #ff6b6b !important;   /* ROT */
}

.hint-text.ok {
    color: #8dff9c !important;   /* GRÜN */
}
.password-wrapper {
    position: relative;
}

.password-wrapper input {
    width: 100%;
    padding-right: 42px;   /* Platz für das Auge */
}

/* Auge-Icon im Feld (Emoji optisch zentriert) */
.pw-toggle {
    position: absolute;
    right: 12px;
    top: 40%;
    transform: translateY(-56%);  /* leicht höher als 50%, damit das Emoji mittig wirkt */
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    color: #bbb;
    user-select: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pw-toggle:hover {
    color: #fff;
}

.mobile-register-info {
    display: none;
    font-size: 0.8rem;
    color: #ccc;
    margin-top: 8px;
}

.channel-suggestions {
    margin-top: 4px;
    background: #111;
    border: 1px solid #333;
    border-radius: 6px;
    max-height: 180px;
    overflow-y: auto;
    font-size: 0.85rem;
	display: none;
}

.channel-suggestion-item {
    padding: 4px 8px;
    cursor: pointer;
}

.channel-suggestion-item:hover {
    background: #222;
}
       
.channel-suggestion-item .match-green {
    color: #ffd27f;
    font-weight: 600;
}
