Files

252 lines
7.4 KiB
CSS

:root {
--bg: #0b1020;
--panel: #11162a;
--panel-soft: #151b30;
--text: #e6e8ef;
--muted: #a6adc8;
--brand: #4f8cff;
--brand-weak: rgba(79, 140, 255, 0.15);
--success: #22c55e;
--warn: #f59e0b;
--danger: #ef4444;
--border: #23304f;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial;
color: var(--text);
background: radial-gradient(1200px 800px at 20% -10%, #1a2140 0%, var(--bg) 45%), var(--bg);
margin: 0;
}
header {
position: sticky; top: 0; z-index: 10;
background: rgba(10, 14, 28, 0.7);
backdrop-filter: blur(8px);
border-bottom: 1px solid var(--border);
}
header .inner {
display: flex; align-items: center; justify-content: space-between;
gap: 1rem; padding: 0.75rem 1rem; max-width: 1400px; margin: 0 auto;
}
header h1 { font-size: 1.05rem; margin: 0; letter-spacing: 0.4px; }
nav a { text-decoration: none; color: var(--muted); margin-left: 0.75rem; }
nav a:hover { color: var(--text); }
.container { max-width: 1400px; margin: 1.25rem auto; padding: 0 1rem; }
h2 { margin: 0.25rem 0 0.75rem; font-size: 1.2rem; }
h3 { margin: 0.5rem 0 0.5rem; font-size: 1.05rem; color: var(--muted); }
.muted { color: var(--muted); }
.card {
background: linear-gradient(180deg, var(--panel) 0%, var(--panel-soft) 100%);
border: 1px solid var(--border);
border-radius: 10px; padding: 1rem; box-shadow: 0 6px 24px rgba(0,0,0,0.25);
}
.card + .card { margin-top: 1rem; }
.badge { display: inline-block; padding: 0.2rem 0.5rem; border-radius: 999px; font-size: 0.75rem; border: 1px solid var(--border); background: #0e1425; color: var(--muted); }
.badge.success { color: #0f2f1d; background: #d1fae5; border-color: #86efac; }
.badge.warn { color: #3b2a07; background: #fef3c7; border-color: #fcd34d; }
.badge.danger { color: #4b0a0a; background: #fee2e2; border-color: #fca5a5; }
.badge.brand { color: #0a2a62; background: #dbe8ff; border-color: #9fc0ff; }
.table-wrap { overflow-x: auto; margin: 0 -1rem; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; min-width: 800px; }
th, td { border: 1px solid var(--border); padding: 12px 15px; vertical-align: top; }
th { background: #0f152a; color: var(--muted); text-align: left; position: sticky; top: 0; font-weight: 600; }
tbody tr:hover { background: #0e1426; }
/* pre, code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; } */
pre {
background: #0b1121;
padding: 0.75rem;
border-radius: 8px;
white-space: pre-wrap;
word-wrap: break-word;
overflow-wrap: break-word;
border: 1px solid var(--border);
max-width: 100%;
overflow-x: auto;
}
/* Chat-style messages */
.messages { display: flex; flex-direction: column; gap: 0.75rem; }
.msg-item { display: flex; }
.msg-item.incoming { justify-content: flex-start; }
.msg-item.outgoing { justify-content: flex-end; }
.msg-bubble {
max-width: 800px; width: fit-content;
background: #0f152a; border: 1px solid var(--border); border-radius: 12px;
padding: 0.75rem 0.9rem; box-shadow: 0 4px 20px rgba(0,0,0,0.2);
word-wrap: break-word;
overflow-wrap: break-word;
overflow-x: auto;
}
.incoming .msg-bubble { background: #0f152a; }
.outgoing .msg-bubble { background: var(--brand-weak); border-color: #345fb0; }
.msg-meta {
font-size: 0.78rem;
color: var(--muted);
margin-bottom: 0.35rem;
word-wrap: break-word;
overflow-wrap: break-word;
}
.msg-subject { font-size: 0.9rem; margin-bottom: 0.25rem; color: var(--text); }
.msg-body {
font-size: 0.92rem;
word-wrap: break-word;
overflow-wrap: break-word;
}
.row { display: flex; gap: 1rem; flex-wrap: wrap; }
.col { flex: 1 1 360px; }
/* Links */
a { color: var(--brand); }
a:hover { text-decoration: underline; }
/* Small helpers */
.pill {
padding: 0.15rem 0.5rem;
border-radius: 999px;
border: 1px solid var(--border);
word-wrap: break-word;
overflow-wrap: break-word;
display: inline-block;
}
.right { text-align: right; }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; }
/* Forms */
label { display: block; font-size: 0.9rem; color: var(--muted); }
input[type="text"], input[type="email"], input[type="number"], input[type="password"], textarea, select {
width: 100%;
background: #0b1121;
color: var(--text);
border: 1px solid var(--border);
border-radius: 8px;
padding: 0.5rem 0.6rem;
outline: none;
}
input:focus, textarea:focus, select:focus { border-color: #3c64b1; box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.2); }
button {
appearance: none; border: 0; cursor: pointer;
background: linear-gradient(180deg, #5a8dff 0%, #3c64b1 100%);
color: white; padding: 0.55rem 0.9rem; border-radius: 8px;
box-shadow: 0 6px 18px rgba(63, 99, 183, 0.35);
}
button:hover { filter: brightness(1.05); }
/* Alert styles */
.alert {
padding: 0.75rem 1rem;
border-radius: 8px;
border: 1px solid;
font-size: 0.9rem;
/* Smooth hide animation support */
transition: opacity 0.35s ease, transform 0.35s ease;
}
.alert.success {
background: rgba(34, 197, 94, 0.1);
border-color: var(--success);
color: #4ade80;
}
.alert.warn {
background: rgba(245, 158, 11, 0.1);
border-color: var(--warn);
color: #fbbf24;
}
.alert.danger {
background: rgba(239, 68, 68, 0.1);
border-color: var(--danger);
color: #f87171;
}
/* Generic fade-out helper when dismissing alerts */
.alert.fade-out {
opacity: 0;
transform: translateY(-4px);
pointer-events: none;
}
/* Notification banner */
.notify-banner {
position: relative; /* lives under the header */
max-width: 1400px;
margin: 0.5rem auto 0; /* small gap under header */
padding: 0 1rem; /* match container gutter */
}
.notify {
pointer-events: auto;
width: 100%;
display: flex;
align-items: center;
gap: 10px;
--accent: #39518a;
background:
linear-gradient(180deg, var(--panel) 0%, var(--panel-soft) 100%),
linear-gradient(0deg, rgba(79, 140, 255, 0.06), rgba(79, 140, 255, 0.06));
border: 1px solid var(--border);
border-left: 4px solid var(--accent);
color: var(--text);
border-radius: 10px;
box-shadow: 0 8px 22px rgba(0,0,0,0.28);
padding: 0.75rem 0.75rem 0.75rem 0.9rem;
transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}
.notify.info {
--accent: #4f8cff;
background:
linear-gradient(180deg, var(--panel) 0%, var(--panel-soft) 100%),
linear-gradient(0deg, rgba(79, 140, 255, 0.08), rgba(79, 140, 255, 0.08));
}
.notify.success {
--accent: var(--success);
background:
linear-gradient(180deg, var(--panel) 0%, var(--panel-soft) 100%),
linear-gradient(0deg, rgba(34, 197, 94, 0.10), rgba(34, 197, 94, 0.10));
}
.notify.warn {
--accent: var(--warn);
background:
linear-gradient(180deg, var(--panel) 0%, var(--panel-soft) 100%),
linear-gradient(0deg, rgba(245, 158, 11, 0.10), rgba(245, 158, 11, 0.10));
}
.notify.danger {
--accent: var(--danger);
background:
linear-gradient(180deg, var(--panel) 0%, var(--panel-soft) 100%),
linear-gradient(0deg, rgba(239, 68, 68, 0.10), rgba(239, 68, 68, 0.10));
}
.notify-content { font-size: 0.95rem; line-height: 1.35rem; flex: 1; }
.notify-close {
margin-left: 8px;
background: transparent;
color: var(--muted);
border: 1px solid transparent;
border-radius: 6px;
padding: 2px 6px;
font-size: 18px;
line-height: 1;
}
.notify-close:hover {
background: #27345a;
border-color: var(--border);
color: #c9d1ff;
}
@media (max-width: 600px) {
.notify-banner { padding: 0 10px; }
.notify { max-width: 100%; min-width: 0; }
}