:root { --bg: #111827; --panel: #0b1220; --text: #e6eef8; --muted: #9aa7b3; --accent: #3b82f6; --danger: #ef4444; --radius: 8px; --online: #22c55e; --offline: #ef4444; } * { box-sizing: border-box; } html, body { margin: 0; padding: 0; font-family: Inter, Arial, sans-serif; background: var(--bg); color: var(--text); overflow-x: hidden; } .root { width: 520px; padding: 12px; display: flex; flex-direction: column; } header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; } header h1 { font-size: 16px; margin: 0; } header .actions button { background: transparent; border: 1px solid var(--muted); color: var(--text); padding: 4px 8px; border-radius: 6px; cursor: pointer; } .main { display: flex; gap: 12px; position: relative; align-items: flex-start; } .server-list { width: 45%; background: var(--panel); padding: 8px; border-radius: var(--radius); flex-shrink: 0; } .detail { flex: 1; background: var(--panel); padding: 8px; border-radius: var(--radius); min-height: 220px; transition: all 0.3s ease; } .detail.full-width { width: 100%; flex: 1 1 100%; } .add-form { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; } .add-form input { padding: 6px 8px; border-radius: 6px; border: 1px solid #21303b; background: #071019; color: var(--text); } .add-form button { padding: 6px 8px; border-radius: 6px; border: none; background: var(--accent); color: white; cursor: pointer; } #serversContainer { list-style: none; margin: 0; padding: 0; } .server-item { display: flex; align-items: center; justify-content: space-between; padding: 8px; margin-bottom: 6px; border-radius: 6px; cursor: pointer; background: rgba(255,255,255,0.02); transition: background 0.2s ease; } .server-item:hover { background: rgba(255,255,255,0.05); } .server-item .meta { display: flex; flex-direction: column; } .server-item .meta .name { font-weight: 600; } .server-item .meta .url { font-size: 11px; color: var(--muted); } .server-item .status-bubble { font-size: 11px; padding: 2px 8px; border-radius: 999px; color: #fff; } .placeholder { color: var(--muted); padding: 12px; font-size: 13px; } .hidden { display: none; } .detail-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; } .server-identity h2 { margin: 0; font-size: 18px; line-height: 1.2; } .server-url { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; } .status-wrapper { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; } .pulsing-dot { width: 10px; height: 10px; border-radius: 50%; background-color: var(--offline); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); animation: pulse-red 2s infinite; } .pulsing-dot.online { background-color: var(--online); animation: pulse-green 2s infinite; } @keyframes pulse-green { 0% {box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);} 70% {box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);} 100% {box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);} } @keyframes pulse-red { 0% {box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);} 70% {box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);} 100% {box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);} } .detail-stats { display: flex; justify-content: space-between; background: rgba(255,255,255,0.05); padding: 10px; border-radius: var(--radius); margin-bottom: 12px; font-size: 13px; } .playerList { list-style: none; padding: 10px 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; /* Das hier setzt die Köpfe wieder in die Mitte */ } .player-item { position: relative; display: flex; flex-direction: column; align-items: center; } .player-avatar { width: 42px; height: 42px; border-radius: 6px; transition: transform 0.2s ease; box-shadow: 0 2px 6px rgba(0,0,0,0.3); border: 2px solid rgba(255,255,255,0.1); } .player-avatar:hover { transform: scale(1.1); border-color: var(--accent); } .player-hover-info { position: absolute; bottom: -28px; background: rgba(0, 0, 0, 0.95); color: white; padding: 3px 10px; border-radius: 4px; font-size: 11px; white-space: nowrap; pointer-events: none; opacity: 0; transform: translateY(5px); transition: all 0.2s ease; z-index: 100; border: 1px solid rgba(255,255,255,0.2); } .player-item:hover .player-hover-info { opacity: 1; transform: translateY(0); } .detailButtons { display: flex; gap: 8px; margin-top: 15px; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 10px; } .detailButtons button { padding: 6px 12px; border-radius: 6px; border: none; cursor: pointer; font-size: 12px; font-weight: 600; } #btnEdit { background: #f59e0b; color: #000; } #btnDelete { background: var(--danger); color: #fff; } ::-webkit-scrollbar { width: 6px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 10px; } ::-webkit-scrollbar-thumb:hover { background: var(--accent); }