Files
Discord_bot/public/styles.css
T
2026-02-03 10:05:54 +01:00

748 lines
13 KiB
CSS

:root {
color-scheme: light;
--bg: #0f1218;
--panel: #171b26;
--card: #1e2332;
--border: #2d3447;
--text: #f7f7f9;
--muted: #b3b8c7;
--primary: #5865f2;
--primary-dark: #4752c4;
--success: #3ba55d;
--danger: #ed4245;
--warning: #f6c343;
font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
* {
box-sizing: border-box;
}
body {
margin: 0;
min-height: 100vh;
background: var(--bg);
color: var(--text);
}
.app {
max-width: 960px;
margin: 0 auto;
padding: 40px 24px 80px;
}
.topbar {
display: flex;
justify-content: space-between;
align-items: center;
gap: 24px;
padding: 24px;
background: var(--panel);
border-radius: 20px;
border: 1px solid var(--border);
margin-bottom: 24px;
}
.badge {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 6px 12px;
border-radius: 999px;
font-size: 0.85rem;
background: rgba(88, 101, 242, 0.16);
border: 1px solid rgba(88, 101, 242, 0.4);
color: #cdd3ff;
text-transform: uppercase;
letter-spacing: 0.06em;
}
.banner {
padding: 14px 18px;
border-radius: 14px;
border: 1px solid rgba(88, 101, 242, 0.35);
background: rgba(88, 101, 242, 0.12);
margin-bottom: 20px;
color: #dee1ff;
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;
}
.navbar {
display: flex;
justify-content: space-between;
align-items: center;
gap: 16px;
padding: 16px 20px;
background: var(--panel);
border-radius: 16px;
border: 1px solid var(--border);
margin-bottom: 20px;
}
.navbar__brand {
display: flex;
align-items: center;
gap: 12px;
}
.brand-mark {
width: 44px;
height: 44px;
border-radius: 14px;
background: var(--primary);
display: grid;
place-items: center;
font-weight: 700;
}
.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(237, 66, 69, 0.4);
background: rgba(237, 66, 69, 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: var(--panel);
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: var(--panel);
border-radius: 16px;
border: 1px solid var(--border);
padding: 16px;
}
.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: #131826;
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: var(--card);
border-radius: 12px;
border: 1px solid transparent;
cursor: pointer;
}
.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);
}
.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: 16px;
background: var(--panel);
border-radius: 16px;
border: 1px solid var(--border);
}
.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: var(--panel);
border-radius: 12px;
border: 1px solid var(--border);
width: fit-content;
}
.tab {
padding: 8px 16px;
border-radius: 8px;
border: none;
background: transparent;
color: var(--muted);
cursor: pointer;
}
.tab.active {
background: var(--primary);
color: white;
}
.panel {
background: var(--panel);
border-radius: 16px;
border: 1px solid var(--border);
padding: 16px;
}
.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(246, 195, 67, 0.4);
background: rgba(246, 195, 67, 0.12);
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: #131826;
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: #131826;
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: #0f1320;
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: var(--card);
color: var(--text);
cursor: pointer;
}
.button--primary {
background: var(--primary);
border-color: var(--primary);
color: white;
}
.button--primary:hover {
background: var(--primary-dark);
}
.button--ghost {
background: transparent;
}
.button-row {
display: flex;
gap: 12px;
flex-wrap: wrap;
}
.command-list {
display: flex;
flex-direction: column;
gap: 16px;
}
.command-card {
background: var(--card);
border-radius: 14px;
border: 1px solid var(--border);
padding: 14px;
}
.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;
}
.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: var(--card);
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: var(--card);
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: var(--panel);
border-radius: 16px;
border: 1px solid var(--border);
padding: 12px 16px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
}
.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: #151a27;
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, #1a1f2d 25%, #232a3b 37%, #1a1f2d 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;
}
.modal__content {
background: var(--panel);
border-radius: 16px;
border: 1px solid var(--border);
padding: 20px;
width: min(420px, 90vw);
display: flex;
flex-direction: column;
gap: 16px;
}
.modal__content select {
padding: 10px 12px;
border-radius: 10px;
border: 1px solid var(--border);
background: #131826;
color: var(--text);
}
.command-card--disabled,
.panel--disabled,
.multi-picker--disabled {
opacity: 0.6;
pointer-events: none;
}
@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;
}
}