Files
Discord_bot/public/styles.css
T
2026-02-03 11:13:27 +01:00

873 lines
16 KiB
CSS

:root {
color-scheme: light;
--bg: #0b1113;
--bg-accent: #122025;
--panel: #101820;
--card: #151f27;
--border: #24313b;
--text: #f4f7fb;
--muted: #9fb0bc;
--primary: #2cb9c6;
--primary-dark: #2197a2;
--success: #33d17a;
--danger: #ff6b6b;
--warning: #f4b860;
--glow: rgba(44, 185, 198, 0.25);
font-family: 'Space Grotesk', 'Satoshi', 'Segoe UI', sans-serif;
}
* {
box-sizing: border-box;
}
[hidden] {
display: none !important;
}
body {
margin: 0;
min-height: 100vh;
background: radial-gradient(1200px 800px at 15% 10%, rgba(44, 185, 198, 0.12), transparent 60%),
radial-gradient(900px 700px at 85% 0%, rgba(244, 184, 96, 0.12), transparent 55%),
linear-gradient(180deg, #0b1113 0%, #0e1418 55%, #0b1113 100%);
color: var(--text);
}
.app {
max-width: 960px;
margin: 0 auto;
padding: 48px 24px 96px;
position: relative;
}
.topbar {
display: flex;
justify-content: space-between;
align-items: center;
gap: 24px;
padding: 28px;
background: linear-gradient(135deg, rgba(44, 185, 198, 0.08), rgba(16, 24, 32, 0.9));
border-radius: 22px;
border: 1px solid rgba(44, 185, 198, 0.35);
margin-bottom: 28px;
box-shadow: 0 20px 40px rgba(5, 8, 10, 0.45);
animation: rise 0.45s ease;
}
.badge {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 6px 12px;
border-radius: 999px;
font-size: 0.85rem;
background: rgba(44, 185, 198, 0.15);
border: 1px solid rgba(44, 185, 198, 0.4);
color: #d7fbff;
text-transform: uppercase;
letter-spacing: 0.06em;
}
.banner {
padding: 14px 18px;
border-radius: 14px;
border: 1px solid rgba(244, 184, 96, 0.35);
background: rgba(244, 184, 96, 0.12);
margin-bottom: 20px;
color: #ffe3b0;
display: none;
}
.muted {
color: var(--muted);
}
a {
color: inherit;
text-decoration: none;
}
button {
font: inherit;
}
input,
select,
textarea {
font: inherit;
}
.app-shell {
max-width: 1280px;
margin: 0 auto;
padding: 24px 24px 60px;
position: relative;
animation: rise 0.45s ease;
}
.navbar {
display: flex;
justify-content: space-between;
align-items: center;
gap: 16px;
padding: 16px 22px;
background: rgba(16, 24, 32, 0.9);
border-radius: 18px;
border: 1px solid var(--border);
margin-bottom: 22px;
box-shadow: 0 14px 30px rgba(5, 8, 10, 0.4);
}
.navbar__brand {
display: flex;
align-items: center;
gap: 12px;
}
.brand-mark {
width: 44px;
height: 44px;
border-radius: 14px;
background: linear-gradient(135deg, var(--primary), #58d6c7);
display: grid;
place-items: center;
font-weight: 700;
color: #031417;
text-shadow: none;
}
.navbar__actions {
display: flex;
gap: 12px;
align-items: center;
}
.error-banner {
display: flex;
justify-content: space-between;
align-items: center;
gap: 16px;
padding: 14px 18px;
border-radius: 12px;
border: 1px solid rgba(255, 107, 107, 0.45);
background: rgba(255, 107, 107, 0.12);
margin-bottom: 16px;
}
.toast-container {
position: fixed;
top: 20px;
right: 24px;
display: flex;
flex-direction: column;
gap: 12px;
z-index: 50;
}
.toast {
opacity: 0;
transform: translateY(-8px);
padding: 12px 16px;
border-radius: 12px;
background: rgba(16, 24, 32, 0.92);
border: 1px solid var(--border);
transition: all 0.2s ease;
}
.toast--visible {
opacity: 1;
transform: translateY(0);
}
.toast--success {
border-color: rgba(59, 165, 93, 0.5);
}
.toast--error {
border-color: rgba(237, 66, 69, 0.5);
}
.layout {
display: grid;
grid-template-columns: 280px 1fr;
gap: 24px;
}
.sidebar {
background: rgba(16, 24, 32, 0.9);
border-radius: 18px;
border: 1px solid var(--border);
padding: 16px;
box-shadow: inset 0 0 0 1px rgba(44, 185, 198, 0.08);
animation: rise 0.45s ease;
}
.sidebar__header {
display: flex;
flex-direction: column;
gap: 12px;
margin-bottom: 16px;
}
.sidebar input[type='search'] {
padding: 10px 12px;
border-radius: 10px;
border: 1px solid var(--border);
background: #111a22;
color: var(--text);
}
.guild-list {
display: flex;
flex-direction: column;
gap: 10px;
}
.guild-item {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 10px 12px;
background: rgba(21, 31, 39, 0.9);
border-radius: 12px;
border: 1px solid transparent;
cursor: pointer;
transition: transform 0.15s ease, border-color 0.2s ease, background 0.2s ease;
}
.guild-item__info {
display: flex;
align-items: center;
gap: 12px;
min-width: 0;
}
.guild-item img {
width: 36px;
height: 36px;
border-radius: 12px;
background: var(--border);
}
.guild-item span {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.guild-item.active {
border-color: var(--primary);
}
.guild-item:hover {
border-color: rgba(44, 185, 198, 0.5);
transform: translateY(-1px);
}
.status-pill {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 4px 10px;
border-radius: 999px;
font-size: 0.75rem;
border: 1px solid var(--border);
}
.status-pill__dot {
width: 8px;
height: 8px;
border-radius: 999px;
background: var(--muted);
}
.status-pill--ok {
border-color: rgba(59, 165, 93, 0.5);
color: #d6f5de;
}
.status-pill--ok .status-pill__dot {
background: var(--success);
}
.status-pill--warn {
border-color: rgba(246, 195, 67, 0.5);
color: #ffe8b1;
}
.status-pill--warn .status-pill__dot {
background: var(--warning);
}
.content {
display: flex;
flex-direction: column;
gap: 16px;
}
.guild-header {
display: flex;
justify-content: space-between;
align-items: center;
gap: 16px;
padding: 18px;
background: rgba(16, 24, 32, 0.9);
border-radius: 18px;
border: 1px solid var(--border);
box-shadow: inset 0 0 0 1px rgba(244, 184, 96, 0.06);
animation: rise 0.45s ease;
}
.guild-header__info {
display: flex;
align-items: center;
gap: 16px;
}
.guild-header__info img {
width: 56px;
height: 56px;
border-radius: 16px;
background: var(--border);
}
.guild-header__status {
display: flex;
align-items: center;
gap: 10px;
margin-top: 6px;
}
.status-badge {
padding: 4px 10px;
border-radius: 999px;
border: 1px solid var(--border);
font-size: 0.8rem;
}
.status-badge--ok {
border-color: rgba(59, 165, 93, 0.5);
color: #d6f5de;
}
.status-badge--warn {
border-color: rgba(246, 195, 67, 0.5);
color: #ffe8b1;
}
.tabs {
display: inline-flex;
gap: 8px;
padding: 6px;
background: rgba(16, 24, 32, 0.9);
border-radius: 14px;
border: 1px solid var(--border);
width: fit-content;
}
.tab {
padding: 8px 16px;
border-radius: 8px;
border: none;
background: transparent;
color: var(--muted);
cursor: pointer;
transition: all 0.2s ease;
}
.tab.active {
background: linear-gradient(135deg, var(--primary), #58d6c7);
color: #041316;
box-shadow: 0 10px 18px rgba(44, 185, 198, 0.25);
}
.panel {
background: rgba(16, 24, 32, 0.9);
border-radius: 18px;
border: 1px solid var(--border);
padding: 18px;
box-shadow: 0 18px 30px rgba(5, 8, 10, 0.35);
animation: rise 0.45s ease;
}
.panel__header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
margin-bottom: 16px;
}
.panel__header--split {
align-items: flex-start;
}
.callout {
padding: 12px;
border-radius: 12px;
border: 1px solid rgba(244, 184, 96, 0.5);
background: rgba(244, 184, 96, 0.14);
margin-bottom: 16px;
}
.field {
display: flex;
flex-direction: column;
gap: 8px;
margin-bottom: 16px;
}
.field label {
font-size: 0.9rem;
color: var(--muted);
}
.field input,
.field select,
.field textarea {
padding: 10px 12px;
border-radius: 10px;
border: 1px solid var(--border);
background: #111a22;
color: var(--text);
}
.field textarea {
min-height: 100px;
resize: vertical;
}
.field__meta {
display: flex;
justify-content: space-between;
align-items: center;
}
.input-row {
display: flex;
gap: 12px;
flex-wrap: wrap;
}
.multi-picker {
background: #111a22;
border-radius: 12px;
border: 1px solid var(--border);
padding: 12px;
display: flex;
flex-direction: column;
gap: 12px;
}
.multi-picker__search {
padding: 8px 10px;
border-radius: 8px;
border: 1px solid var(--border);
background: #0f1820;
color: var(--text);
}
.multi-picker__list {
max-height: 180px;
overflow-y: auto;
display: grid;
gap: 8px;
}
.multi-picker__list label {
display: flex;
align-items: center;
gap: 8px;
font-size: 0.9rem;
}
.chip-list {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.chip {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 6px 10px;
border-radius: 999px;
background: var(--card);
border: 1px solid var(--border);
font-size: 0.85rem;
}
.chip button {
border: none;
background: transparent;
color: var(--muted);
cursor: pointer;
}
.button {
padding: 10px 16px;
border-radius: 10px;
border: 1px solid var(--border);
background: rgba(21, 31, 39, 0.9);
color: var(--text);
cursor: pointer;
transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.button--primary {
background: linear-gradient(135deg, var(--primary), #58d6c7);
border-color: var(--primary);
color: #041316;
box-shadow: 0 10px 18px rgba(44, 185, 198, 0.3);
}
.button--primary:hover {
background: linear-gradient(135deg, var(--primary-dark), #3cc0b1);
transform: translateY(-1px);
}
.button--ghost {
background: transparent;
}
.button:hover {
border-color: rgba(44, 185, 198, 0.35);
transform: translateY(-1px);
}
.button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.tab:focus-visible {
outline: 2px solid rgba(44, 185, 198, 0.6);
outline-offset: 2px;
}
.button-row {
display: flex;
gap: 12px;
flex-wrap: wrap;
}
.command-list {
display: flex;
flex-direction: column;
gap: 16px;
}
.command-card {
background: rgba(21, 31, 39, 0.95);
border-radius: 16px;
border: 1px solid var(--border);
padding: 14px;
transition: border-color 0.2s ease, transform 0.2s ease;
}
.command-card:hover {
border-color: rgba(44, 185, 198, 0.4);
transform: translateY(-1px);
}
.command-card__header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
}
.command-card__body {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
gap: 16px;
margin-top: 12px;
}
.member-list {
display: flex;
flex-direction: column;
gap: 8px;
max-height: 220px;
overflow-y: auto;
padding: 10px;
border-radius: 12px;
border: 1px solid var(--border);
background: #111a22;
}
.member-item {
display: flex;
justify-content: space-between;
align-items: center;
gap: 10px;
padding: 8px 10px;
border-radius: 10px;
border: 1px solid transparent;
background: var(--card);
cursor: pointer;
}
.member-item__meta {
display: flex;
flex-direction: column;
gap: 2px;
min-width: 0;
}
.member-item__name {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.member-item__id {
font-size: 0.8rem;
color: var(--muted);
}
.member-item.active {
border-color: var(--primary);
}
.toggle {
display: inline-flex;
align-items: center;
gap: 8px;
}
.toggle input {
width: 40px;
height: 20px;
appearance: none;
background: var(--border);
border-radius: 999px;
position: relative;
cursor: pointer;
}
.toggle input::after {
content: '';
position: absolute;
width: 16px;
height: 16px;
border-radius: 999px;
background: white;
top: 2px;
left: 2px;
transition: transform 0.2s ease;
}
.toggle input:checked {
background: var(--primary);
}
.toggle input:checked::after {
transform: translateX(20px);
}
.warning-item {
background: rgba(21, 31, 39, 0.9);
border-radius: 12px;
border: 1px solid var(--border);
padding: 10px;
margin-bottom: 10px;
}
.warning-item__meta {
display: flex;
justify-content: space-between;
align-items: center;
gap: 8px;
font-size: 0.85rem;
color: var(--muted);
}
.warnings-layout {
display: grid;
grid-template-columns: 1fr 2fr;
gap: 16px;
}
.warnings-pane {
background: rgba(21, 31, 39, 0.9);
border-radius: 12px;
border: 1px solid var(--border);
padding: 14px;
}
.divider {
height: 1px;
background: var(--border);
margin: 16px 0;
}
.save-bar {
position: sticky;
bottom: 16px;
background: rgba(16, 24, 32, 0.95);
border-radius: 18px;
border: 1px solid var(--border);
padding: 12px 16px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
box-shadow: 0 16px 30px rgba(5, 8, 10, 0.4);
}
.save-indicator {
display: inline-flex;
align-items: center;
gap: 8px;
font-weight: 600;
}
.save-indicator::before {
content: '';
width: 8px;
height: 8px;
border-radius: 999px;
background: var(--warning);
}
.empty-state {
padding: 20px;
border-radius: 12px;
border: 1px dashed var(--border);
background: #111a22;
color: var(--muted);
}
.spinner {
width: 28px;
height: 28px;
border-radius: 999px;
border: 3px solid rgba(255, 255, 255, 0.2);
border-top-color: var(--primary);
animation: spin 1s linear infinite;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
.skeleton-list,
.skeleton-panel {
display: grid;
gap: 12px;
}
.skeleton-line {
height: 14px;
border-radius: 999px;
background: linear-gradient(90deg, #16222a 25%, #1d2b34 37%, #16222a 63%);
background-size: 400% 100%;
animation: shimmer 1.4s ease infinite;
}
@keyframes shimmer {
0% {
background-position: 100% 0;
}
100% {
background-position: 0 0;
}
}
.tooltip {
display: inline-flex;
align-items: center;
justify-content: center;
width: 18px;
height: 18px;
border-radius: 999px;
background: var(--border);
color: var(--muted);
font-size: 0.75rem;
margin-left: 6px;
cursor: help;
}
.modal {
position: fixed;
inset: 0;
background: rgba(10, 12, 18, 0.7);
display: grid;
place-items: center;
z-index: 40;
backdrop-filter: blur(6px);
}
.modal[hidden] {
display: none;
}
.modal__content {
background: rgba(16, 24, 32, 0.98);
border-radius: 18px;
border: 1px solid var(--border);
padding: 20px;
width: min(420px, 90vw);
display: flex;
flex-direction: column;
gap: 16px;
box-shadow: 0 24px 40px rgba(5, 8, 10, 0.6);
}
.modal__content select {
padding: 10px 12px;
border-radius: 10px;
border: 1px solid var(--border);
background: #111a22;
color: var(--text);
}
.command-card--disabled,
.panel--disabled,
.multi-picker--disabled {
opacity: 0.6;
pointer-events: none;
}
h1,
h2,
h3,
strong {
font-family: 'Fraunces', 'Space Grotesk', 'Segoe UI', sans-serif;
letter-spacing: 0.01em;
}
@keyframes rise {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@media (max-width: 1080px) {
.layout {
grid-template-columns: 1fr;
}
.warnings-layout {
grid-template-columns: 1fr;
}
.save-bar {
position: static;
}
.topbar {
flex-direction: column;
align-items: flex-start;
}
}