SielBotWebsite/static/css/panel.css
2026-09-29 06:34:54 +02:00

146 lines
7.6 KiB
CSS

/* Siel-Panel - Farben wie lumina-ascendens.de, dazu das Smaragdgruen aus dem Elyos-Allianz-Logo */
:root {
--bg: #161616;
--bg-panel: #212121;
--bg-panel-alt: #2b2b2b;
--border: #383838;
--text: #e8e8e8;
--text-muted: #a0a0a0;
--gold: #c9a227;
--gold-hover: #e0b930;
--emerald: #2fbf5a;
--danger: #d9534f;
--success: #4caf50;
--discord: #5865f2;
--discord-hover: #4752c4;
--sidebar: 260px;
}
* { box-sizing: border-box; }
* { scrollbar-width: thin; scrollbar-color: rgba(201, 162, 39, 0.3) transparent; }
body {
margin: 0;
background: var(--bg);
color: var(--text);
font-family: "Segoe UI", Roboto, Arial, sans-serif;
line-height: 1.5;
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-hover); text-decoration: underline; }
h1 { font-size: 1.6rem; margin: 0 0 1.25rem; color: var(--gold); font-weight: 600; }
h2 { font-size: 1.1rem; margin: 0 0 0.5rem; }
.muted { color: var(--text-muted); }
.small { font-size: 0.85rem; }
.nowrap { white-space: nowrap; }
input, select, textarea, button { font: inherit; }
/* ---------- Layout ---------- */
.shell { display: flex; min-height: 100vh; }
.nav-toggle { display: none; }
.topbar { display: none; }
.sidebar {
width: var(--sidebar);
flex-shrink: 0;
background: var(--bg-panel);
border-right: 1px solid var(--border);
display: flex;
flex-direction: column;
padding: 1.25rem 1rem 1rem;
position: sticky;
top: 0;
height: 100vh;
overflow-y: auto;
}
.brand img { display: block; width: 100%; max-width: 210px; margin: 0 auto; }
.brand-sub { text-align: center; color: var(--text-muted); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; margin: 0.35rem 0 1.25rem; }
nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.nav-heading { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin: 1.1rem 0.6rem 0.35rem; }
.nav-link { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0.7rem; border-radius: 6px; color: var(--text); }
.nav-link:hover { background: var(--bg-panel-alt); color: var(--text); text-decoration: none; }
.nav-link.active { background: rgba(201, 162, 39, 0.14); color: var(--gold); box-shadow: inset 3px 0 0 var(--gold); }
.nav-link.disabled { color: var(--text-muted); cursor: default; }
.nav-link.disabled:hover { background: none; }
.nav-link small { font-size: 0.7rem; border: 1px solid var(--border); border-radius: 999px; padding: 0 0.45rem; }
.me { display: flex; align-items: center; gap: 0.6rem; border-top: 1px solid var(--border); padding-top: 0.9rem; margin-top: 1rem; }
.me-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-name small { display: block; color: var(--text-muted); font-size: 0.75rem; }
.content { flex: 1; min-width: 0; padding: 2rem 2.25rem; max-width: 1200px; }
/* ---------- Bausteine ---------- */
.avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.avatar-sm { width: 26px; height: 26px; }
.panel { background: var(--bg-panel); border: 1px solid var(--border); border-radius: 10px; padding: 1.25rem 1.4rem; margin-bottom: 1.25rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.card { background: var(--bg-panel); border: 1px solid var(--border); border-radius: 10px; padding: 1rem 1.2rem; }
.card-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 0.35rem; }
.stat { display: flex; align-items: center; gap: 0.5rem; font-size: 1.2rem; font-weight: 600; }
.stat-sm { font-size: 1rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-on { background: var(--emerald); box-shadow: 0 0 8px var(--emerald); }
.dot-off { background: var(--text-muted); }
.roadmap { margin: 0; padding-left: 1.2rem; }
.roadmap li { margin: 0.3rem 0; }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { padding: 0.25rem 0; }
.btn {
display: inline-block; border: 0; border-radius: 6px; cursor: pointer;
background: var(--gold); color: #1a1a1a; font-weight: 600; padding: 0.55rem 1.1rem;
}
.btn:hover { background: var(--gold-hover); color: #1a1a1a; text-decoration: none; }
.btn-sm { padding: 0.3rem 0.7rem; font-size: 0.85rem; }
.btn-danger { background: transparent; color: var(--danger); border: 1px solid var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-discord { background: var(--discord); color: #fff; width: 100%; text-align: center; padding: 0.75rem 1rem; }
.btn-discord:hover { background: var(--discord-hover); color: #fff; }
.btn-link { background: none; border: 0; color: var(--text-muted); cursor: pointer; font-size: 0.8rem; padding: 0; }
.btn-link:hover { color: var(--gold); }
.field { display: flex; flex-direction: column; gap: 0.3rem; margin: 0.9rem 0 1.1rem; max-width: 520px; }
.field > span { font-size: 0.85rem; color: var(--text-muted); }
input[type=text], select, textarea {
background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 6px; padding: 0.55rem 0.7rem; width: 100%;
}
input[type=text]:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); }
.checks, .areas-form { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; align-items: center; }
.check { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.9rem; cursor: pointer; }
.check input { accent-color: var(--gold); }
.flash { border-radius: 8px; padding: 0.7rem 1rem; margin-bottom: 1rem; border: 1px solid; }
.flash-success { border-color: rgba(76, 175, 80, 0.5); background: rgba(76, 175, 80, 0.1); }
.flash-error { border-color: rgba(217, 83, 79, 0.55); background: rgba(217, 83, 79, 0.1); }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); font-weight: 600; padding: 0.5rem; border-bottom: 1px solid var(--border); }
.table td { padding: 0.65rem 0.5rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.person { display: flex; align-items: center; gap: 0.6rem; }
/* ---------- Anmeldung ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem 16px;
background: radial-gradient(circle at 50% 30%, rgba(47, 191, 90, 0.08), transparent 55%), var(--bg); }
.login-card { width: 100%; max-width: 400px; background: var(--bg-panel); border: 1px solid var(--border); border-radius: 14px; padding: 2rem 1.75rem; text-align: center; }
.login-logo { width: 100%; max-width: 300px; margin-bottom: 0.5rem; }
.login-card h1 { font-size: 1.25rem; margin-bottom: 0.25rem; }
.login-card .flash { text-align: left; }
.login-card .btn { margin-top: 1rem; }
/* ---------- Handy ---------- */
@media (max-width: 860px) {
.shell { flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 16px; background: var(--bg-panel); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.topbar-menu { font-size: 1.4rem; cursor: pointer; color: var(--gold); line-height: 1; }
.topbar-logo { height: 34px; width: auto; }
.sidebar { position: fixed; left: 0; top: 0; z-index: 30; transform: translateX(-100%); transition: transform 0.2s; box-shadow: 0 0 30px rgba(0, 0, 0, 0.6); }
.nav-toggle:checked ~ .sidebar { transform: none; }
.content { padding: 1.25rem 16px; }
}