mirror of
https://github.com/UNITRONIX/BetterDesk.git
synced 2026-09-10 17:45:42 +00:00
8c1e73ac0b
Added new localization entries for multiple languages, including mobile navigation labels and input modes (touch, touchpad, keyboard, special keys). This update improves user experience by providing comprehensive support for mobile users and ensuring consistent messaging across various languages.
2145 lines
54 KiB
CSS
2145 lines
54 KiB
CSS
/**
|
|
* BetterDesk Console v2.0 - Main Stylesheet
|
|
* Reset, layout, and core components
|
|
*/
|
|
|
|
@import url('./variables.css');
|
|
@import url('https://fonts.googleapis.com/icon?family=Material+Icons|Material+Icons+Outlined|Material+Icons+Round');
|
|
|
|
/* ═══════════════════════════════════════════════════════════════════════════
|
|
GLASS SURFACES — frosted panels (tokens from variables.css / branding.css)
|
|
═══════════════════════════════════════════════════════════════════════════ */
|
|
|
|
.bd-glass-surface,
|
|
.card,
|
|
.stat-card,
|
|
.modal,
|
|
.toast,
|
|
.settings-section,
|
|
.settings-tab,
|
|
.dropdown-menu,
|
|
.table,
|
|
.audit-log-container,
|
|
.public-key-display,
|
|
.server-info-item,
|
|
.navbar,
|
|
.sidebar-rail,
|
|
.sidebar-flyout,
|
|
.form-input,
|
|
.form-select,
|
|
.form-textarea {
|
|
background: var(--surface-glass-bg-secondary, var(--bg-secondary));
|
|
backdrop-filter: blur(var(--surface-glass-blur, 0px)) saturate(var(--surface-glass-saturate, 1));
|
|
-webkit-backdrop-filter: blur(var(--surface-glass-blur, 0px)) saturate(var(--surface-glass-saturate, 1));
|
|
}
|
|
|
|
.card-footer,
|
|
.modal-close:hover {
|
|
background: var(--surface-glass-bg-tertiary, var(--bg-tertiary));
|
|
}
|
|
|
|
.form-input,
|
|
.form-select,
|
|
.form-textarea {
|
|
background: var(--surface-glass-bg-tertiary, var(--bg-tertiary));
|
|
}
|
|
|
|
.card,
|
|
.stat-card,
|
|
.modal,
|
|
.toast,
|
|
.settings-section,
|
|
.settings-tab,
|
|
.dropdown-menu,
|
|
.table,
|
|
.audit-log-container,
|
|
.public-key-display,
|
|
.server-info-item,
|
|
.navbar,
|
|
.sidebar-rail,
|
|
.sidebar-flyout,
|
|
.form-input,
|
|
.form-select,
|
|
.form-textarea {
|
|
border-color: var(--surface-glass-border, var(--border-primary));
|
|
}
|
|
|
|
/* ═══════════════════════════════════════════════════════════════════════════
|
|
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: var(--app-height);
|
|
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: var(--app-height);
|
|
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(var(--app-height) - var(--navbar-height));
|
|
min-height: 0;
|
|
width: 100%;
|
|
overflow-x: hidden;
|
|
overflow-y: auto;
|
|
overscroll-behavior: contain;
|
|
scrollbar-gutter: stable;
|
|
-webkit-overflow-scrolling: touch;
|
|
}
|
|
|
|
.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(--sidebar-glass-bg-rail, var(--surface-glass-bg-secondary, var(--sidebar-rail-bg)));
|
|
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(--sidebar-btn-color);
|
|
cursor: pointer;
|
|
transition: all var(--transition-fast);
|
|
position: relative;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.sidebar-rail-btn:hover {
|
|
background: var(--sidebar-btn-hover-bg);
|
|
color: var(--sidebar-btn-hover-color);
|
|
}
|
|
|
|
.sidebar-rail-btn:focus-visible {
|
|
outline: 2px solid var(--sidebar-focus-ring);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
.sidebar-rail-btn.active::before,
|
|
.sidebar-rail-btn.selected::before {
|
|
content: '';
|
|
position: absolute;
|
|
left: -10px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
width: 3px;
|
|
height: 20px;
|
|
border-radius: 0 3px 3px 0;
|
|
}
|
|
|
|
/* Neutral rail links (settings, attestation) and bottom controls */
|
|
.sidebar-rail-btn:not([data-category]):hover,
|
|
#sidebar-help-btn:hover {
|
|
background: var(--sidebar-btn-hover-bg);
|
|
color: var(--sidebar-btn-hover-color);
|
|
}
|
|
|
|
.sidebar-rail-btn:not([data-category]).active,
|
|
.sidebar-rail-btn:not([data-category]).selected {
|
|
background: var(--sidebar-neutral-muted);
|
|
color: var(--sidebar-neutral-accent);
|
|
}
|
|
|
|
.sidebar-rail-btn:not([data-category]).active::before,
|
|
.sidebar-rail-btn:not([data-category]).selected::before {
|
|
background: var(--sidebar-neutral-accent);
|
|
}
|
|
|
|
#sidebar-expand-btn {
|
|
background: var(--bg-elevated);
|
|
}
|
|
|
|
#sidebar-expand-btn:hover {
|
|
background: var(--sidebar-btn-hover-bg);
|
|
color: var(--sidebar-btn-hover-color);
|
|
}
|
|
|
|
/* Category: main */
|
|
.sidebar-rail-btn[data-category="main"].active,
|
|
.sidebar-rail-btn[data-category="main"].selected {
|
|
background: var(--sidebar-cat-main-muted);
|
|
color: var(--sidebar-cat-main-accent);
|
|
}
|
|
|
|
.sidebar-rail-btn[data-category="main"].active::before,
|
|
.sidebar-rail-btn[data-category="main"].selected::before {
|
|
background: var(--sidebar-cat-main-accent);
|
|
}
|
|
|
|
.sidebar-rail-btn[data-category="main"]:focus-visible {
|
|
outline-color: var(--sidebar-cat-main-accent);
|
|
}
|
|
|
|
/* Category: management */
|
|
.sidebar-rail-btn[data-category="management"].active,
|
|
.sidebar-rail-btn[data-category="management"].selected {
|
|
background: var(--sidebar-cat-management-muted);
|
|
color: var(--sidebar-cat-management-accent);
|
|
}
|
|
|
|
.sidebar-rail-btn[data-category="management"].active::before,
|
|
.sidebar-rail-btn[data-category="management"].selected::before {
|
|
background: var(--sidebar-cat-management-accent);
|
|
}
|
|
|
|
.sidebar-rail-btn[data-category="management"]:focus-visible {
|
|
outline-color: var(--sidebar-cat-management-accent);
|
|
}
|
|
|
|
/* Category: tools */
|
|
.sidebar-rail-btn[data-category="tools"].active,
|
|
.sidebar-rail-btn[data-category="tools"].selected {
|
|
background: var(--sidebar-cat-tools-muted);
|
|
color: var(--sidebar-cat-tools-accent);
|
|
}
|
|
|
|
.sidebar-rail-btn[data-category="tools"].active::before,
|
|
.sidebar-rail-btn[data-category="tools"].selected::before {
|
|
background: var(--sidebar-cat-tools-accent);
|
|
}
|
|
|
|
.sidebar-rail-btn[data-category="tools"]:focus-visible {
|
|
outline-color: var(--sidebar-cat-tools-accent);
|
|
}
|
|
|
|
/* Category: system */
|
|
.sidebar-rail-btn[data-category="system"].active,
|
|
.sidebar-rail-btn[data-category="system"].selected {
|
|
background: var(--sidebar-cat-system-muted);
|
|
color: var(--sidebar-cat-system-accent);
|
|
}
|
|
|
|
.sidebar-rail-btn[data-category="system"].active::before,
|
|
.sidebar-rail-btn[data-category="system"].selected::before {
|
|
background: var(--sidebar-cat-system-accent);
|
|
}
|
|
|
|
.sidebar-rail-btn[data-category="system"]:focus-visible {
|
|
outline-color: var(--sidebar-cat-system-accent);
|
|
}
|
|
|
|
/* Category: server-mgmt */
|
|
.sidebar-rail-btn[data-category="server-mgmt"].active,
|
|
.sidebar-rail-btn[data-category="server-mgmt"].selected {
|
|
background: var(--sidebar-cat-server-mgmt-muted);
|
|
color: var(--sidebar-cat-server-mgmt-accent);
|
|
}
|
|
|
|
.sidebar-rail-btn[data-category="server-mgmt"].active::before,
|
|
.sidebar-rail-btn[data-category="server-mgmt"].selected::before {
|
|
background: var(--sidebar-cat-server-mgmt-accent);
|
|
}
|
|
|
|
.sidebar-rail-btn[data-category="server-mgmt"]:focus-visible {
|
|
outline-color: var(--sidebar-cat-server-mgmt-accent);
|
|
}
|
|
|
|
/* Category: commercialization */
|
|
.sidebar-rail-btn[data-category="commercialization"].active,
|
|
.sidebar-rail-btn[data-category="commercialization"].selected {
|
|
background: var(--sidebar-cat-commercialization-muted);
|
|
color: var(--sidebar-cat-commercialization-accent);
|
|
}
|
|
|
|
.sidebar-rail-btn[data-category="commercialization"].active::before,
|
|
.sidebar-rail-btn[data-category="commercialization"].selected::before {
|
|
background: var(--sidebar-cat-commercialization-accent);
|
|
}
|
|
|
|
.sidebar-rail-btn[data-category="commercialization"]:focus-visible {
|
|
outline-color: var(--sidebar-cat-commercialization-accent);
|
|
}
|
|
|
|
.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(--sidebar-glass-bg-flyout, var(--surface-glass-bg-secondary, var(--sidebar-flyout-bg)));
|
|
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(--sidebar-section-title);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
}
|
|
|
|
.sidebar-flyout[data-active-category="main"] .sidebar-flyout-title {
|
|
color: var(--sidebar-cat-main-accent);
|
|
}
|
|
|
|
.sidebar-flyout[data-active-category="management"] .sidebar-flyout-title {
|
|
color: var(--sidebar-cat-management-accent);
|
|
}
|
|
|
|
.sidebar-flyout[data-active-category="tools"] .sidebar-flyout-title {
|
|
color: var(--sidebar-cat-tools-accent);
|
|
}
|
|
|
|
.sidebar-flyout[data-active-category="system"] .sidebar-flyout-title {
|
|
color: var(--sidebar-cat-system-accent);
|
|
}
|
|
|
|
.sidebar-flyout[data-active-category="server-mgmt"] .sidebar-flyout-title {
|
|
color: var(--sidebar-cat-server-mgmt-accent);
|
|
}
|
|
|
|
.sidebar-flyout[data-active-category="commercialization"] .sidebar-flyout-title {
|
|
color: var(--sidebar-cat-commercialization-accent);
|
|
}
|
|
|
|
/* 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);
|
|
margin: 0 var(--space-sm);
|
|
padding: var(--space-sm) var(--space-md);
|
|
color: var(--sidebar-btn-color);
|
|
cursor: pointer;
|
|
transition: all var(--transition-fast);
|
|
border-left: 3px solid transparent;
|
|
border-radius: var(--radius-md);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.sidebar-link-external {
|
|
margin-left: auto;
|
|
font-size: 14px;
|
|
opacity: 0.55;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.sidebar-link:hover .sidebar-link-external {
|
|
opacity: 0.85;
|
|
}
|
|
|
|
.sidebar-link:hover {
|
|
background: var(--sidebar-btn-hover-bg);
|
|
color: var(--sidebar-btn-hover-color);
|
|
}
|
|
|
|
.sidebar-link:focus-visible {
|
|
outline: 2px solid var(--sidebar-focus-ring);
|
|
outline-offset: 1px;
|
|
}
|
|
|
|
.sidebar-link.active {
|
|
font-weight: var(--font-weight-medium);
|
|
}
|
|
|
|
/* Flyout link colors per active category */
|
|
.sidebar-flyout[data-active-category="main"] .sidebar-link.active {
|
|
background: var(--sidebar-cat-main-muted);
|
|
color: var(--sidebar-cat-main-accent);
|
|
border-left-color: var(--sidebar-cat-main-accent);
|
|
}
|
|
|
|
.sidebar-flyout[data-active-category="main"] .sidebar-link:focus-visible {
|
|
outline-color: var(--sidebar-cat-main-accent);
|
|
}
|
|
|
|
.sidebar-flyout[data-active-category="management"] .sidebar-link.active {
|
|
background: var(--sidebar-cat-management-muted);
|
|
color: var(--sidebar-cat-management-accent);
|
|
border-left-color: var(--sidebar-cat-management-accent);
|
|
}
|
|
|
|
.sidebar-flyout[data-active-category="management"] .sidebar-link:focus-visible {
|
|
outline-color: var(--sidebar-cat-management-accent);
|
|
}
|
|
|
|
.sidebar-flyout[data-active-category="tools"] .sidebar-link.active {
|
|
background: var(--sidebar-cat-tools-muted);
|
|
color: var(--sidebar-cat-tools-accent);
|
|
border-left-color: var(--sidebar-cat-tools-accent);
|
|
}
|
|
|
|
.sidebar-flyout[data-active-category="tools"] .sidebar-link:focus-visible {
|
|
outline-color: var(--sidebar-cat-tools-accent);
|
|
}
|
|
|
|
.sidebar-flyout[data-active-category="system"] .sidebar-link.active {
|
|
background: var(--sidebar-cat-system-muted);
|
|
color: var(--sidebar-cat-system-accent);
|
|
border-left-color: var(--sidebar-cat-system-accent);
|
|
}
|
|
|
|
.sidebar-flyout[data-active-category="system"] .sidebar-link:focus-visible {
|
|
outline-color: var(--sidebar-cat-system-accent);
|
|
}
|
|
|
|
.sidebar-flyout[data-active-category="server-mgmt"] .sidebar-link.active {
|
|
background: var(--sidebar-cat-server-mgmt-muted);
|
|
color: var(--sidebar-cat-server-mgmt-accent);
|
|
border-left-color: var(--sidebar-cat-server-mgmt-accent);
|
|
}
|
|
|
|
.sidebar-flyout[data-active-category="server-mgmt"] .sidebar-link:focus-visible {
|
|
outline-color: var(--sidebar-cat-server-mgmt-accent);
|
|
}
|
|
|
|
.sidebar-flyout[data-active-category="commercialization"] .sidebar-link.active {
|
|
background: var(--sidebar-cat-commercialization-muted);
|
|
color: var(--sidebar-cat-commercialization-accent);
|
|
border-left-color: var(--sidebar-cat-commercialization-accent);
|
|
}
|
|
|
|
.sidebar-flyout[data-active-category="commercialization"] .sidebar-link:focus-visible {
|
|
outline-color: var(--sidebar-cat-commercialization-accent);
|
|
}
|
|
|
|
.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;
|
|
margin-top: auto;
|
|
}
|
|
|
|
|
|
|
|
.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;
|
|
}
|
|
|
|
.sidebar-flyout-stage.badge-sidebar {
|
|
margin-left: 0;
|
|
background: linear-gradient(135deg, #a371f7, #58a6ff);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.sidebar-flyout-stage.hidden {
|
|
display: none;
|
|
}
|
|
|
|
.badge-sidebar--alpha {
|
|
background: linear-gradient(135deg, #a371f7, #58a6ff);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.sidebar-rail-btn--alpha {
|
|
position: relative;
|
|
}
|
|
|
|
.sidebar-rail-btn .rail-stage-badge {
|
|
position: absolute;
|
|
right: 2px;
|
|
bottom: 2px;
|
|
padding: 1px 3px;
|
|
border-radius: 3px;
|
|
font-size: 7px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.02em;
|
|
line-height: 1.1;
|
|
background: linear-gradient(135deg, #a371f7, #58a6ff);
|
|
color: #fff;
|
|
pointer-events: none;
|
|
}
|
|
|
|
/* ═══════════════════════════════════════════════════════════════════════════
|
|
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);
|
|
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);
|
|
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 {
|
|
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);
|
|
}
|
|
|
|
/* Stat cards */
|
|
.stat-cards {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
gap: var(--space-md);
|
|
}
|
|
|
|
.stat-card {
|
|
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 {
|
|
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);
|
|
}
|
|
|
|
.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: min(85vh, calc(var(--app-height) - var(--safe-top) - var(--safe-bottom) - 2rem));
|
|
}
|
|
|
|
.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);
|
|
}
|