Files
BetterDesk/web-nodejs/public/css/main.css
T
UNITRONIX 4d2ffeefc1 feat(branding): full white-label expansion of branding tab
Add console wallpaper, login page branding (title/subtitle/background/footer), global agent download page branding, footer/copyright with 'Powered by BetterDesk' toggle, and custom CSS injection. Includes background image upload route (8MB), sanitization for colors/gradients/CSS, dynamic theme CSS for app and login pages, sidebar attribution, and EN/PL/ZH i18n keys.

This commit was made possible thanks to Insolve.
2026-06-01 05:00:12 +02:00

1855 lines
45 KiB
CSS

/**
* BetterDesk Console v2.0 - Main Stylesheet
* Reset, layout, and core components
*/
@import url('./variables.css');
/* Google Material Icons */
@import url('https://fonts.googleapis.com/icon?family=Material+Icons|Material+Icons+Outlined|Material+Icons+Round');
/* ═══════════════════════════════════════════════════════════════════════════
CSS RESET
═══════════════════════════════════════════════════════════════════════════ */
*, *::before, *::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html {
font-size: 16px;
-webkit-text-size-adjust: 100%;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
scroll-behavior: smooth;
height: 100%;
}
body {
font-family: var(--font-family);
font-size: var(--font-size-md);
line-height: var(--line-height);
color: var(--text-primary);
background-color: var(--bg-primary);
overflow-x: hidden;
min-height: 100vh;
height: 100%;
}
body.app-page {
overflow: hidden;
}
a {
color: var(--text-link);
text-decoration: none;
transition: color var(--transition-fast);
}
a:hover { color: var(--accent-blue-hover); }
img { max-width: 100%; display: block; }
button, input, select, textarea {
font-family: inherit;
font-size: inherit;
color: inherit;
outline: none;
}
ul, ol { list-style: none; }
table {
border-collapse: collapse;
width: 100%;
}
/* ═══════════════════════════════════════════════════════════════════════════
CUSTOM SCROLLBAR
═══════════════════════════════════════════════════════════════════════════ */
::-webkit-scrollbar {
width: var(--scrollbar-width);
height: var(--scrollbar-width);
}
::-webkit-scrollbar-track {
background: var(--scrollbar-track);
}
::-webkit-scrollbar-thumb {
background: var(--scrollbar-thumb);
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: var(--scrollbar-thumb-hover);
}
* {
scrollbar-width: thin;
scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}
/* ═══════════════════════════════════════════════════════════════════════════
LAYOUT
═══════════════════════════════════════════════════════════════════════════ */
.app-layout {
display: flex;
height: 100vh;
min-height: 0;
overflow: hidden;
}
.main-wrapper {
flex: 1;
margin-left: var(--sidebar-current-width, var(--sidebar-width-collapsed));
display: flex;
flex-direction: column;
height: 100vh;
min-height: 0;
overflow: hidden;
transition: margin-left var(--transition-normal);
}
.main-content {
flex: 1;
padding: var(--space-lg);
margin-top: var(--navbar-height);
height: calc(100vh - var(--navbar-height));
min-height: 0;
max-width: var(--content-max-width);
width: 100%;
overflow-x: hidden;
overflow-y: auto;
overscroll-behavior: contain;
scrollbar-gutter: stable;
}
.page-header {
margin-bottom: var(--space-lg);
}
.page-title {
font-size: var(--font-size-2xl);
font-weight: var(--font-weight-bold);
color: var(--text-primary);
margin-bottom: var(--space-xs);
}
.page-subtitle {
font-size: var(--font-size-md);
color: var(--text-secondary);
}
/* ═══════════════════════════════════════════════════════════════════════════
SIDEBAR — TeamViewer-style icon rail + flyout panel
═══════════════════════════════════════════════════════════════════════════ */
.sidebar {
position: fixed;
top: 0;
left: 0;
height: 100vh;
display: flex;
flex-direction: row;
z-index: var(--z-sticky);
transition: width var(--transition-normal);
}
/* --- Icon rail (always visible, left strip) --- */
.sidebar-rail {
width: var(--sidebar-width-collapsed);
min-width: var(--sidebar-width-collapsed);
height: 100%;
background: var(--bg-tertiary);
border-right: 1px solid var(--border-primary);
display: flex;
flex-direction: column;
align-items: center;
z-index: 2;
}
.sidebar-rail-logo {
height: var(--navbar-height);
display: flex;
align-items: center;
justify-content: center;
width: 100%;
border-bottom: 1px solid var(--border-primary);
}
.sidebar-rail-logo .sidebar-logo {
display: flex;
align-items: center;
justify-content: center;
color: var(--text-primary);
}
.sidebar-rail-logo .sidebar-logo .material-icons {
color: var(--accent-blue);
font-size: 28px;
}
.sidebar-rail-logo .sidebar-logo-svg,
.sidebar-rail-logo .sidebar-logo-img {
max-width: 32px;
max-height: 32px;
}
/* Text Logo */
.brand-text-logo {
font-family: var(--font-heading, var(--font-family));
font-weight: 700;
font-size: 1rem;
color: var(--text-primary);
letter-spacing: 0.02em;
white-space: nowrap;
line-height: 1.2;
text-decoration: none;
}
.brand-text-logo .brand-text-accent {
display: block;
font-size: 0.6em;
font-weight: 400;
color: var(--text-secondary);
letter-spacing: 0.05em;
}
.sidebar-rail-logo .brand-text-logo {
font-size: 0.7rem;
text-align: center;
padding: 2px;
overflow: hidden;
}
.brand-text-logo-lg {
font-size: 2rem;
}
.brand-text-logo-lg .brand-text-accent {
font-size: 0.5em;
}
.sidebar-rail-nav {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
gap: var(--space-xs);
padding: var(--space-sm) 0;
width: 100%;
}
.sidebar-rail-btn {
display: flex;
align-items: center;
justify-content: center;
width: 44px;
height: 44px;
border: none;
border-radius: var(--radius-md);
background: transparent;
color: var(--text-secondary);
cursor: pointer;
transition: all var(--transition-fast);
position: relative;
}
.sidebar-rail-btn:hover {
background: var(--bg-hover);
color: var(--text-primary);
}
.sidebar-rail-btn.active {
color: var(--accent-blue);
}
.sidebar-rail-btn.active::before {
content: '';
position: absolute;
left: -10px;
top: 50%;
transform: translateY(-50%);
width: 3px;
height: 20px;
border-radius: 0 3px 3px 0;
background: var(--accent-blue);
}
.sidebar-rail-btn.selected {
background: var(--accent-blue-muted);
color: var(--accent-blue);
}
.sidebar-rail-btn .material-icons {
font-size: 22px;
}
.sidebar-rail-bottom {
display: flex;
flex-direction: column;
align-items: center;
gap: var(--space-xs);
padding: var(--space-sm) 0;
border-top: 1px solid var(--border-primary);
width: 100%;
}
/* --- Flyout panel (expands/collapses) --- */
.sidebar-flyout {
width: calc(var(--sidebar-width) - var(--sidebar-width-collapsed));
height: 100%;
background: var(--bg-secondary);
border-right: 1px solid var(--border-primary);
display: flex;
flex-direction: column;
overflow: hidden;
transition: width var(--transition-normal), opacity var(--transition-fast);
}
.sidebar[data-collapsed="true"] .sidebar-flyout {
width: 0;
opacity: 0;
pointer-events: none;
border-right: none;
}
.sidebar[data-collapsed="false"] .sidebar-flyout {
width: calc(var(--sidebar-width) - var(--sidebar-width-collapsed));
opacity: 1;
pointer-events: auto;
}
.sidebar-flyout-header {
height: var(--navbar-height);
display: flex;
align-items: center;
padding: 0 var(--space-md);
border-bottom: 1px solid var(--border-primary);
flex-shrink: 0;
}
.sidebar-flyout-title {
font-size: var(--font-size-sm);
font-weight: var(--font-weight-semibold);
color: var(--text-tertiary);
text-transform: uppercase;
letter-spacing: 0.05em;
}
.sidebar-logo-text {
font-weight: var(--font-weight-bold);
font-size: var(--font-size-md);
color: var(--text-primary);
white-space: nowrap;
}
.sidebar-flyout-header .sidebar-flyout-title + .sidebar-logo-text {
display: none;
}
.sidebar-flyout-header .sidebar-flyout-title:empty + .sidebar-logo-text {
display: inline;
}
/* Flyout panels (one per category) */
.sidebar-flyout-panel {
display: none;
flex-direction: column;
padding: var(--space-sm) 0;
flex: 1;
overflow-y: auto;
}
.sidebar-flyout-panel.visible {
display: flex;
}
/* --- Links inside flyout --- */
.sidebar-link {
display: flex;
align-items: center;
gap: var(--space-sm);
padding: var(--space-sm) var(--space-md);
color: var(--text-secondary);
cursor: pointer;
transition: all var(--transition-fast);
border-left: 3px solid transparent;
white-space: nowrap;
}
.sidebar-link:hover {
background: var(--bg-tertiary);
color: var(--text-primary);
}
.sidebar-link.active {
background: var(--accent-blue-muted);
color: var(--accent-blue);
border-left-color: var(--accent-blue);
}
.sidebar-link .material-icons {
font-size: 20px;
flex-shrink: 0;
}
.sidebar-link-text {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
/* --- Footer (user card + theme toggle) --- */
.sidebar-footer {
padding: var(--space-sm) var(--space-md);
border-top: 1px solid var(--border-primary);
flex-shrink: 0;
}
.sidebar-user {
display: flex;
align-items: center;
gap: var(--space-sm);
padding: var(--space-sm);
border-radius: var(--radius-md);
cursor: pointer;
transition: background var(--transition-fast);
}
.sidebar-user:hover {
background: var(--bg-tertiary);
}
.sidebar-attribution {
display: flex;
flex-direction: column;
gap: 2px;
padding: var(--space-xs) var(--space-sm) 0;
margin-top: var(--space-xs);
font-size: 11px;
line-height: 1.4;
color: var(--text-tertiary);
text-align: center;
}
.sidebar-attribution-text {
color: var(--text-secondary);
word-break: break-word;
}
.sidebar-attribution-powered {
opacity: 0.7;
}
/* Hide attribution in collapsed rail to avoid cramped layout */
#sidebar[data-collapsed="true"] .sidebar-attribution {
display: none;
}
.sidebar-user-avatar {
width: 32px;
height: 32px;
border-radius: 50%;
background: var(--accent-blue-muted);
color: var(--accent-blue);
display: flex;
align-items: center;
justify-content: center;
font-weight: var(--font-weight-bold);
font-size: var(--font-size-sm);
flex-shrink: 0;
}
.sidebar-user-info {
overflow: hidden;
}
.sidebar-user-name {
font-weight: var(--font-weight-medium);
color: var(--text-primary);
white-space: nowrap;
font-size: var(--font-size-sm);
}
.sidebar-user-role {
font-size: var(--font-size-xs);
color: var(--text-secondary);
}
/* Badge on sidebar links */
.badge-sidebar {
margin-left: auto;
background: var(--accent-red);
color: #fff;
border-radius: 10px;
padding: 2px 7px;
font-size: var(--font-size-xs);
font-weight: var(--font-weight-semibold);
line-height: 1;
}
/* ═══════════════════════════════════════════════════════════════════════════
NAVBAR
═══════════════════════════════════════════════════════════════════════════ */
/* Emergency mode banner (Phase A: Auth Delegation) */
.emergency-banner {
position: fixed;
top: 0;
left: var(--sidebar-current-width, var(--sidebar-width-collapsed));
right: 0;
height: 36px;
background: #d32f2f;
color: #fff;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
font-size: 13px;
font-weight: 600;
z-index: calc(var(--z-sticky, 100) + 1);
transition: left var(--transition-normal);
}
.emergency-banner .material-icons { font-size: 18px; }
.emergency-banner + .navbar { top: 36px; }
.navbar {
position: fixed;
top: 0;
left: var(--sidebar-current-width, var(--sidebar-width-collapsed));
right: 0;
height: var(--navbar-height);
transition: left var(--transition-normal);
background: var(--bg-secondary);
border-bottom: 1px solid var(--border-primary);
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 var(--space-lg);
z-index: var(--z-sticky);
}
.navbar-left {
display: flex;
align-items: center;
gap: var(--space-md);
}
.navbar-breadcrumb {
display: flex;
align-items: center;
gap: var(--space-xs);
color: var(--text-secondary);
font-size: var(--font-size-sm);
}
.navbar-breadcrumb a {
color: var(--text-secondary);
}
.navbar-breadcrumb a:hover {
color: var(--text-primary);
}
.navbar-breadcrumb .separator {
color: var(--text-tertiary);
}
.navbar-breadcrumb .current {
color: var(--text-primary);
font-weight: var(--font-weight-medium);
}
.navbar-breadcrumb .breadcrumb-section {
color: var(--text-secondary);
}
.navbar-right {
display: flex;
align-items: center;
gap: var(--space-md);
}
.navbar-btn {
background: none;
border: none;
color: var(--text-secondary);
padding: var(--space-sm);
border-radius: var(--radius-md);
cursor: pointer;
transition: all var(--transition-fast);
display: flex;
align-items: center;
justify-content: center;
}
.navbar-btn:hover {
background: var(--bg-tertiary);
color: var(--text-primary);
}
/* Language selector */
.lang-selector {
position: relative;
}
.lang-dropdown {
position: absolute;
top: 100%;
right: 0;
margin-top: var(--space-xs);
background: var(--bg-tertiary);
border: 1px solid var(--border-primary);
border-radius: var(--radius-md);
box-shadow: var(--shadow-lg);
min-width: 220px;
max-height: min(420px, calc(100vh - 96px));
overflow-y: auto;
overscroll-behavior: contain;
z-index: var(--z-dropdown);
opacity: 0;
visibility: hidden;
transform: translateY(-10px);
transition: all var(--transition-fast);
}
.lang-dropdown.open {
opacity: 1;
visibility: visible;
transform: translateY(0);
}
.lang-option {
padding: var(--space-sm) var(--space-md);
cursor: pointer;
display: flex;
align-items: center;
gap: var(--space-sm);
transition: background var(--transition-fast);
min-height: 40px;
}
.lang-option:hover {
background: var(--bg-elevated);
}
.lang-option.active {
color: var(--accent-blue);
}
.lang-label {
flex: 1;
min-width: 0;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.lang-check {
font-size: 18px;
}
/* ═══════════════════════════════════════════════════════════════════════════
BUTTONS
═══════════════════════════════════════════════════════════════════════════ */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: var(--space-xs);
padding: var(--space-sm) var(--space-md);
font-size: var(--font-size-sm);
font-weight: var(--font-weight-medium);
border-radius: var(--radius-md);
border: 1px solid transparent;
cursor: pointer;
transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition-fast);
white-space: nowrap;
}
.btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.btn .material-icons {
font-size: 18px;
}
.btn-primary {
background: var(--accent-green);
color: white;
border-color: var(--accent-green);
}
.btn-primary:hover:not(:disabled) {
background: var(--accent-green-hover);
border-color: var(--accent-green-hover);
}
.btn-secondary {
background: var(--bg-tertiary);
color: var(--text-primary);
border-color: var(--border-primary);
}
.btn-secondary:hover:not(:disabled) {
background: var(--bg-elevated);
border-color: var(--border-hover);
}
.btn-danger {
background: var(--accent-red);
color: white;
border-color: var(--accent-red);
}
.btn-danger:hover:not(:disabled) {
background: var(--accent-red-hover);
border-color: var(--accent-red-hover);
}
.btn-warning {
background: var(--accent-yellow);
color: white;
border-color: var(--accent-yellow);
}
.btn-warning:hover:not(:disabled) {
background: var(--accent-yellow-hover);
border-color: var(--accent-yellow-hover);
}
.btn-outline {
background: transparent;
color: var(--text-secondary);
border: 1px solid var(--border-primary);
}
.btn-outline:hover:not(:disabled) {
background: var(--bg-tertiary);
color: var(--text-primary);
border-color: var(--border-hover);
}
.btn-ghost {
background: transparent;
color: var(--text-secondary);
}
.btn-ghost:hover:not(:disabled) {
background: var(--bg-tertiary);
color: var(--text-primary);
}
.btn-icon {
padding: var(--space-sm);
min-width: auto;
}
.btn-sm {
padding: var(--space-xs) var(--space-sm);
font-size: var(--font-size-xs);
}
.btn-lg {
padding: var(--space-md) var(--space-lg);
font-size: var(--font-size-md);
}
/* ═══════════════════════════════════════════════════════════════════════════
FORMS
═══════════════════════════════════════════════════════════════════════════ */
.form-group {
margin-bottom: var(--space-md);
}
.form-label {
display: block;
font-size: var(--font-size-sm);
font-weight: var(--font-weight-medium);
color: var(--text-secondary);
margin-bottom: var(--space-xs);
}
.form-input,
.form-select,
.form-textarea {
width: 100%;
padding: var(--space-sm) var(--space-md);
font-size: var(--font-size-md);
color: var(--text-primary);
background: var(--bg-tertiary);
border: 1px solid var(--border-primary);
border-radius: var(--radius-md);
transition: all var(--transition-fast);
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
border-color: var(--accent-blue);
box-shadow: 0 0 0 3px var(--accent-blue-muted);
}
.form-input::placeholder {
color: var(--text-tertiary);
}
.form-input.error {
border-color: var(--accent-red);
}
.form-error {
font-size: var(--font-size-sm);
color: var(--accent-red);
margin-top: var(--space-xs);
}
.form-hint {
font-size: var(--font-size-sm);
color: var(--text-tertiary);
margin-top: var(--space-xs);
}
/* Toggle Switch (checkbox styled as iOS-like toggle) */
.toggle-switch {
appearance: none;
-webkit-appearance: none;
width: 40px;
height: 22px;
background: var(--bg-tertiary, #21262d);
border-radius: 11px;
position: relative;
cursor: pointer;
border: 1px solid var(--border-primary, #30363d);
transition: background 0.2s, border-color 0.2s;
flex-shrink: 0;
}
.toggle-switch::after {
content: '';
position: absolute;
top: 2px;
left: 2px;
width: 16px;
height: 16px;
background: var(--text-secondary, #8b949e);
border-radius: 50%;
transition: transform 0.2s, background 0.2s;
}
.toggle-switch:checked {
background: var(--accent-blue, #58a6ff);
border-color: var(--accent-blue, #58a6ff);
}
.toggle-switch:checked::after {
transform: translateX(18px);
background: #fff;
}
.toggle-switch:disabled {
opacity: 0.5;
cursor: not-allowed;
}
/* Search input with icon */
.search-wrapper {
position: relative;
}
.search-wrapper .material-icons {
position: absolute;
left: var(--space-sm);
top: 50%;
transform: translateY(-50%);
color: var(--text-tertiary);
font-size: 20px;
}
.search-wrapper .form-input {
padding-left: 40px;
}
/* ═══════════════════════════════════════════════════════════════════════════
CARDS
═══════════════════════════════════════════════════════════════════════════ */
.card {
background: var(--bg-secondary);
border: 1px solid var(--border-primary);
border-radius: var(--radius-lg);
overflow: hidden;
}
.card-header {
padding: var(--space-md) var(--space-lg);
border-bottom: 1px solid var(--border-primary);
display: flex;
align-items: center;
justify-content: space-between;
}
.card-title {
font-size: var(--font-size-lg);
font-weight: var(--font-weight-semibold);
color: var(--text-primary);
display: flex;
align-items: center;
gap: var(--space-sm);
}
.card-title .material-icons {
color: var(--accent-blue);
}
.card-body {
padding: var(--space-lg);
}
.card-footer {
padding: var(--space-md) var(--space-lg);
border-top: 1px solid var(--border-primary);
background: var(--bg-tertiary);
}
/* Stat cards */
.stat-cards {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: var(--space-md);
}
.stat-card {
background: var(--bg-secondary);
border: 1px solid var(--border-primary);
border-radius: var(--radius-lg);
padding: var(--space-lg);
display: flex;
align-items: flex-start;
gap: var(--space-md);
transition: all var(--transition-fast);
}
.stat-card:hover {
border-color: var(--border-hover);
}
.stat-card-icon {
width: 48px;
height: 48px;
border-radius: var(--radius-md);
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.stat-card-icon.primary {
background: var(--accent-blue-muted);
color: var(--accent-blue);
}
.stat-card-icon.success {
background: var(--accent-green-muted);
color: var(--accent-green);
}
.stat-card-icon.danger {
background: var(--accent-red-muted);
color: var(--accent-red);
}
.stat-card-icon.warning {
background: var(--accent-yellow-muted);
color: var(--accent-yellow);
}
.stat-card-body {
flex: 1;
}
.stat-card-value {
font-size: var(--font-size-2xl);
font-weight: var(--font-weight-bold);
color: var(--text-primary);
line-height: 1;
}
.stat-card-label {
font-size: var(--font-size-sm);
color: var(--text-secondary);
margin-top: var(--space-xs);
}
/* Stat card inner aliases (used by network, dataguard, tenants modules) */
.stat-icon {
width: 48px;
height: 48px;
border-radius: var(--radius-md);
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.stat-icon.online,
.stat-icon.success {
background: var(--accent-green-muted);
color: var(--accent-green);
}
.stat-icon.offline,
.stat-icon.danger {
background: var(--accent-red-muted);
color: var(--accent-red);
}
.stat-icon.primary {
background: var(--accent-blue-muted);
color: var(--accent-blue);
}
.stat-icon.warning {
background: var(--accent-yellow-muted);
color: var(--accent-yellow);
}
.stat-info {
flex: 1;
min-width: 0;
}
.stat-value {
font-size: var(--font-size-2xl);
font-weight: var(--font-weight-bold);
color: var(--text-primary);
line-height: 1;
}
.stat-label {
font-size: var(--font-size-sm);
color: var(--text-secondary);
margin-top: var(--space-xs);
}
/* ═══════════════════════════════════════════════════════════════════════════
SHARED DATA TABLE (used by inventory, tickets, automation, network, etc.)
═══════════════════════════════════════════════════════════════════════════ */
.data-table {
width: 100%;
border-collapse: collapse;
background: var(--bg-secondary);
border: 1px solid var(--border-primary);
border-radius: var(--radius-lg);
overflow: hidden;
}
.data-table th {
padding: var(--space-sm) var(--space-md);
text-align: left;
font-size: var(--font-size-xs);
font-weight: var(--font-weight-semibold);
color: var(--text-secondary);
text-transform: uppercase;
letter-spacing: 0.05em;
background: var(--bg-tertiary);
border-bottom: 1px solid var(--border-primary);
white-space: nowrap;
}
.data-table td {
padding: var(--space-sm) var(--space-md);
font-size: var(--font-size-sm);
color: var(--text-primary);
border-bottom: 1px solid var(--border-primary);
}
.data-table tr:last-child td {
border-bottom: none;
}
.data-table tr:hover td {
background: var(--bg-hover);
}
.data-table .empty-row:hover td {
background: none;
}
/* ═══════════════════════════════════════════════════════════════════════════
SHARED EMPTY STATE
═══════════════════════════════════════════════════════════════════════════ */
.empty-state {
display: flex;
flex-direction: column;
align-items: center;
gap: var(--space-md);
padding: 40px var(--space-md);
color: var(--text-secondary);
}
.empty-state .material-icons {
font-size: 48px;
opacity: 0.5;
}
.empty-state p {
margin: 0;
font-size: var(--font-size-sm);
}
/* ═══════════════════════════════════════════════════════════════════════════
SHARED FORM LAYOUTS
═══════════════════════════════════════════════════════════════════════════ */
.form-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: var(--space-md);
}
.form-actions {
display: flex;
justify-content: flex-end;
gap: var(--space-sm);
padding-top: var(--space-md);
}
/* ═══════════════════════════════════════════════════════════════════════════
SHARED DETAIL SECTIONS (modals/panels)
═══════════════════════════════════════════════════════════════════════════ */
.detail-section {
margin-bottom: var(--space-lg);
}
.detail-section h4 {
margin: 0 0 var(--space-md);
font-size: var(--font-size-sm);
font-weight: var(--font-weight-semibold);
color: var(--accent-blue);
text-transform: uppercase;
letter-spacing: 0.05em;
}
.detail-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: var(--space-sm) var(--space-md);
}
.detail-item {
display: flex;
flex-direction: column;
gap: 2px;
}
.detail-label {
font-size: var(--font-size-xs);
color: var(--text-secondary);
}
.detail-value {
font-size: var(--font-size-sm);
color: var(--text-primary);
font-weight: var(--font-weight-medium);
}
/* ═══════════════════════════════════════════════════════════════════════════
TABLES
═══════════════════════════════════════════════════════════════════════════ */
.table-wrapper {
overflow-x: auto;
}
.table {
width: 100%;
border-collapse: collapse;
}
.table th,
.table td {
padding: var(--space-sm) var(--space-md);
text-align: left;
border-bottom: 1px solid var(--border-primary);
}
.table th {
font-size: var(--font-size-sm);
font-weight: var(--font-weight-semibold);
color: var(--text-secondary);
background: var(--bg-tertiary);
white-space: nowrap;
}
.table th.sortable {
cursor: pointer;
user-select: none;
}
.table th.sortable:hover {
color: var(--text-primary);
}
.table tbody tr {
transition: background var(--transition-fast);
}
.table tbody tr:hover {
background: var(--bg-tertiary);
}
.table tbody tr.selected {
background: var(--accent-blue-muted);
}
/* Status badge */
.status-badge {
display: inline-flex;
align-items: center;
gap: var(--space-xs);
padding: 2px var(--space-sm);
font-size: var(--font-size-xs);
font-weight: var(--font-weight-medium);
border-radius: var(--radius-full);
}
.status-badge .status-dot {
width: 8px;
height: 8px;
border-radius: 50%;
}
.status-badge.online {
background: var(--accent-green-muted);
color: var(--accent-green);
}
.status-badge.online .status-dot {
background: var(--accent-green);
animation: pulse 2s infinite;
}
.status-badge.offline {
background: var(--bg-elevated);
color: var(--text-secondary);
}
.status-badge.offline .status-dot {
background: var(--text-tertiary);
}
.status-badge.banned {
background: var(--accent-red-muted);
color: var(--accent-red);
}
.status-badge.banned .status-dot {
background: var(--accent-red);
}
@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.5; }
}
/* ═══════════════════════════════════════════════════════════════════════════
MODALS
═══════════════════════════════════════════════════════════════════════════ */
.modal-overlay {
position: fixed;
inset: 0;
background: var(--bg-overlay);
display: none;
align-items: center;
justify-content: center;
z-index: var(--z-modal);
transition: opacity var(--transition-fast);
}
.modal-overlay.open {
display: flex;
opacity: 1;
}
.modal {
background: var(--bg-secondary);
border: 1px solid var(--border-primary);
border-radius: var(--radius-lg);
width: 90%;
max-width: 500px;
max-height: 90vh;
overflow: hidden;
display: flex;
flex-direction: column;
transform: scale(0.95);
transition: transform var(--transition-fast);
}
.modal-overlay.open .modal {
transform: scale(1);
}
.modal-header {
padding: var(--space-md) var(--space-lg);
border-bottom: 1px solid var(--border-primary);
display: flex;
align-items: center;
justify-content: space-between;
}
.modal-title {
font-size: var(--font-size-lg);
font-weight: var(--font-weight-semibold);
}
.modal-close {
background: none;
border: none;
color: var(--text-secondary);
cursor: pointer;
padding: var(--space-xs);
border-radius: var(--radius-sm);
transition: all var(--transition-fast);
}
.modal-close:hover {
color: var(--text-primary);
background: var(--bg-tertiary);
}
.modal-body {
padding: var(--space-lg);
overflow-y: auto;
flex: 1;
}
.modal-footer {
padding: var(--space-md) var(--space-lg);
border-top: 1px solid var(--border-primary);
display: flex;
justify-content: flex-end;
gap: var(--space-sm);
}
/* ═══════════════════════════════════════════════════════════════════════════
TOASTS
═══════════════════════════════════════════════════════════════════════════ */
.toast-container {
position: fixed;
top: var(--space-lg);
right: var(--space-lg);
z-index: var(--z-toast);
display: flex;
flex-direction: column;
gap: var(--space-sm);
}
.toast {
background: var(--bg-tertiary);
border: 1px solid var(--border-primary);
border-radius: var(--radius-md);
padding: var(--space-md);
min-width: 300px;
max-width: 400px;
display: flex;
align-items: flex-start;
gap: var(--space-sm);
box-shadow: var(--shadow-lg);
animation: slideIn 0.3s ease;
}
.toast.success {
border-left: 4px solid var(--accent-green);
}
.toast.error {
border-left: 4px solid var(--accent-red);
}
.toast.warning {
border-left: 4px solid var(--accent-yellow);
}
.toast.info {
border-left: 4px solid var(--accent-blue);
}
.toast-icon {
flex-shrink: 0;
}
.toast.success .toast-icon { color: var(--accent-green); }
.toast.error .toast-icon { color: var(--accent-red); }
/* ────────────────────────────────────────────────────
Shared component styles (tabs, filters, panels)
──────────────────────────────────────────────────── */
/* Tab bar */
.tab-bar {
display: flex;
gap: 4px;
margin-bottom: 24px;
border-bottom: 1px solid var(--border-primary);
overflow-x: auto;
}
.tab-btn {
display: flex;
align-items: center;
gap: 6px;
padding: 10px 16px;
background: none;
border: none;
border-bottom: 2px solid transparent;
color: var(--text-secondary);
font-size: 0.875rem;
font-weight: 500;
cursor: pointer;
white-space: nowrap;
transition: all 0.15s;
}
.tab-btn:hover {
color: var(--text-primary);
background: var(--bg-hover);
}
.tab-btn.active {
color: var(--accent-blue);
border-bottom-color: var(--accent-blue);
}
.tab-btn .material-icons {
font-size: 18px;
}
.tab-panel {
display: none;
}
.tab-panel.active {
display: block;
}
/* Panel actions bar */
.panel-actions {
display: flex;
gap: 12px;
align-items: center;
margin-bottom: 16px;
flex-wrap: wrap;
}
.panel-actions-right {
display: flex;
gap: 8px;
align-items: center;
margin-left: auto;
}
/* Page filters bar */
.page-filters {
display: flex;
gap: 12px;
align-items: center;
margin-bottom: 20px;
flex-wrap: wrap;
}
.page-filters .search-wrapper {
display: flex;
align-items: center;
gap: 8px;
background: var(--bg-secondary);
border: 1px solid var(--border-primary);
border-radius: 6px;
padding: 0 12px;
flex: 1;
min-width: 200px;
max-width: 400px;
}
.page-filters .search-wrapper .material-icons {
position: static;
transform: none;
color: var(--text-secondary);
font-size: 20px;
flex-shrink: 0;
}
.page-filters .search-wrapper .form-input,
.page-filters .search-wrapper input[type="text"] {
border: none;
background: none;
padding: 8px 0;
width: 100%;
outline: none;
color: var(--text-primary);
}
/* Panel actions search wrapper (network, tenants, dataguard) */
.panel-actions .search-wrapper {
display: flex;
align-items: center;
gap: 8px;
background: var(--bg-secondary);
border: 1px solid var(--border-primary);
border-radius: 6px;
padding: 0 12px;
flex: 1;
min-width: 200px;
max-width: 400px;
}
.panel-actions .search-wrapper .material-icons {
position: static;
transform: none;
color: var(--text-secondary);
font-size: 20px;
flex-shrink: 0;
}
.panel-actions .search-wrapper input[type="text"],
.panel-actions .search-wrapper .form-input {
border: none;
background: none;
padding: 8px 0;
width: 100%;
outline: none;
color: var(--text-primary);
font-size: var(--font-size-md);
}
/* Dark theme date inputs */
input[type="date"],
input[type="datetime-local"] {
color-scheme: dark;
background: var(--bg-tertiary);
color: var(--text-primary);
border: 1px solid var(--border-primary);
border-radius: var(--radius-md);
padding: var(--space-xs) var(--space-sm);
font-size: var(--font-size-sm);
}
input[type="date"]:focus,
input[type="datetime-local"]:focus {
border-color: var(--accent-blue);
box-shadow: 0 0 0 3px var(--accent-blue-muted);
}
/* Filter group for date ranges */
.filter-group {
display: flex;
align-items: center;
gap: 8px;
font-size: var(--font-size-sm);
color: var(--text-secondary);
}
.filter-group label {
white-space: nowrap;
}
.range-sep {
color: var(--text-tertiary);
}
/* Filter buttons (inline segmented pills) */
.filter-buttons {
display: flex;
gap: 4px;
align-items: center;
flex-wrap: wrap;
}
.filter-btn {
padding: 4px 10px;
font-size: 0.75rem;
background: transparent;
border: none;
border-radius: 6px;
color: var(--text-secondary);
cursor: pointer;
transition: all 0.15s ease;
white-space: nowrap;
}
.filter-btn:hover {
color: var(--text-primary);
background: var(--bg-hover);
}
.filter-btn.active {
background: var(--accent-blue-muted);
color: var(--accent-blue);
}
.toast.warning .toast-icon { color: var(--accent-yellow); }
.toast.info .toast-icon { color: var(--accent-blue); }
.toast-content {
flex: 1;
}
.toast-title {
font-weight: var(--font-weight-semibold);
margin-bottom: var(--space-xs);
}
.toast-message {
font-size: var(--font-size-sm);
color: var(--text-secondary);
}
.toast-close {
background: none;
border: none;
color: var(--text-tertiary);
cursor: pointer;
padding: 0;
}
.toast-close:hover {
color: var(--text-primary);
}
@keyframes slideIn {
from {
transform: translateX(100%);
opacity: 0;
}
to {
transform: translateX(0);
opacity: 1;
}
}
/* ═══════════════════════════════════════════════════════════════════════════
UTILITIES
═══════════════════════════════════════════════════════════════════════════ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-secondary); }
.text-success { color: var(--accent-green); }
.text-danger { color: var(--accent-red); }
.text-warning { color: var(--accent-yellow); }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.hidden { display: none !important; }
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
border: 0;
}
/* Skeleton loading */
.skeleton {
background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-elevated) 50%, var(--bg-tertiary) 75%);
background-size: 200% 100%;
animation: skeleton-loading 1.5s infinite;
border-radius: var(--radius-sm);
}
.skeleton-text {
height: 1em;
display: inline-block;
min-width: 100px;
}
@keyframes skeleton-loading {
0% { background-position: 200% 0; }
100% { background-position: -200% 0; }
}
/* Monospace text */
.mono {
font-family: var(--font-mono);
font-size: var(--font-size-sm);
background: var(--bg-tertiary);
padding: 2px var(--space-xs);
border-radius: var(--radius-sm);
}
/* ═══════════════════════════════════════════════════════════════════════════
RESPONSIVE
═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
.sidebar {
transform: translateX(-100%);
}
.sidebar.open {
transform: translateX(0);
}
.main-wrapper {
margin-left: 0 !important;
}
.navbar {
left: 0 !important;
}
.sidebar-overlay {
position: fixed;
inset: 0;
background: var(--bg-overlay);
z-index: calc(var(--z-sticky) - 1);
opacity: 0;
visibility: hidden;
transition: all var(--transition-fast);
}
.sidebar.open + .sidebar-overlay {
opacity: 1;
visibility: visible;
}
}
@media (max-width: 768px) {
.main-content {
padding: var(--space-md);
}
.stat-cards {
grid-template-columns: 1fr;
}
.modal {
width: 95%;
max-height: 85vh;
}
.toast-container {
left: var(--space-md);
right: var(--space-md);
}
.toast {
min-width: auto;
max-width: none;
}
.form-row {
grid-template-columns: 1fr;
}
.detail-grid {
grid-template-columns: 1fr;
}
}
/* ═══════════════════════════════════════════════════════════════════════════
SETTINGS SUBSECTION & ALERTS
═══════════════════════════════════════════════════════════════════════════ */
.settings-subsection-title {
font-size: var(--font-size-base);
font-weight: 600;
color: var(--text-primary);
margin: var(--space-lg) 0 var(--space-sm) 0;
padding-bottom: var(--space-xs);
border-bottom: 1px solid var(--border-color);
}
.settings-subsection-title:first-child {
margin-top: 0;
}
.toggle-row {
display: flex;
align-items: center;
justify-content: space-between;
padding: var(--space-sm) 0;
}
.toggle-row .toggle-label {
display: flex;
flex-direction: column;
gap: 2px;
}
.toggle-row .toggle-label span:first-child {
font-weight: 500;
color: var(--text-primary);
}
.toggle-row .toggle-label .form-hint {
margin-top: 0;
}
.alert {
display: flex;
align-items: center;
gap: var(--space-sm);
padding: var(--space-sm) var(--space-md);
border-radius: var(--radius-md);
font-size: var(--font-size-sm);
line-height: 1.5;
}
.alert .material-icons {
font-size: 20px;
flex-shrink: 0;
}
.alert-success {
background: rgba(46, 160, 67, 0.12);
color: #3fb950;
border: 1px solid rgba(46, 160, 67, 0.25);
}
.alert-danger {
background: rgba(248, 81, 73, 0.12);
color: #f85149;
border: 1px solid rgba(248, 81, 73, 0.25);
}
[data-theme="light"] .alert-success {
background: rgba(46, 160, 67, 0.08);
color: #1a7f37;
border-color: rgba(46, 160, 67, 0.3);
}
[data-theme="light"] .alert-danger {
background: rgba(248, 81, 73, 0.08);
color: #cf222e;
border-color: rgba(248, 81, 73, 0.3);
}