Files
mischlabs/style.css
Kroonk d40329ae7c
All checks were successful
Build & Push Docker Image to Gitea Registry / build-and-push (push) Successful in 13s
feat: add SSO user favorites dashboard
2026-05-21 23:18:23 +02:00

1740 lines
34 KiB
CSS

*,
*::before,
*::after {
box-sizing: border-box;
}
* {
margin: 0;
}
:root {
color-scheme: dark;
--bg: #070914;
--surface: #111624;
--surface-2: #171d2d;
--surface-hover: #1c2435;
--border: rgba(226, 232, 240, 0.1);
--border-strong: rgba(226, 232, 240, 0.18);
--text: #eef2ff;
--muted: #9aa6bd;
--dim: #647085;
--ok: #34d399;
--warn: #fbbf24;
--down: #fb7185;
--radius: 8px;
}
html {
min-height: 100%;
font-size: 16px;
background: var(--bg);
}
body {
min-height: 100vh;
font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
color: var(--text);
background:
linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(8, 13, 27, 0.98)),
repeating-linear-gradient(90deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 120px);
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
}
a,
button,
input {
font: inherit;
}
button,
input {
border: 0;
}
.shell {
width: min(1160px, calc(100% - 32px));
margin-inline: auto;
}
.hero {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
gap: 24px;
align-items: end;
padding: 32px 0 22px;
}
.brand {
display: flex;
align-items: center;
gap: 16px;
min-width: 0;
}
.brand h1 {
background: linear-gradient(135deg, #38bdf8 0%, #c084fc 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
text-fill-color: transparent;
display: inline-block;
}
.brand-mark {
width: 72px;
height: 72px;
flex: 0 0 auto;
border: 1px solid rgba(255, 255, 255, 0.16);
border-radius: 8px;
object-fit: cover;
box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
}
.eyebrow,
.section-kicker {
color: #67e8f9;
font-size: 0.72rem;
font-weight: 700;
letter-spacing: 0.12em;
text-transform: uppercase;
}
h1 {
margin-top: 4px;
font-size: clamp(2rem, 6vw, 4.4rem);
line-height: 0.95;
letter-spacing: 0;
}
.subtitle {
max-width: 560px;
margin-top: 10px;
color: var(--muted);
font-size: clamp(0.95rem, 2vw, 1.05rem);
}
.hero-meta {
display: grid;
grid-template-columns: repeat(3, minmax(82px, 1fr));
gap: 10px;
}
.dashboard-actions {
grid-column: 1 / -1;
display: flex;
justify-content: flex-end;
align-items: center;
gap: 8px;
margin-top: -10px;
}
.user-badge {
min-height: 34px;
display: inline-flex;
align-items: center;
padding: 0 12px;
color: #c4f1ff;
background: rgba(17, 22, 36, 0.72);
border: 1px solid var(--border);
border-radius: var(--radius);
font-size: 0.82rem;
}
.metric {
min-width: 88px;
padding: 13px 14px;
background: rgba(17, 22, 36, 0.78);
border: 1px solid var(--border);
border-radius: var(--radius);
}
.metric-value {
display: block;
color: #fff;
font-size: 1.05rem;
font-weight: 750;
line-height: 1.1;
}
.metric-label {
display: block;
margin-top: 4px;
color: var(--dim);
font-size: 0.72rem;
text-transform: uppercase;
letter-spacing: 0.08em;
}
main {
padding-bottom: 20px;
}
.control-bar {
position: sticky;
top: 0;
z-index: 10;
display: grid;
grid-template-columns: minmax(220px, 360px) 1fr;
gap: 12px;
align-items: center;
padding: 12px 0;
backdrop-filter: blur(16px);
}
.search-box {
position: relative;
display: flex;
align-items: center;
}
.search-icon {
position: absolute;
left: 13px;
width: 18px;
height: 18px;
color: var(--dim);
pointer-events: none;
}
.search-box input {
width: 100%;
height: 44px;
padding: 0 14px 0 40px;
color: var(--text);
background: rgba(17, 22, 36, 0.92);
border: 1px solid var(--border);
border-radius: var(--radius);
outline: none;
}
.search-box input:focus {
border-color: rgba(103, 232, 249, 0.45);
box-shadow: 0 0 0 3px rgba(103, 232, 249, 0.08);
}
.segments {
display: flex;
justify-content: flex-end;
gap: 6px;
overflow-x: auto;
scrollbar-width: none;
}
.segments::-webkit-scrollbar {
display: none;
}
.segment {
min-width: max-content;
height: 36px;
padding: 0 13px;
color: var(--muted);
background: rgba(17, 22, 36, 0.78);
border: 1px solid var(--border);
border-radius: var(--radius);
cursor: pointer;
}
.segment.is-active {
color: #061014;
background: #67e8f9;
border-color: #67e8f9;
}
.section {
margin-top: 18px;
}
.service-overview {
margin-top: 16px;
}
.section[hidden],
.service-card[hidden] {
display: none;
}
.section-heading {
display: flex;
align-items: end;
justify-content: space-between;
gap: 16px;
margin-bottom: 12px;
}
.section-heading h2 {
margin-top: 4px;
font-size: 1.08rem;
letter-spacing: 0;
}
.section-count {
color: var(--dim);
font-size: 0.78rem;
}
.grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 12px;
}
.card {
position: relative;
display: grid;
grid-template-columns: 48px minmax(0, 1fr);
grid-template-rows: auto auto;
gap: 12px 14px;
min-height: 134px;
padding: 16px;
color: var(--text);
text-decoration: none;
background: linear-gradient(180deg, rgba(23, 29, 45, 0.96), rgba(14, 19, 31, 0.96));
border: 1px solid var(--border);
border-radius: var(--radius);
isolation: isolate;
overflow: visible;
touch-action: manipulation;
-webkit-tap-highlight-color: transparent;
transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.card > * {
position: relative;
z-index: 2;
}
.card::before {
content: "";
position: absolute;
inset: 0;
z-index: 1;
border-radius: inherit;
background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, transparent), transparent 48%);
opacity: 0.4;
pointer-events: none;
}
.card:hover,
.card:focus-visible {
border-color: color-mix(in srgb, var(--accent) 48%, var(--border-strong));
background: linear-gradient(180deg, rgba(29, 37, 56, 0.98), rgba(17, 22, 36, 0.98));
transform: translateY(-2px);
}
.card:focus-visible {
outline: 3px solid rgba(103, 232, 249, 0.2);
outline-offset: 3px;
}
.card-wide {
grid-column: span 1;
}
.card-icon {
display: grid;
place-items: center;
width: 48px;
height: 48px;
color: var(--accent);
background: color-mix(in srgb, var(--accent) 15%, rgba(255, 255, 255, 0.02));
border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
border-radius: var(--radius);
}
.card-icon svg {
width: 23px;
height: 23px;
}
.favorite-icon img {
width: 28px;
height: 28px;
border-radius: 6px;
object-fit: cover;
}
.card-content {
min-width: 0;
}
.card-category {
display: inline-flex;
width: max-content;
max-width: 100%;
margin-bottom: 5px;
color: var(--dim);
font-size: 0.68rem;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
}
.card-content h3 {
color: #fff;
font-size: 1.04rem;
letter-spacing: 0;
}
.card-content p {
margin-top: 4px;
color: var(--muted);
font-size: 0.86rem;
line-height: 1.35;
}
.card-domain {
grid-column: 1 / -1;
align-self: end;
padding-top: 10px;
color: var(--dim);
border-top: 1px solid var(--border);
font: 0.74rem/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
overflow-wrap: anywhere;
}
.status-dot {
position: absolute;
top: 14px;
right: 14px;
z-index: 4;
width: 10px;
height: 10px;
border-radius: 999px;
background: var(--warn);
box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.1);
}
.service-card.is-online .status-dot {
background: var(--ok);
box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.1);
}
.service-card.is-offline .status-dot {
background: var(--down);
box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.1);
}
.service-card.is-unknown .status-dot {
background: #38bdf8;
box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.1);
}
.empty-state {
margin: 32px 0;
padding: 18px;
color: var(--muted);
text-align: center;
background: rgba(17, 22, 36, 0.72);
border: 1px solid var(--border);
border-radius: var(--radius);
}
.footer {
display: flex;
justify-content: space-between;
gap: 16px;
padding: 28px 0 32px;
color: var(--dim);
font-size: 0.8rem;
}
.favorites-section {
margin-top: 28px;
padding-top: 6px;
}
.favorites-empty {
padding: 16px;
color: var(--muted);
background: rgba(17, 22, 36, 0.56);
border: 1px solid var(--border);
border-radius: var(--radius);
}
.favorites-empty p {
margin-bottom: 12px;
line-height: 1.45;
}
.favorite-groups {
display: grid;
gap: 18px;
}
.favorite-group {
display: grid;
gap: 10px;
}
.favorite-group-heading {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
}
.favorite-group-heading h3 {
color: #fff;
font-size: 0.98rem;
}
.favorite-group-heading span {
color: var(--dim);
font-size: 0.78rem;
}
.favorite-editor-layout {
display: grid;
grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
gap: 14px;
align-items: start;
margin-top: 14px;
}
.favorite-editor-list {
display: grid;
gap: 12px;
}
.favorite-edit-card {
padding: 14px;
background: rgba(7, 9, 20, 0.42);
border: 1px solid var(--border);
border-radius: var(--radius);
}
.favorite-edit-head {
display: flex;
justify-content: space-between;
gap: 12px;
align-items: center;
margin-bottom: 12px;
}
.favorite-order-actions {
display: flex;
flex-wrap: wrap;
gap: 6px;
justify-content: flex-end;
}
.favorite-form-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 10px;
}
.favorite-form-grid label {
display: grid;
gap: 6px;
color: var(--dim);
font-size: 0.76rem;
}
.favorite-form-grid input,
.favorite-form-grid select {
width: 100%;
min-height: 38px;
padding: 0 10px;
color: var(--text);
background: rgba(17, 22, 36, 0.92);
border: 1px solid var(--border);
border-radius: var(--radius);
outline: none;
}
.favorite-form-grid input[type="color"] {
padding: 3px;
}
.favorite-form-wide {
grid-column: 1 / -1;
}
.favorite-preview-panel {
position: sticky;
top: 72px;
display: grid;
gap: 12px;
padding: 14px;
background: rgba(7, 9, 20, 0.42);
border: 1px solid var(--border);
border-radius: var(--radius);
}
.favorite-preview-grid {
grid-template-columns: 1fr;
}
.admin-hero {
align-items: center;
}
.admin-actions {
display: flex;
flex-wrap: wrap;
justify-content: flex-end;
gap: 8px;
}
.admin-actions.compact {
align-items: center;
}
.ghost-button {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 42px;
padding: 0 18px;
color: var(--text);
font-size: 0.92rem;
text-decoration: none;
background: rgba(17, 22, 36, 0.86);
border: 1px solid var(--border);
border-radius: var(--radius);
cursor: pointer;
transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.ghost-button:hover,
.ghost-button:focus-visible {
border-color: rgba(103, 232, 249, 0.38);
outline: none;
}
.ghost-button:disabled {
color: var(--dim);
cursor: not-allowed;
opacity: 0.48;
}
.ghost-button.danger-button {
color: #fecdd3;
border-color: rgba(251, 113, 133, 0.28);
}
.ghost-button.danger-button:hover,
.ghost-button.danger-button:focus-visible,
.ghost-button.danger-button.is-active-danger {
color: #fff;
background: rgba(251, 113, 133, 0.18);
border-color: rgba(251, 113, 133, 0.58);
}
.admin-shell {
display: grid;
gap: 14px;
padding-bottom: 32px;
}
.admin-panel {
padding: 18px;
background: rgba(17, 22, 36, 0.82);
border: 1px solid var(--border);
border-radius: var(--radius);
}
.admin-panel h2 {
margin-top: 4px;
font-size: 1.2rem;
}
.admin-copy {
max-width: 760px;
margin-top: 10px;
color: var(--muted);
line-height: 1.55;
}
.admin-panel-head {
display: flex;
align-items: start;
justify-content: space-between;
gap: 18px;
margin-bottom: 14px;
}
.notice,
.admin-user {
margin-top: 12px;
padding: 12px;
color: var(--muted);
background: rgba(7, 9, 20, 0.55);
border: 1px solid var(--border);
border-radius: var(--radius);
line-height: 1.45;
}
.admin-user {
color: #c4f1ff;
}
.admin-table {
display: grid;
gap: 10px;
margin-top: 14px;
}
.ops-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 12px;
margin-top: 14px;
}
.ops-card {
padding: 14px;
background: rgba(7, 9, 20, 0.42);
border: 1px solid var(--border);
border-radius: var(--radius);
}
.ops-card-wide {
grid-column: 1 / -1;
}
.ops-card-head,
.ops-line {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
}
.ops-card-head {
margin-bottom: 10px;
color: #fff;
font-weight: 700;
cursor: pointer;
user-select: none;
transition: color 0.15s ease;
}
.ops-card-head:hover {
color: #67e8f9;
}
.ops-card-head > div:first-child,
.ops-card-head > span:first-child {
display: inline-flex;
align-items: center;
gap: 8px;
}
.ops-card-head > div:first-child::before,
.ops-card-head > span:first-child::before {
content: '▾';
display: inline-block;
font-size: 0.92rem;
color: var(--dim);
transition: transform 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275);
transform: rotate(0deg);
}
.ops-card.is-collapsed .ops-card-head > div:first-child::before,
.ops-card.is-collapsed .ops-card-head > span:first-child::before {
transform: rotate(-90deg);
}
.ops-card.is-collapsed .ops-card-head {
margin-bottom: 0;
}
.ops-card.is-collapsed > *:not(.ops-card-head) {
display: none !important;
}
.ghost-button.mini {
min-height: 34px;
padding: 0 14px;
font-size: 0.82rem;
}
.ops-list {
display: grid;
gap: 8px;
color: var(--muted);
font-size: 0.84rem;
}
.ops-line strong {
color: var(--text);
font-weight: 650;
}
.ops-line span {
color: var(--muted);
text-align: right;
}
.container-line span {
flex: 1;
}
.container-line .ghost-button {
flex: 0 0 auto;
}
.container-line .ghost-button.is-danger-enabled {
color: #fecdd3;
border-color: rgba(251, 113, 133, 0.48);
}
.danger-state {
margin: -2px 0 10px;
color: #fecdd3;
font-size: 0.82rem;
}
.ops-line.is-warning span {
color: #fde68a;
}
.ops-divider {
height: 1px;
margin: 2px 0;
background: var(--border);
}
.usage-bar {
height: 7px;
overflow: hidden;
background: rgba(255, 255, 255, 0.08);
border-radius: 999px;
}
.usage-bar span {
display: block;
height: 100%;
background: var(--ok);
border-radius: inherit;
}
.usage-bar[data-level="warn"] span {
background: var(--warn);
}
.usage-bar[data-level="danger"] span {
background: var(--down);
}
.admin-row {
display: grid;
grid-template-columns: minmax(140px, 1fr) minmax(120px, 0.6fr) minmax(180px, 1.1fr) minmax(130px, 0.9fr) auto;
gap: 10px;
align-items: end;
padding: 12px;
background: rgba(7, 9, 20, 0.42);
border: 1px solid var(--border);
border-radius: var(--radius);
}
.admin-row > div:first-child {
min-width: 0;
}
.admin-row strong,
.admin-row span {
display: block;
}
.admin-row span {
margin-top: 4px;
color: var(--dim);
font-size: 0.78rem;
overflow-wrap: anywhere;
}
.admin-row label {
display: grid;
gap: 6px;
color: var(--dim);
font-size: 0.76rem;
}
.admin-row input,
.admin-row select {
width: 100%;
min-height: 38px;
padding: 0 10px;
color: var(--text);
background: rgba(17, 22, 36, 0.92);
border: 1px solid var(--border);
border-radius: var(--radius);
outline: none;
}
.diagnostic {
grid-column: 1 / -1;
color: var(--muted);
font-size: 0.82rem;
}
.admin-row.is-online {
border-color: rgba(52, 211, 153, 0.34);
}
.admin-row.is-offline {
border-color: rgba(251, 113, 133, 0.36);
}
.admin-row.is-unknown {
border-color: rgba(56, 189, 248, 0.32);
}
@media (max-width: 900px) {
.hero {
grid-template-columns: 1fr;
align-items: start;
}
.admin-actions {
justify-content: flex-start;
}
.admin-panel-head {
display: grid;
}
.admin-row {
grid-template-columns: 1fr;
}
.ops-grid {
grid-template-columns: 1fr;
}
.favorite-editor-layout {
grid-template-columns: 1fr;
}
.favorite-preview-panel {
position: static;
}
.hero-meta {
width: 100%;
}
.dashboard-actions {
justify-content: flex-start;
margin-top: 0;
}
.control-bar {
grid-template-columns: 1fr;
}
.segments {
justify-content: flex-start;
}
.grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
@media (max-width: 620px) {
.shell {
width: min(100% - 24px, 1160px);
}
.hero {
padding-top: 22px;
}
.brand {
align-items: flex-start;
}
.brand-mark {
width: 58px;
height: 58px;
}
.hero-meta {
grid-template-columns: repeat(3, 1fr);
gap: 8px;
}
.metric {
min-width: 0;
padding: 11px 10px;
}
.metric-value {
font-size: 0.94rem;
}
.grid {
grid-template-columns: 1fr;
gap: 10px;
}
.card {
min-height: 112px;
padding: 14px;
}
.favorite-form-grid {
grid-template-columns: 1fr;
}
.section-heading {
align-items: start;
}
.section-count {
display: none;
}
.footer {
flex-direction: column;
padding-bottom: 24px;
}
}
@media (hover: none) {
.card:hover {
transform: none;
}
}
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
scroll-behavior: auto !important;
transition-duration: 0.01ms !important;
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
}
}
/* ==========================================================================
Peeking Bongo Cat Easter Egg
========================================================================== */
.peeking-cat {
position: fixed;
bottom: -45px;
left: 24px;
width: 120px;
height: 100px;
z-index: 1000;
cursor: pointer;
transition: bottom 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.3s ease;
user-select: none;
pointer-events: auto;
}
.peeking-cat:hover {
bottom: -15px;
transform: scale(1.06);
}
.peeking-cat.is-active {
bottom: -15px;
}
/* Blinking eyes animation */
@keyframes cat-blink {
0%, 90%, 100% {
transform: scaleY(1);
}
95% {
transform: scaleY(0.1);
}
}
.cat-eye-group {
transform-origin: 42px 50px;
animation: cat-blink 4s infinite;
}
.cat-eye-group:nth-child(2) {
transform-origin: 78px 50px;
}
/* Ear wiggle animation on hover */
@keyframes ear-wiggle-l {
0%, 100% { transform: rotate(0deg); }
50% { transform: rotate(-6deg); }
}
@keyframes ear-wiggle-r {
0%, 100% { transform: rotate(0deg); }
50% { transform: rotate(6deg); }
}
.peeking-cat:hover .cat-ear-left,
.peeking-cat:hover .cat-ear-left-inner {
animation: ear-wiggle-l 0.4s ease-in-out infinite alternate;
transform-origin: 35px 42px;
}
.peeking-cat:hover .cat-ear-right,
.peeking-cat:hover .cat-ear-right-inner {
animation: ear-wiggle-r 0.4s ease-in-out infinite alternate;
transform-origin: 85px 42px;
}
/* Paw tapping animation (Bongo Cat typing style) */
@keyframes paw-tap-left {
0%, 100% { transform: translateY(0) rotate(0); }
50% { transform: translateY(-10px) rotate(-3deg); }
}
@keyframes paw-tap-right {
0%, 100% { transform: translateY(0) rotate(0); }
50% { transform: translateY(-10px) rotate(3deg); }
}
.peeking-cat.is-tapping .cat-paw-left {
animation: paw-tap-left 0.14s ease-in-out infinite alternate;
transform-origin: 38px 70px;
}
.peeking-cat.is-tapping .cat-paw-right {
animation: paw-tap-right 0.14s ease-in-out infinite alternate-reverse;
transform-origin: 82px 70px;
}
/* Floating Hearts on click */
.cat-heart {
position: fixed;
pointer-events: none;
z-index: 10001;
font-size: 20px;
animation: heart-float 0.8s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}
@keyframes heart-float {
0% {
transform: translateY(0) scale(0.6) rotate(0deg);
opacity: 1;
}
100% {
transform: translateY(-80px) scale(1.4) rotate(var(--rot, 15deg));
opacity: 0;
}
}
/* Responsive adjustment for mobile screen */
@media (max-width: 620px) {
.peeking-cat {
width: 90px;
height: 75px;
bottom: -35px;
left: 12px;
}
.peeking-cat:hover,
.peeking-cat.is-active {
bottom: -10px;
}
}
/* ==========================================================================
Dienste Status Board (Live-Proxy)
========================================================================== */
.services-status-board {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
gap: 10px 12px;
margin-top: 10px;
padding: 2px 0;
}
.status-board-item {
display: flex;
flex-direction: column;
gap: 8px;
padding: 10px 12px;
background: rgba(17, 22, 36, 0.6);
border: 1px solid var(--border);
border-radius: var(--radius);
text-decoration: none;
color: inherit;
transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
cursor: pointer;
}
.status-board-item:hover {
background: rgba(23, 29, 45, 0.85);
border-color: var(--border-strong);
transform: translateY(-1px);
}
.status-board-item h4 {
margin: 0;
font-size: 0.82rem;
font-weight: 600;
color: var(--muted);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
transition: color 0.15s ease;
}
.status-board-item:hover h4 {
color: #fff;
}
.status-board-item-bar {
height: 6px;
width: 100%;
background: rgba(255, 255, 255, 0.08);
border-radius: 999px;
overflow: hidden;
}
.status-board-item-bar-inner {
height: 100%;
width: 100%;
border-radius: inherit;
transition: background-color 0.25s ease;
}
/* Subtle traffic light colors without glows */
.status-board-item.is-online .status-board-item-bar-inner {
background-color: var(--ok);
}
.status-board-item.is-offline .status-board-item-bar-inner {
background-color: var(--down);
}
.status-board-item.is-warning .status-board-item-bar-inner {
background-color: var(--warn);
}
@media (max-width: 620px) {
.services-status-board {
grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
gap: 8px 8px;
}
.status-board-item {
padding: 8px 10px;
gap: 6px;
}
}
#editorCard {
max-width: 900px;
margin-inline: auto;
}
.admin-actions-bar {
display: flex;
gap: 8px;
flex-wrap: wrap;
margin-bottom: 14px;
border-bottom: 1px solid var(--border);
padding-bottom: 12px;
margin-top: 8px;
}
/* ==========================================================================
Hamburger Navigation & Drawer Menu
========================================================================== */
/* Hamburger Button */
.hamburger-menu-btn {
display: none; /* Controlled by admin.js */
flex-direction: column;
justify-content: center;
align-items: center;
gap: 4px;
width: 42px;
height: 42px;
padding: 0;
background: rgba(255, 255, 255, 0.03);
border: 1px solid var(--border);
border-radius: var(--radius);
cursor: pointer;
transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
z-index: 1001;
}
.hamburger-menu-btn:hover {
background: rgba(255, 255, 255, 0.08);
border-color: var(--border-strong);
transform: translateY(-1px);
}
.hamburger-menu-btn:active {
transform: translateY(1px);
}
.hamburger-bar {
width: 18px;
height: 2px;
background-color: var(--text);
border-radius: 99px;
transition: all 0.2s ease;
}
/* Drawer Backdrop */
.admin-nav-backdrop {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background: rgba(4, 5, 11, 0.65);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
z-index: 9999;
opacity: 0;
visibility: hidden;
transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s cubic-bezier(0.16, 1, 0.3, 1);
pointer-events: none;
}
.admin-nav-backdrop.is-open {
opacity: 1;
visibility: visible;
pointer-events: auto;
}
/* Nav Drawer Container */
.admin-nav-drawer {
position: fixed;
top: 0;
right: 0;
height: 100vh;
width: min(340px, 85vw);
background: linear-gradient(180deg, rgba(17, 22, 36, 0.96) 0%, rgba(10, 14, 26, 0.98) 100%);
border-left: 1px solid var(--border-strong);
box-shadow: -10px 0 40px rgba(0, 0, 0, 0.55);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
z-index: 10000;
padding: 30px 24px;
display: flex;
flex-direction: column;
transform: translateX(100%);
transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.admin-nav-drawer.is-open {
transform: translateX(0);
}
/* Drawer Header */
.drawer-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 28px;
padding-bottom: 16px;
border-bottom: 1px solid var(--border);
}
.drawer-header h3 {
font-size: 1.2rem;
font-weight: 700;
color: #fff;
letter-spacing: -0.01em;
}
.drawer-close-btn {
background: transparent;
border: none;
color: var(--dim);
font-size: 1.8rem;
cursor: pointer;
width: 36px;
height: 36px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s ease;
padding: 0;
line-height: 1;
}
.drawer-close-btn:hover {
color: #fff;
background: rgba(255, 255, 255, 0.08);
}
/* Drawer Navigation list */
.drawer-nav {
display: flex;
flex-direction: column;
gap: 8px;
flex-grow: 1;
}
.drawer-nav-item {
display: flex;
align-items: center;
gap: 14px;
width: 100%;
padding: 12px 16px;
background: transparent;
border: 1px solid transparent;
border-radius: var(--radius);
color: var(--muted);
text-decoration: none;
cursor: pointer;
text-align: left;
transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.drawer-nav-item:hover {
background: rgba(255, 255, 255, 0.04);
border-color: var(--border);
color: #fff;
transform: translateX(4px);
}
.drawer-nav-item.is-active {
background: rgba(103, 232, 249, 0.08);
border-color: rgba(103, 232, 249, 0.25);
color: #67e8f9;
font-weight: 600;
}
.drawer-nav-icon {
font-size: 1.15rem;
display: inline-flex;
align-items: center;
justify-content: center;
transition: transform 0.2s ease;
}
.drawer-nav-item:hover .drawer-nav-icon {
transform: scale(1.15);
}
.drawer-nav-text {
font-size: 0.94rem;
}
.drawer-divider {
height: 1px;
background: var(--border);
margin: 16px 0;
}
.drawer-logout-btn:hover {
background: rgba(251, 113, 133, 0.08);
border-color: rgba(251, 113, 133, 0.25);
color: #fb7185;
}
/* ==========================================================================
Tab View Rules for Admin Panels
========================================================================== */
.admin-tab-content {
display: none !important;
}
.admin-tab-content.is-active {
display: block !important;
grid-column: 1 / -1;
max-width: 900px;
margin-inline: auto;
width: 100%;
animation: cardFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes cardFadeIn {
from {
opacity: 0;
transform: translateY(8px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* ==========================================================================
Dashboard Overview Cards & Grid
========================================================================== */
.overview-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 16px;
margin-bottom: 24px;
}
@media (max-width: 620px) {
.overview-grid {
grid-template-columns: 1fr;
}
}
.overview-mini-card {
background: rgba(17, 22, 36, 0.45);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 20px;
cursor: pointer;
transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
display: flex;
flex-direction: column;
gap: 14px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.overview-mini-card:hover {
background: rgba(23, 29, 45, 0.65);
border-color: rgba(103, 232, 249, 0.3);
transform: translateY(-3px);
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.35), 0 0 15px rgba(103, 232, 249, 0.08);
}
.mini-card-head {
display: flex;
align-items: center;
gap: 10px;
}
.mini-card-icon {
font-size: 1.3rem;
}
.mini-card-head h4 {
margin: 0;
font-size: 1.05rem;
font-weight: 700;
color: #fff;
letter-spacing: -0.01em;
}
.mini-card-body {
display: flex;
flex-direction: column;
gap: 8px;
font-size: 0.92rem;
color: var(--text);
}
.mini-status-text {
display: flex;
align-items: baseline;
gap: 6px;
}
.mini-status-total {
color: var(--dim);
font-size: 0.8rem;
}
.mini-status-sub {
font-size: 0.8rem;
color: var(--dim);
margin-top: 2px;
}
/* LEDs for Services */
.mini-led-grid {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin-top: 6px;
}
.mini-led {
width: 9px;
height: 9px;
border-radius: 50%;
display: inline-block;
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mini-led:hover {
transform: scale(1.35);
}
.mini-led-ok {
background-color: var(--ok);
box-shadow: 0 0 6px rgba(52, 211, 153, 0.4);
}
.mini-led-down {
background-color: var(--down);
box-shadow: 0 0 6px rgba(251, 113, 133, 0.4);
}
/* Disks Mini Rows */
.mini-disk-row {
display: flex;
flex-direction: column;
gap: 6px;
margin-bottom: 2px;
}
.mini-disk-row:last-child {
margin-bottom: 0;
}
.mini-disk-row.is-error {
color: var(--down);
font-weight: 500;
}
.mini-disk-meta {
display: flex;
justify-content: space-between;
font-size: 0.82rem;
}
.mini-disk-meta strong {
color: #fff;
font-weight: 600;
}
/* Slim progress bars in Mini overview */
.usage-bar.mini-bar {
height: 5px;
background: rgba(255, 255, 255, 0.05);
border-radius: 99px;
overflow: hidden;
position: relative;
width: 100%;
}
.usage-bar.mini-bar span {
display: block;
height: 100%;
border-radius: 99px;
transition: width 0.4s ease;
}
.usage-bar.mini-bar[data-level="ok"] span {
background-color: var(--ok);
box-shadow: 0 0 4px rgba(52, 211, 153, 0.3);
}
.usage-bar.mini-bar[data-level="warn"] span {
background-color: var(--warn);
box-shadow: 0 0 4px rgba(251, 191, 36, 0.3);
}
.usage-bar.mini-bar[data-level="danger"] span {
background-color: var(--down);
box-shadow: 0 0 4px rgba(251, 113, 133, 0.3);
}
/* ==========================================================================
Advanced Diagnostics & Terminal Modals (Premium Elements)
========================================================================== */
.modal-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(8, 11, 20, 0.75);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
display: flex;
align-items: center;
justify-content: center;
z-index: 2000;
opacity: 0;
pointer-events: none;
transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.is-active {
opacity: 1;
pointer-events: auto;
}
.modal-card {
background: var(--surface-1);
border: 1px solid var(--border-strong);
border-radius: calc(var(--radius) * 1.5);
width: 90%;
max-width: 680px;
max-height: 85vh;
display: flex;
flex-direction: column;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 100px rgba(99, 102, 241, 0.05);
transform: translateY(20px) scale(0.96);
transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
overflow: hidden;
}
.modal-overlay.is-active .modal-card {
transform: translateY(0) scale(1);
}
.modal-header {
padding: 16px 20px;
border-bottom: 1px solid var(--border);
display: flex;
align-items: center;
justify-content: space-between;
background: var(--surface-2);
}
.modal-header h3 {
margin: 0;
font-size: 1.15rem;
font-weight: 700;
color: #fff;
}
.modal-close-btn {
background: none;
border: none;
color: var(--dim);
font-size: 1.6rem;
cursor: pointer;
line-height: 1;
padding: 4px;
transition: color 0.15s ease, transform 0.15s ease;
}
.modal-close-btn:hover {
color: #fff;
transform: scale(1.1);
}
.modal-body {
padding: 20px;
overflow-y: auto;
flex-grow: 1;
}
/* Terminal Console Theme for logs */
.terminal-logs {
background: #090d16;
border: 1px solid #1e293b;
border-radius: var(--radius);
padding: 14px;
color: #38bdf8;
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
font-size: 0.82rem;
line-height: 1.5;
overflow-x: auto;
white-space: pre-wrap;
word-break: break-all;
max-height: 420px;
box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.8);
}
/* Custom folders scanner text sizes & margins */
.scanner-folder-link:hover {
color: #22d3ee !important;
text-shadow: 0 0 8px rgba(34, 211, 238, 0.4);
}
/* Live Inspect highlights */
.text-ok {
color: var(--ok);
}
.text-down {
color: var(--down);
}
.service-inspect-trigger:hover {
background: rgba(255, 255, 255, 0.18) !important;
transform: scale(1.15);
}