mirror of
https://github.com/PRVTPRO/Amnezia-Web-Panel.git
synced 2026-09-18 01:44:10 +02:00
900a4de5db
- #userConnsModal .modal max-width 960px (was inline 600px) - .page--servers .btn-sm padding 6px 12px - dropped fixed min-width on .speed-badge so it hugs its content
2898 lines
62 KiB
CSS
2898 lines
62 KiB
CSS
/* ========================================
|
|
AmneziaVPN Web Panel — Design System
|
|
======================================== */
|
|
|
|
/* Google Font */
|
|
/* @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap'); */
|
|
|
|
/* ===== CSS Variables / Tokens ===== */
|
|
:root {
|
|
/* Color palette — deep dark with neon violet accent */
|
|
--bg-primary: #0a0a0f;
|
|
--bg-secondary: #12121a;
|
|
--bg-card: #1a1a26;
|
|
--bg-card-hover: #22223a;
|
|
--bg-input: #16162240;
|
|
--bg-modal: rgba(10, 10, 15, 0.92);
|
|
|
|
--border-color: rgba(255, 255, 255, 0.06);
|
|
--border-hover: rgba(255, 255, 255, 0.12);
|
|
--border-focus: rgba(138, 92, 246, 0.5);
|
|
|
|
--text-primary: #f0f0f5;
|
|
--text-secondary: #8b8ba0;
|
|
--text-muted: #83839c;
|
|
--text-accent: #a78bfa;
|
|
|
|
--accent: #8b5cf6;
|
|
--accent-light: #a78bfa;
|
|
--accent-dark: #7c3aed;
|
|
--accent-glow: rgba(139, 92, 246, 0.25);
|
|
--accent-gradient: linear-gradient(135deg, #7c3aed, #2d2f71);
|
|
|
|
--success: #22c55e;
|
|
--success-bg: rgba(34, 197, 94, 0.12);
|
|
--success-border: rgba(34, 197, 94, 0.25);
|
|
|
|
--danger: #ef4444;
|
|
--danger-bg: rgba(239, 68, 68, 0.12);
|
|
--danger-border: rgba(239, 68, 68, 0.25);
|
|
|
|
--warning: #f59e0b;
|
|
--warning-bg: rgba(245, 158, 11, 0.12);
|
|
|
|
--info: #3b82f6;
|
|
--info-bg: rgba(59, 130, 246, 0.12);
|
|
|
|
/* Spacing */
|
|
--space-xs: 4px;
|
|
--space-sm: 8px;
|
|
--space-md: 16px;
|
|
--space-lg: 24px;
|
|
--space-xl: 32px;
|
|
--space-2xl: 48px;
|
|
--space-3xl: 64px;
|
|
|
|
/* Radius */
|
|
--radius-sm: 8px;
|
|
--radius-md: 12px;
|
|
--radius-lg: 16px;
|
|
--radius-xl: 20px;
|
|
--radius-full: 9999px;
|
|
|
|
/* Shadows */
|
|
--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
|
|
--shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
|
|
--shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
|
|
--shadow-glow: 0 0 30px rgba(139, 92, 246, 0.15);
|
|
--shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.04);
|
|
|
|
/* Transitions */
|
|
--transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
|
|
--transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
|
|
--transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
|
|
|
|
/* Font */
|
|
--font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
|
--text-xs: 0.72rem;
|
|
--text-sm: 0.8rem;
|
|
--text-base: 0.9rem;
|
|
--text-md: 1rem;
|
|
--text-lg: 1.1rem;
|
|
--text-xl: 1.4rem;
|
|
--text-2xl: 1.5rem;
|
|
}
|
|
|
|
/* ===== Light Theme ===== */
|
|
[data-theme="light"] {
|
|
--bg-primary: #f5f5f9;
|
|
--bg-secondary: #eeeef3;
|
|
--bg-card: #ffffff;
|
|
--bg-card-hover: #f8f8fc;
|
|
--bg-input: rgba(0, 0, 0, 0.03);
|
|
--bg-modal: rgba(255, 255, 255, 0.92);
|
|
|
|
--border-color: rgba(0, 0, 0, 0.08);
|
|
--border-hover: rgba(0, 0, 0, 0.15);
|
|
--border-focus: rgba(138, 92, 246, 0.4);
|
|
|
|
--text-primary: #1a1a2e;
|
|
--text-secondary: #5a5a78;
|
|
--text-muted: #6b6b83;
|
|
--text-accent: #7c3aed;
|
|
|
|
--accent: #7c3aed;
|
|
--accent-light: #8b5cf6;
|
|
--accent-dark: #6d28d9;
|
|
--accent-glow: rgba(124, 58, 237, 0.15);
|
|
--accent-gradient: linear-gradient(135deg, #7c3aed, #2d2f71);
|
|
|
|
--success: #16a34a;
|
|
--success-bg: rgba(22, 163, 74, 0.08);
|
|
--success-border: rgba(22, 163, 74, 0.2);
|
|
|
|
--danger: #dc2626;
|
|
--danger-bg: rgba(220, 38, 38, 0.06);
|
|
--danger-border: rgba(220, 38, 38, 0.15);
|
|
|
|
--warning: #d97706;
|
|
--warning-bg: rgba(217, 119, 6, 0.08);
|
|
|
|
--info: #2563eb;
|
|
--info-bg: rgba(37, 99, 235, 0.06);
|
|
|
|
--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
|
|
--shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
|
|
--shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);
|
|
--shadow-glow: 0 0 20px rgba(124, 58, 237, 0.08);
|
|
--shadow-card: 0 2px 12px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.03);
|
|
}
|
|
|
|
[data-theme="light"] body::before {
|
|
background:
|
|
radial-gradient(ellipse 600px 400px at 20% 10%, rgba(124, 58, 237, 0.04), transparent),
|
|
radial-gradient(ellipse 500px 500px at 80% 80%, rgba(99, 102, 241, 0.03), transparent),
|
|
radial-gradient(ellipse 800px 300px at 50% 50%, rgba(139, 92, 246, 0.02), transparent);
|
|
}
|
|
|
|
[data-theme="light"] .logo-text {
|
|
background: linear-gradient(135deg, #1a1a2e, #7c3aed);
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
background-clip: text;
|
|
}
|
|
|
|
[data-theme="light"] .theme-toggle {
|
|
background: rgba(0, 0, 0, 0.04);
|
|
}
|
|
|
|
[data-theme="light"] .theme-toggle:hover {
|
|
background: rgba(0, 0, 0, 0.08);
|
|
}
|
|
|
|
[data-theme="light"] .header-nav {
|
|
background: #ffffff;
|
|
}
|
|
|
|
/* ===== Theme Toggle ===== */
|
|
.theme-toggle {
|
|
width: 36px;
|
|
height: 36px;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius-full);
|
|
background: rgba(255, 255, 255, 0.04);
|
|
color: var(--text-muted);
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 1rem;
|
|
transition: all var(--transition-base);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.theme-toggle:hover {
|
|
color: var(--text-primary);
|
|
border-color: var(--border-hover);
|
|
background: rgba(255, 255, 255, 0.08);
|
|
transform: rotate(15deg);
|
|
}
|
|
|
|
/* ===== Reset & Base ===== */
|
|
*,
|
|
*::before,
|
|
*::after {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
html {
|
|
font-size: 16px;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
max-width: 100%;
|
|
}
|
|
|
|
body {
|
|
font-family: var(--font-family);
|
|
background: var(--bg-primary);
|
|
color: var(--text-primary);
|
|
line-height: 1.6;
|
|
min-height: 100vh;
|
|
max-width: 100%;
|
|
/* Pair both axes: overflow-x:hidden + overflow-y:visible computes to auto/auto
|
|
and Chrome then paints a persistent gutter (Pixel settings page). */
|
|
overflow-x: hidden;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
:focus-visible {
|
|
outline: 2px solid var(--accent);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
/* Animated mesh gradient background */
|
|
body::before {
|
|
content: '';
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background:
|
|
radial-gradient(ellipse 600px 400px at 20% 10%, rgba(99, 102, 241, 0.08), transparent),
|
|
radial-gradient(ellipse 500px 500px at 80% 80%, rgba(139, 92, 246, 0.06), transparent),
|
|
radial-gradient(ellipse 800px 300px at 50% 50%, rgba(79, 70, 229, 0.04), transparent);
|
|
pointer-events: none;
|
|
z-index: 0;
|
|
}
|
|
|
|
a {
|
|
color: var(--accent-light);
|
|
text-decoration: none;
|
|
transition: color var(--transition-fast);
|
|
}
|
|
|
|
a:hover {
|
|
color: var(--accent);
|
|
}
|
|
|
|
::selection {
|
|
background: rgba(139, 92, 246, 0.3);
|
|
color: #fff;
|
|
}
|
|
|
|
/* ===== Scrollbar (mouse/trackpad only) =====
|
|
* Styling ::-webkit-scrollbar forces classic always-on gutters in Chromium.
|
|
* On phones (Pixel etc.) that makes a permanent side slider on long pages
|
|
* like Settings. Leave touch devices on native overlay scrollbars. */
|
|
@media (hover: hover) and (pointer: fine) {
|
|
::-webkit-scrollbar {
|
|
width: 6px;
|
|
}
|
|
|
|
::-webkit-scrollbar-track {
|
|
background: transparent;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background: rgba(139, 92, 246, 0.3);
|
|
border-radius: var(--radius-full);
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background: rgba(139, 92, 246, 0.5);
|
|
}
|
|
|
|
[data-theme="light"] ::-webkit-scrollbar-thumb {
|
|
background: rgba(124, 58, 237, 0.2);
|
|
}
|
|
}
|
|
|
|
/* Touch: overlay-only scrolling — no persistent gutter on long pages (Settings). */
|
|
@media (hover: none), (pointer: coarse) {
|
|
html,
|
|
body {
|
|
scrollbar-width: none;
|
|
-ms-overflow-style: none;
|
|
}
|
|
|
|
html::-webkit-scrollbar,
|
|
body::-webkit-scrollbar {
|
|
width: 0;
|
|
height: 0;
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
/* ===== Layout ===== */
|
|
.app-container {
|
|
/* Avoid z-index here so page modals can stack above .mobile-tabbar. */
|
|
position: relative;
|
|
max-width: 1100px;
|
|
margin: 0 auto;
|
|
padding: var(--space-xl) var(--space-lg);
|
|
}
|
|
|
|
/* ===== Header ===== */
|
|
.app-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: var(--space-lg) 0;
|
|
margin-bottom: var(--space-xl);
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
.app-logo {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-md);
|
|
}
|
|
|
|
.logo-icon {
|
|
width: 44px;
|
|
height: 44px;
|
|
background: var(--accent-gradient);
|
|
border-radius: var(--radius-md);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 22px;
|
|
box-shadow: var(--shadow-glow);
|
|
}
|
|
|
|
.logo-text {
|
|
font-size: 1.35rem;
|
|
font-weight: 700;
|
|
letter-spacing: -0.02em;
|
|
background: linear-gradient(135deg, #f0f0f5, #a78bfa);
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
background-clip: text;
|
|
}
|
|
|
|
.logo-subtitle {
|
|
font-size: 0.75rem;
|
|
color: var(--text-muted);
|
|
font-weight: 400;
|
|
letter-spacing: 0.05em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
/* ===== Buttons ===== */
|
|
.btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: var(--space-sm);
|
|
/* symbol glyphs like U+23F9 fall back to a font with much taller metrics,
|
|
which stretches the line box downwards and leaves the label riding high */
|
|
line-height: 1;
|
|
padding: 10px 20px;
|
|
border: none;
|
|
border-radius: var(--radius-md);
|
|
font-family: var(--font-family);
|
|
font-size: 0.875rem;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all var(--transition-base);
|
|
position: relative;
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.btn::before {
|
|
content: '';
|
|
position: absolute;
|
|
inset: 0;
|
|
background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
|
|
opacity: 0;
|
|
transition: opacity var(--transition-fast);
|
|
}
|
|
|
|
.btn:hover::before {
|
|
opacity: 1;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: var(--accent-gradient);
|
|
color: #fff;
|
|
box-shadow: 0 2px 12px rgba(139, 92, 246, 0.3);
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
|
|
}
|
|
|
|
.btn-primary:active {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.btn-secondary {
|
|
background: var(--bg-card);
|
|
color: var(--text-primary);
|
|
border: 1px solid var(--border-color);
|
|
}
|
|
|
|
.btn-secondary:hover {
|
|
border-color: var(--border-hover);
|
|
background: var(--bg-card-hover);
|
|
}
|
|
|
|
.btn-danger {
|
|
background: var(--danger-bg);
|
|
color: var(--danger);
|
|
border: 1px solid var(--danger-border);
|
|
}
|
|
|
|
.btn-danger:hover {
|
|
background: rgba(239, 68, 68, 0.2);
|
|
}
|
|
|
|
.btn-success {
|
|
background: var(--success-bg);
|
|
color: var(--success);
|
|
border: 1px solid var(--success-border);
|
|
}
|
|
|
|
.btn-sm {
|
|
padding: 6px 14px;
|
|
font-size: 0.8rem;
|
|
border-radius: var(--radius-sm);
|
|
}
|
|
|
|
.btn-icon {
|
|
width: 36px;
|
|
height: 36px;
|
|
padding: 0;
|
|
border-radius: var(--radius-sm);
|
|
font-size: 1.1rem;
|
|
/* .btn overflow:hidden clips emoji glyphs; SVG icons stay inside the box */
|
|
overflow: visible;
|
|
}
|
|
|
|
.btn-icon-svg {
|
|
width: 16px;
|
|
height: 16px;
|
|
display: block;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.btn-text-with-icon {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.btn:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.btn .spinner {
|
|
width: 16px;
|
|
height: 16px;
|
|
border: 2px solid rgba(255, 255, 255, 0.2);
|
|
border-top-color: #1c1c30;
|
|
border-radius: 50%;
|
|
animation: spin 0.6s linear infinite;
|
|
color: #fff;
|
|
}
|
|
|
|
/* ===== Cards ===== */
|
|
.card {
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius-lg);
|
|
padding: var(--space-lg);
|
|
box-shadow: var(--shadow-card);
|
|
transition: all var(--transition-base);
|
|
}
|
|
|
|
.card-hover:hover {
|
|
border-color: var(--border-hover);
|
|
box-shadow: var(--shadow-card), var(--shadow-glow);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.card-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: var(--space-lg);
|
|
}
|
|
|
|
.card-title {
|
|
font-size: var(--text-lg);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.card-subtitle {
|
|
font-size: 0.85rem;
|
|
color: var(--text-secondary);
|
|
margin-top: var(--space-xs);
|
|
}
|
|
|
|
/* ===== Section ===== */
|
|
.section-title {
|
|
font-size: var(--text-2xl);
|
|
font-weight: 700;
|
|
margin-bottom: var(--space-lg);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-md);
|
|
}
|
|
|
|
.section-title .icon {
|
|
font-size: 1.3rem;
|
|
}
|
|
|
|
.section-title .icon,
|
|
.section-title svg {
|
|
flex-shrink: 0;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
/* ===== Page Header ===== */
|
|
.page-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: var(--space-md);
|
|
flex-wrap: wrap;
|
|
margin-bottom: var(--space-lg);
|
|
}
|
|
|
|
.page-header__title {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.page-header__actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
flex-wrap: wrap;
|
|
margin-left: auto;
|
|
}
|
|
|
|
.page-header__search {
|
|
flex: 1;
|
|
min-width: 220px;
|
|
max-width: 500px;
|
|
}
|
|
|
|
.page-header-card {
|
|
margin-bottom: var(--space-xl);
|
|
}
|
|
|
|
.page-header--card,
|
|
.page-header--secondary {
|
|
margin-bottom: var(--space-lg);
|
|
}
|
|
|
|
.search-field {
|
|
position: relative;
|
|
}
|
|
|
|
.search-field .form-input {
|
|
padding-inline-start: 40px;
|
|
}
|
|
|
|
.search-field-icon {
|
|
position: absolute;
|
|
inset-inline-start: 14px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
opacity: 0.5;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.settings-nav {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: var(--space-sm);
|
|
margin-bottom: var(--space-lg);
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 30;
|
|
padding: var(--space-sm) 0;
|
|
background: var(--bg-primary);
|
|
}
|
|
|
|
.settings-nav a {
|
|
padding: 6px 12px;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius-full);
|
|
color: var(--text-secondary);
|
|
font-size: var(--text-sm);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.settings-nav a:hover {
|
|
border-color: var(--border-hover);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
/* ===== Server Card ===== */
|
|
.server-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
|
|
gap: var(--space-lg);
|
|
margin-bottom: var(--space-xl);
|
|
}
|
|
|
|
.server-card {
|
|
position: relative;
|
|
cursor: grab;
|
|
}
|
|
|
|
.server-card:active {
|
|
cursor: grabbing;
|
|
}
|
|
|
|
/* While being dragged: dim the card so the user sees their selection. */
|
|
.server-card.dragging {
|
|
opacity: 0.45;
|
|
cursor: grabbing;
|
|
}
|
|
|
|
/* Drop target hint: highlighted border + slight lift. */
|
|
.server-card.drag-over {
|
|
border-color: var(--accent);
|
|
box-shadow: 0 0 0 2px var(--accent), 0 8px 20px rgba(139, 92, 246, 0.25);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
/* Ping indicator dot to the left of the server name. */
|
|
.ping-dot {
|
|
display: inline-block;
|
|
width: 9px;
|
|
height: 9px;
|
|
border-radius: 50%;
|
|
margin-right: 6px;
|
|
vertical-align: middle;
|
|
background: #888;
|
|
transition: background-color 0.25s ease, box-shadow 0.25s ease;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.ping-dot.ping-pending {
|
|
background: #94a3b8;
|
|
animation: ping-pulse 1.2s ease-in-out infinite;
|
|
}
|
|
|
|
.ping-dot.ping-ok {
|
|
background: var(--success);
|
|
box-shadow: 0 0 6px rgba(34, 197, 94, 0.55);
|
|
}
|
|
|
|
.ping-dot.ping-fail {
|
|
background: var(--danger, #ef4444);
|
|
}
|
|
|
|
.ping-ms {
|
|
font-size: 0.72rem;
|
|
margin-left: 6px;
|
|
color: var(--text-muted);
|
|
font-family: 'SF Mono', 'Fira Code', monospace;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
@keyframes ping-pulse {
|
|
0%, 100% { opacity: 0.35; }
|
|
50% { opacity: 1; }
|
|
}
|
|
|
|
.server-icon {
|
|
width: 48px;
|
|
height: 48px;
|
|
background: var(--accent-gradient);
|
|
border-radius: var(--radius-md);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 1.4rem;
|
|
flex-shrink: 0;
|
|
box-shadow: 0 2px 12px rgba(139, 92, 246, 0.2);
|
|
}
|
|
|
|
.server-card .server-meta {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-md);
|
|
margin-bottom: var(--space-md);
|
|
}
|
|
|
|
.server-card .server-name {
|
|
font-size: 1.05rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.server-card .server-host {
|
|
font-size: 0.8rem;
|
|
color: var(--text-muted);
|
|
font-family: 'SF Mono', 'Fira Code', monospace;
|
|
}
|
|
|
|
.server-card .server-protocols {
|
|
display: flex;
|
|
gap: var(--space-sm);
|
|
flex-wrap: wrap;
|
|
margin-top: var(--space-sm);
|
|
}
|
|
|
|
.server-card .server-actions {
|
|
display: flex;
|
|
gap: var(--space-sm);
|
|
margin-top: var(--space-md);
|
|
padding-top: var(--space-md);
|
|
border-top: 1px solid var(--border-color);
|
|
align-items: center;
|
|
}
|
|
|
|
/* Desktop: Manage fills leftover space (replaces former inline style="flex:1") */
|
|
.server-card .server-actions > a.btn:not(.btn-icon) {
|
|
flex: 1;
|
|
}
|
|
|
|
/* ===== Badge ===== */
|
|
.badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 4px 10px;
|
|
border-radius: var(--radius-full);
|
|
font-size: var(--text-xs);
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.03em;
|
|
}
|
|
|
|
.badge-success {
|
|
background: var(--success-bg);
|
|
color: var(--success);
|
|
border: 1px solid var(--success-border);
|
|
}
|
|
|
|
.badge-danger {
|
|
background: var(--danger-bg);
|
|
color: var(--danger);
|
|
border: 1px solid var(--danger-border);
|
|
}
|
|
|
|
.badge-info {
|
|
background: var(--info-bg);
|
|
color: var(--info);
|
|
border: 1px solid rgba(59, 130, 246, 0.25);
|
|
}
|
|
|
|
.badge-warn {
|
|
background: var(--warning-bg);
|
|
color: var(--warning);
|
|
border: 1px solid rgba(245, 158, 11, 0.25);
|
|
}
|
|
|
|
.badge-secondary {
|
|
background: rgba(255, 255, 255, 0.06);
|
|
color: var(--text-secondary);
|
|
border: 1px solid var(--border-color);
|
|
}
|
|
|
|
.badge-dot {
|
|
width: 6px;
|
|
height: 6px;
|
|
border-radius: 50%;
|
|
background: currentColor;
|
|
}
|
|
|
|
/* ===== Form Elements ===== */
|
|
.form-group {
|
|
margin-bottom: var(--space-md);
|
|
}
|
|
|
|
.form-label {
|
|
display: block;
|
|
font-size: var(--text-sm);
|
|
font-weight: 500;
|
|
color: var(--text-secondary);
|
|
margin-bottom: var(--space-xs);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
}
|
|
|
|
.form-input,
|
|
.form-select,
|
|
.form-textarea {
|
|
width: 100%;
|
|
min-width: 0;
|
|
max-width: 100%;
|
|
padding: 11px 16px;
|
|
background: var(--bg-input);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius-md);
|
|
color: var(--text-primary);
|
|
font-family: var(--font-family);
|
|
font-size: 0.9rem;
|
|
transition: all var(--transition-fast);
|
|
outline: none;
|
|
}
|
|
|
|
.form-input:focus,
|
|
.form-select:focus,
|
|
.form-textarea:focus {
|
|
border-color: var(--border-focus);
|
|
box-shadow: 0 0 0 3px var(--accent-glow);
|
|
background: var(--bg-secondary);
|
|
}
|
|
|
|
.form-input::placeholder {
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.form-textarea {
|
|
min-height: 100px;
|
|
resize: vertical;
|
|
font-family: 'SF Mono', 'Fira Code', monospace;
|
|
font-size: 0.82rem;
|
|
}
|
|
|
|
.form-select {
|
|
appearance: none;
|
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238b8ba0' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
|
|
background-repeat: no-repeat;
|
|
background-position: right 14px center;
|
|
padding-right: 36px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
/* ===== Searchable Select ===== */
|
|
.searchable-select {
|
|
position: relative;
|
|
}
|
|
|
|
/* The native <select> stays in the DOM as the source of truth. */
|
|
.searchable-select-native {
|
|
position: absolute;
|
|
width: 1px;
|
|
height: 1px;
|
|
padding: 0;
|
|
margin: -1px;
|
|
overflow: hidden;
|
|
clip: rect(0 0 0 0);
|
|
white-space: nowrap;
|
|
border: 0;
|
|
}
|
|
|
|
.searchable-select-trigger {
|
|
display: block;
|
|
text-align: start;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.searchable-select.is-open .searchable-select-trigger {
|
|
border-color: var(--border-focus);
|
|
box-shadow: 0 0 0 3px var(--accent-glow);
|
|
background: var(--bg-secondary);
|
|
}
|
|
|
|
.searchable-select-panel {
|
|
position: absolute;
|
|
inset-inline: 0;
|
|
top: calc(100% + 4px);
|
|
z-index: 20;
|
|
padding: var(--space-sm);
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius-md);
|
|
box-shadow: var(--shadow-lg);
|
|
}
|
|
|
|
.searchable-select-search {
|
|
margin-bottom: var(--space-sm);
|
|
}
|
|
|
|
.searchable-select-search .form-input {
|
|
padding: 8px 12px;
|
|
}
|
|
|
|
.searchable-select-list {
|
|
max-height: 220px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.searchable-select-option {
|
|
padding: 8px 12px;
|
|
border-radius: var(--radius-sm);
|
|
color: var(--text-primary);
|
|
font-size: 0.9rem;
|
|
cursor: pointer;
|
|
transition: background var(--transition-fast);
|
|
}
|
|
|
|
.searchable-select-option:hover,
|
|
.searchable-select-option.is-active {
|
|
background: var(--bg-card-hover);
|
|
}
|
|
|
|
.searchable-select-option[aria-selected="true"] {
|
|
color: var(--text-accent);
|
|
}
|
|
|
|
.searchable-select-option.is-disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.searchable-select-empty {
|
|
padding: 8px 12px;
|
|
color: var(--text-muted);
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.form-row {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: var(--space-md);
|
|
}
|
|
|
|
.form-hint {
|
|
font-size: var(--text-sm);
|
|
color: var(--text-muted);
|
|
margin-top: var(--space-xs);
|
|
}
|
|
|
|
/* ===== Modal ===== */
|
|
.modal-backdrop {
|
|
position: fixed;
|
|
inset: 0;
|
|
background: var(--bg-modal);
|
|
z-index: 1000;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
transition: all var(--transition-base);
|
|
backdrop-filter: blur(8px);
|
|
-webkit-backdrop-filter: blur(8px);
|
|
}
|
|
|
|
.modal-backdrop.active {
|
|
opacity: 1;
|
|
visibility: visible;
|
|
}
|
|
|
|
.modal {
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius-xl);
|
|
width: 90%;
|
|
max-width: 520px;
|
|
max-height: 90vh;
|
|
overflow-y: auto;
|
|
padding: var(--space-xl);
|
|
box-shadow: var(--shadow-lg);
|
|
transform: translateY(20px) scale(0.97);
|
|
transition: transform var(--transition-base);
|
|
}
|
|
|
|
.modal-backdrop.active .modal {
|
|
transform: translateY(0) scale(1);
|
|
}
|
|
|
|
#userConnsModal .modal {
|
|
max-width: 960px;
|
|
}
|
|
|
|
.page--servers .btn-sm {
|
|
padding: 6px 12px;
|
|
}
|
|
|
|
.modal-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: var(--space-lg);
|
|
}
|
|
|
|
.modal-title {
|
|
font-size: 1.15rem;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.modal-close {
|
|
width: 32px;
|
|
height: 32px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border: none;
|
|
background: transparent;
|
|
color: var(--text-muted);
|
|
cursor: pointer;
|
|
border-radius: var(--radius-sm);
|
|
font-size: 1.3rem;
|
|
transition: all var(--transition-fast);
|
|
}
|
|
|
|
.modal-close:hover {
|
|
color: var(--text-primary);
|
|
background: rgba(255, 255, 255, 0.05);
|
|
}
|
|
|
|
.modal-footer {
|
|
display: flex;
|
|
gap: var(--space-sm);
|
|
justify-content: flex-end;
|
|
margin-top: var(--space-lg);
|
|
padding-top: var(--space-lg);
|
|
border-top: 1px solid var(--border-color);
|
|
}
|
|
|
|
/* ===== Protocol Card ===== */
|
|
.protocol-cards {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
|
gap: var(--space-lg);
|
|
margin-bottom: var(--space-xl);
|
|
}
|
|
|
|
.protocol-card {
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.protocol-card::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 3px;
|
|
background: var(--accent-gradient);
|
|
opacity: 0;
|
|
transition: opacity var(--transition-base);
|
|
}
|
|
|
|
.protocol-card:hover::before {
|
|
opacity: 1;
|
|
}
|
|
|
|
.protocol-icon {
|
|
width: 56px;
|
|
height: 56px;
|
|
border-radius: var(--radius-md);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 1.6rem;
|
|
margin-bottom: var(--space-md);
|
|
}
|
|
|
|
.protocol-icon img {
|
|
width: 40px;
|
|
height: 40px;
|
|
object-fit: contain;
|
|
}
|
|
|
|
/* Small pencil next to the instance name: hidden until the name is hovered,
|
|
fades in like button hovers, 25% opacity, full on its own hover. */
|
|
.proto-rename {
|
|
display: inline-flex;
|
|
width: 14px;
|
|
height: 14px;
|
|
margin-left: 6px;
|
|
vertical-align: middle;
|
|
cursor: pointer;
|
|
opacity: 0;
|
|
transition: opacity 0.2s ease;
|
|
}
|
|
|
|
.proto-rename svg {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.protocol-name:hover .proto-rename {
|
|
opacity: 0.25;
|
|
}
|
|
|
|
.protocol-name:hover .proto-rename:hover {
|
|
opacity: 1;
|
|
}
|
|
|
|
.protocol-awg .protocol-icon {
|
|
background: #303030;
|
|
color: var(--accent-light);
|
|
}
|
|
|
|
.protocol-legacy .protocol-icon {
|
|
background: #303030;
|
|
color: var(--info);
|
|
}
|
|
|
|
.protocol-xray .protocol-icon {
|
|
background: #010001;
|
|
color: var(--warning);
|
|
}
|
|
|
|
.protocol-telemt .protocol-icon {
|
|
background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(16, 185, 129, 0.1));
|
|
color: #38bdf8;
|
|
}
|
|
|
|
.protocol-dns .protocol-icon {
|
|
background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(16, 185, 129, 0.1));
|
|
color: var(--success);
|
|
}
|
|
|
|
.protocol-wireguard .protocol-icon {
|
|
background: #871719;
|
|
color: #10b981;
|
|
}
|
|
|
|
.protocol-adguard .protocol-icon {
|
|
background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(132, 204, 22, 0.1));
|
|
color: #65a30d;
|
|
}
|
|
|
|
.protocol-socks5 .protocol-icon {
|
|
background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(217, 70, 239, 0.1));
|
|
color: #c084fc;
|
|
}
|
|
|
|
.protocol-exit .protocol-icon {
|
|
background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(234, 179, 8, 0.1));
|
|
color: #fb923c;
|
|
}
|
|
|
|
.protocol-nginx .protocol-icon {
|
|
background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(59, 130, 246, 0.1));
|
|
color: #38bdf8;
|
|
}
|
|
|
|
/* ============================================================
|
|
Promo blocks — locked teasers for not-yet-shipped features.
|
|
They live inside .protocol-cards (a CSS grid) and span every
|
|
column via `grid-column: 1 / -1`, so they always stretch the
|
|
full width without hard-coding the column count.
|
|
============================================================ */
|
|
.promo-block {
|
|
grid-column: 1 / -1;
|
|
position: relative;
|
|
overflow: hidden;
|
|
padding: 22px 28px;
|
|
border-radius: var(--radius-lg);
|
|
color: #fff;
|
|
cursor: not-allowed;
|
|
isolation: isolate; /* keep blend modes / blurred orbs from leaking out */
|
|
border: 1px solid rgba(255, 255, 255, 0.12);
|
|
transition: transform 0.35s ease, box-shadow 0.35s ease;
|
|
user-select: none;
|
|
}
|
|
|
|
.promo-block:hover {
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
/* Slow shimmer that sweeps diagonally across the block — pure CSS, no JS. */
|
|
.promo-block::after {
|
|
content: "";
|
|
position: absolute;
|
|
inset: -50% -10%;
|
|
background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.18) 50%, transparent 65%);
|
|
transform: translateX(-100%);
|
|
animation: promo-shimmer 6s ease-in-out infinite;
|
|
pointer-events: none;
|
|
z-index: 1;
|
|
}
|
|
|
|
@keyframes promo-shimmer {
|
|
0%, 20% { transform: translateX(-100%); }
|
|
50%, 70% { transform: translateX(100%); }
|
|
100% { transform: translateX(100%); }
|
|
}
|
|
|
|
/* Floating blurred orbs that drift in the background. */
|
|
.promo-orbs {
|
|
position: absolute;
|
|
inset: 0;
|
|
pointer-events: none;
|
|
z-index: 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.promo-orb {
|
|
position: absolute;
|
|
border-radius: 50%;
|
|
filter: blur(48px);
|
|
opacity: 0.55;
|
|
animation: promo-orb-drift 14s ease-in-out infinite;
|
|
}
|
|
|
|
.promo-orb:nth-child(1) { top: -40px; left: 8%; width: 220px; height: 220px; animation-delay: 0s; }
|
|
.promo-orb:nth-child(2) { bottom: -60px; left: 38%; width: 180px; height: 180px; animation-delay: -5s; }
|
|
.promo-orb:nth-child(3) { top: 10%; right: 8%; width: 200px; height: 200px; animation-delay: -9s; }
|
|
|
|
@keyframes promo-orb-drift {
|
|
0%, 100% { transform: translate(0, 0) scale(1); }
|
|
33% { transform: translate(20px, -16px) scale(1.12); }
|
|
66% { transform: translate(-12px, 14px) scale(0.92); }
|
|
}
|
|
|
|
.promo-lock-badge {
|
|
position: absolute;
|
|
top: 14px;
|
|
right: 16px;
|
|
z-index: 3;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 4px 10px;
|
|
border-radius: 999px;
|
|
font-size: 0.72rem;
|
|
font-weight: 600;
|
|
letter-spacing: 0.04em;
|
|
text-transform: uppercase;
|
|
background: rgba(0, 0, 0, 0.35);
|
|
backdrop-filter: blur(8px);
|
|
-webkit-backdrop-filter: blur(8px);
|
|
border: 1px solid rgba(255, 255, 255, 0.18);
|
|
color: #fff;
|
|
}
|
|
|
|
.promo-content {
|
|
position: relative;
|
|
z-index: 2;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 20px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.promo-icon {
|
|
flex-shrink: 0;
|
|
width: 56px;
|
|
height: 56px;
|
|
border-radius: 14px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 1.9rem;
|
|
background: rgba(255, 255, 255, 0.12);
|
|
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 8px 24px rgba(0, 0, 0, 0.25);
|
|
backdrop-filter: blur(6px);
|
|
-webkit-backdrop-filter: blur(6px);
|
|
animation: promo-icon-float 4.5s ease-in-out infinite;
|
|
}
|
|
|
|
@keyframes promo-icon-float {
|
|
0%, 100% { transform: translateY(0) rotate(0); }
|
|
50% { transform: translateY(-3px) rotate(2deg); }
|
|
}
|
|
|
|
.promo-text {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.promo-title {
|
|
font-size: 1.35rem;
|
|
font-weight: 700;
|
|
letter-spacing: -0.01em;
|
|
margin-bottom: 2px;
|
|
text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
|
|
}
|
|
|
|
.promo-subtitle {
|
|
font-size: 0.88rem;
|
|
color: rgba(255, 255, 255, 0.85);
|
|
line-height: 1.4;
|
|
max-width: 70ch;
|
|
}
|
|
|
|
.promo-cta {
|
|
flex-shrink: 0;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 9px 16px;
|
|
border-radius: 999px;
|
|
font-size: 0.85rem;
|
|
font-weight: 600;
|
|
text-decoration: none;
|
|
color: #fff;
|
|
background: rgba(255, 255, 255, 0.18);
|
|
border: 1px solid rgba(255, 255, 255, 0.28);
|
|
backdrop-filter: blur(10px);
|
|
-webkit-backdrop-filter: blur(10px);
|
|
transition: background 0.2s ease, transform 0.2s ease;
|
|
cursor: pointer;
|
|
pointer-events: auto; /* block-level cursor:not-allowed shouldn't kill the CTA link */
|
|
}
|
|
|
|
.promo-cta:hover {
|
|
background: rgba(255, 255, 255, 0.32);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
/* ----- Theme: AIVPN (purple/cyan, neural feel) ----- */
|
|
.promo-aivpn {
|
|
background:
|
|
radial-gradient(circle at 20% 0%, rgba(99, 102, 241, 0.6), transparent 60%),
|
|
radial-gradient(circle at 80% 100%, rgba(236, 72, 153, 0.5), transparent 55%),
|
|
linear-gradient(135deg, #312e81 0%, #6d28d9 50%, #be185d 100%);
|
|
box-shadow: 0 16px 40px -10px rgba(109, 40, 217, 0.5);
|
|
}
|
|
|
|
.promo-aivpn .promo-orb:nth-child(1) { background: #06b6d4; }
|
|
.promo-aivpn .promo-orb:nth-child(2) { background: #d946ef; }
|
|
.promo-aivpn .promo-orb:nth-child(3) { background: #6366f1; }
|
|
|
|
.promo-aivpn .promo-icon {
|
|
background: linear-gradient(135deg, rgba(99, 102, 241, 0.5), rgba(236, 72, 153, 0.4));
|
|
text-shadow: 0 0 16px rgba(168, 85, 247, 0.6);
|
|
}
|
|
|
|
/* ----- Theme: Reverse Proxy (amber/red, shield/firewall feel) ----- */
|
|
.promo-revproxy {
|
|
background:
|
|
radial-gradient(circle at 100% 0%, rgba(251, 146, 60, 0.55), transparent 55%),
|
|
radial-gradient(circle at 0% 100%, rgba(244, 63, 94, 0.45), transparent 55%),
|
|
linear-gradient(135deg, #7c2d12 0%, #b91c1c 45%, #9d174d 100%);
|
|
box-shadow: 0 16px 40px -10px rgba(185, 28, 28, 0.5);
|
|
}
|
|
|
|
.promo-revproxy .promo-orb:nth-child(1) { background: #fb923c; }
|
|
.promo-revproxy .promo-orb:nth-child(2) { background: #f43f5e; }
|
|
.promo-revproxy .promo-orb:nth-child(3) { background: #f59e0b; }
|
|
|
|
.promo-revproxy .promo-icon {
|
|
background: linear-gradient(135deg, rgba(251, 146, 60, 0.5), rgba(244, 63, 94, 0.4));
|
|
text-shadow: 0 0 16px rgba(251, 146, 60, 0.55);
|
|
}
|
|
|
|
/* Faint isometric grid overlay — gives the reverse-proxy block a "network" feel.
|
|
Uses a tiled SVG-less approach via repeating linear gradients to keep CSS-only. */
|
|
.promo-grid-bg {
|
|
position: absolute;
|
|
inset: 0;
|
|
z-index: 0;
|
|
pointer-events: none;
|
|
opacity: 0.18;
|
|
background-image:
|
|
linear-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px),
|
|
linear-gradient(90deg, rgba(255, 255, 255, 0.5) 1px, transparent 1px);
|
|
background-size: 28px 28px;
|
|
mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
|
|
-webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
|
|
animation: promo-grid-pan 20s linear infinite;
|
|
}
|
|
|
|
@keyframes promo-grid-pan {
|
|
from { background-position: 0 0; }
|
|
to { background-position: 56px 56px; }
|
|
}
|
|
|
|
/* ----- Responsive: stack content on narrow screens ----- */
|
|
@media (max-width: 720px) {
|
|
.promo-content { gap: 14px; }
|
|
.promo-cta { width: 100%; justify-content: center; margin-left: 0; }
|
|
.promo-subtitle { font-size: 0.82rem; }
|
|
}
|
|
|
|
/* Respect users who turn off motion. */
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.promo-block::after,
|
|
.promo-orb,
|
|
.promo-icon,
|
|
.promo-grid-bg {
|
|
animation: none !important;
|
|
}
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
*,
|
|
*::before,
|
|
*::after {
|
|
animation-duration: 0.01ms !important;
|
|
animation-iteration-count: 1 !important;
|
|
transition-duration: 0.01ms !important;
|
|
}
|
|
}
|
|
|
|
/* Spinners are progress indicators, not decoration: keep them rotating even
|
|
when the user prefers reduced motion, otherwise a running operation looks
|
|
frozen. */
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.spinner,
|
|
.loading-spinner {
|
|
animation: spin 0.6s linear infinite !important;
|
|
}
|
|
}
|
|
|
|
/* Peer on/off toggle: a bulb for both states, "off" is a greyed-out bulb. */
|
|
.peer-toggle.peer-toggle-off {
|
|
filter: grayscale(100%) brightness(1.2);
|
|
opacity: 0.7;
|
|
}
|
|
|
|
/* Speed-limit badge stands out a bit from the other meta badges. */
|
|
.traffic-badge.traffic-limit {
|
|
font-size: 1rem;
|
|
}
|
|
|
|
/* Whole client row while a toggle request is in flight. */
|
|
.client-item.client-toggling {
|
|
opacity: 0.5;
|
|
transition: opacity var(--transition-base);
|
|
}
|
|
|
|
/* Deep-linked peer card (from the users page connections modal). */
|
|
.client-item.peer-highlight {
|
|
border: 2px solid #7038da;
|
|
}
|
|
|
|
.protocol-name {
|
|
font-size: 1.1rem;
|
|
font-weight: 700;
|
|
margin-bottom: var(--space-xs);
|
|
}
|
|
|
|
.protocol-desc {
|
|
font-size: 0.82rem;
|
|
color: var(--text-secondary);
|
|
margin-bottom: var(--space-md);
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.protocol-status {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
margin-bottom: var(--space-md);
|
|
}
|
|
|
|
.protocol-info {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: var(--space-sm);
|
|
margin-bottom: var(--space-md);
|
|
}
|
|
|
|
.protocol-info-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
}
|
|
|
|
.protocol-info-label {
|
|
font-size: 0.72rem;
|
|
color: var(--text-muted);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
}
|
|
|
|
.protocol-info-value {
|
|
font-size: 0.88rem;
|
|
font-weight: 500;
|
|
font-family: 'SF Mono', 'Fira Code', monospace;
|
|
}
|
|
|
|
/* ===== Protocol backup list ===== */
|
|
.backup-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-sm);
|
|
max-height: min(420px, 52vh);
|
|
overflow-y: auto;
|
|
margin-right: -4px;
|
|
padding-right: 4px;
|
|
}
|
|
|
|
.backup-toolbar {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
margin-bottom: var(--space-md);
|
|
}
|
|
|
|
.backup-row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: var(--space-md);
|
|
padding: 10px 12px;
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius-md);
|
|
text-align: left;
|
|
}
|
|
|
|
.backup-row-meta {
|
|
min-width: 0;
|
|
flex: 1;
|
|
}
|
|
|
|
.backup-row-name {
|
|
font-size: 0.82rem;
|
|
font-weight: 500;
|
|
font-family: 'SF Mono', 'Fira Code', monospace;
|
|
color: var(--text-primary);
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.backup-row-info {
|
|
margin-top: 2px;
|
|
font-size: 0.72rem;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.backup-row-actions {
|
|
display: flex;
|
|
flex-shrink: 0;
|
|
gap: var(--space-xs);
|
|
}
|
|
|
|
@media (max-width: 520px) {
|
|
.backup-row {
|
|
flex-wrap: wrap;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.backup-row-actions {
|
|
width: 100%;
|
|
justify-content: flex-end;
|
|
}
|
|
}
|
|
|
|
/* ===== Clients Table ===== */
|
|
.clients-section {
|
|
margin-top: var(--space-xl);
|
|
}
|
|
|
|
.clients-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: var(--space-lg);
|
|
}
|
|
|
|
.clients-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.client-item {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: var(--space-md) var(--space-lg);
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius-md);
|
|
transition: all var(--transition-fast);
|
|
}
|
|
|
|
.client-item:hover {
|
|
border-color: var(--border-hover);
|
|
background: var(--bg-card-hover);
|
|
}
|
|
|
|
.client-item.peer-highlight {
|
|
border: 2px solid #7038da;
|
|
}
|
|
|
|
.client-info {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-md);
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.client-avatar {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: var(--radius-sm);
|
|
background: var(--accent-gradient);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 1rem;
|
|
font-weight: 700;
|
|
color: #fff;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.client-name {
|
|
font-weight: 600;
|
|
font-size: var(--text-base);
|
|
}
|
|
|
|
.client-meta {
|
|
font-size: 0.78rem;
|
|
color: var(--text-muted);
|
|
display: flex;
|
|
gap: var(--space-md);
|
|
margin-top: 2px;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
.client-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
flex-shrink: 0;
|
|
margin-left: var(--space-md);
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
/* Normalized entity cards used by Users and My Connections only. */
|
|
.entity-card {
|
|
height: 100%;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.cards-grid-2 > .entity-card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.entity-card .client-info {
|
|
align-items: flex-start;
|
|
flex: 1;
|
|
}
|
|
|
|
.entity-card-body {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.entity-card-actions {
|
|
max-width: none;
|
|
width: 100%;
|
|
margin-left: 0;
|
|
margin-top: auto;
|
|
justify-content: flex-end;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.user-card .client-actions {
|
|
margin-top: var(--space-sm);
|
|
}
|
|
|
|
.cards-grid-2 > .entity-card.connection-card {
|
|
flex-direction: row;
|
|
align-items: center;
|
|
gap: var(--space-md);
|
|
min-height: 104px;
|
|
padding: var(--space-md);
|
|
}
|
|
|
|
.connection-card .entity-card-actions {
|
|
width: auto;
|
|
margin-top: 0;
|
|
margin-left: var(--space-md);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.cards-grid-2 > .entity-card.connection-card {
|
|
flex-direction: row;
|
|
align-items: center;
|
|
}
|
|
}
|
|
|
|
/* ===== Config Display ===== */
|
|
.config-display {
|
|
position: relative;
|
|
margin-top: var(--space-md);
|
|
}
|
|
|
|
.config-text {
|
|
background: var(--bg-primary);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius-md);
|
|
padding: var(--space-md);
|
|
font-family: 'SF Mono', 'Fira Code', monospace;
|
|
font-size: 0.78rem;
|
|
line-height: 1.7;
|
|
color: var(--text-secondary);
|
|
white-space: pre-wrap;
|
|
word-break: break-all;
|
|
max-height: 300px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.config-actions {
|
|
display: flex;
|
|
gap: var(--space-sm);
|
|
margin-top: var(--space-sm);
|
|
}
|
|
|
|
/* ===== Toast Notifications ===== */
|
|
.toast-container {
|
|
position: fixed;
|
|
top: var(--space-lg);
|
|
right: var(--space-lg);
|
|
z-index: 2000;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.toast {
|
|
padding: var(--space-md) var(--space-lg);
|
|
border-radius: var(--radius-md);
|
|
font-size: 0.85rem;
|
|
font-weight: 500;
|
|
box-shadow: var(--shadow-lg);
|
|
animation: toast-in 0.3s ease-out;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
max-width: 400px;
|
|
}
|
|
|
|
.toast-success {
|
|
background: #0d2818;
|
|
border: 1px solid var(--success-border);
|
|
color: var(--success);
|
|
}
|
|
|
|
.toast-error {
|
|
background: #2d1212;
|
|
border: 1px solid var(--danger-border);
|
|
color: var(--danger);
|
|
}
|
|
|
|
.toast-info {
|
|
background: #0d1a2d;
|
|
border: 1px solid rgba(59, 130, 246, 0.25);
|
|
color: var(--info);
|
|
}
|
|
|
|
@keyframes toast-in {
|
|
from {
|
|
transform: translateX(100%);
|
|
opacity: 0;
|
|
}
|
|
|
|
to {
|
|
transform: translateX(0);
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
/* ===== Progress / Loading ===== */
|
|
.progress-bar {
|
|
height: 4px;
|
|
background: var(--bg-secondary);
|
|
border-radius: var(--radius-full);
|
|
overflow: hidden;
|
|
margin: var(--space-md) 0;
|
|
}
|
|
|
|
.progress-fill {
|
|
height: 100%;
|
|
background: var(--accent-gradient);
|
|
border-radius: var(--radius-full);
|
|
transition: width 0.5s ease;
|
|
position: relative;
|
|
}
|
|
|
|
.progress-fill::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
width: 40px;
|
|
height: 100%;
|
|
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3));
|
|
animation: shimmer 1.5s infinite;
|
|
}
|
|
|
|
@keyframes shimmer {
|
|
0% {
|
|
transform: translateX(-40px);
|
|
}
|
|
|
|
100% {
|
|
transform: translateX(40px);
|
|
}
|
|
}
|
|
|
|
.loading-overlay {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-direction: column;
|
|
gap: var(--space-md);
|
|
padding: var(--space-3xl) 0;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.loading-spinner {
|
|
width: 36px;
|
|
height: 36px;
|
|
border: 3px solid var(--border-color);
|
|
border-top-color: var(--accent);
|
|
border-radius: 50%;
|
|
animation: spin 0.8s linear infinite;
|
|
}
|
|
|
|
@keyframes spin {
|
|
to {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
|
|
/* ===== Log Output ===== */
|
|
.log-output {
|
|
background: var(--bg-primary);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius-md);
|
|
padding: var(--space-md);
|
|
font-family: 'SF Mono', 'Fira Code', monospace;
|
|
font-size: 0.78rem;
|
|
line-height: 1.8;
|
|
max-height: 250px;
|
|
overflow-y: auto;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.log-line {
|
|
padding: 2px 0;
|
|
}
|
|
|
|
.log-line.success {
|
|
color: var(--success);
|
|
}
|
|
|
|
.log-line.error {
|
|
color: var(--danger);
|
|
}
|
|
|
|
.log-line.warning {
|
|
color: var(--warning);
|
|
}
|
|
|
|
.log-line.info {
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
/* ===== Empty State ===== */
|
|
.empty-state {
|
|
text-align: center;
|
|
padding: var(--space-3xl) var(--space-xl);
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.empty-state .empty-icon {
|
|
font-size: 3.5rem;
|
|
margin-bottom: var(--space-lg);
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.empty-state .empty-title {
|
|
font-size: 1.2rem;
|
|
font-weight: 600;
|
|
color: var(--text-secondary);
|
|
margin-bottom: var(--space-sm);
|
|
}
|
|
|
|
.empty-state .empty-desc {
|
|
font-size: 0.88rem;
|
|
max-width: 360px;
|
|
margin: 0 auto var(--space-lg);
|
|
}
|
|
|
|
/* ===== Tabs ===== */
|
|
.tabs {
|
|
display: flex;
|
|
gap: 2px;
|
|
background: var(--bg-secondary);
|
|
border-radius: var(--radius-md);
|
|
padding: 3px;
|
|
margin-bottom: var(--space-lg);
|
|
}
|
|
|
|
.tab {
|
|
flex: 1;
|
|
padding: 10px 16px;
|
|
border: none;
|
|
background: transparent;
|
|
color: var(--text-muted);
|
|
font-family: var(--font-family);
|
|
font-size: 0.85rem;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
border-radius: var(--radius-sm);
|
|
transition: all var(--transition-fast);
|
|
text-align: center;
|
|
}
|
|
|
|
.tab:hover {
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.tab.active {
|
|
background: var(--bg-card);
|
|
color: var(--text-primary);
|
|
box-shadow: var(--shadow-sm);
|
|
}
|
|
|
|
/* ===== Back Link ===== */
|
|
.back-link {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
color: var(--text-muted);
|
|
font-size: 0.85rem;
|
|
margin-bottom: var(--space-lg);
|
|
transition: color var(--transition-fast);
|
|
}
|
|
|
|
.back-link:hover {
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
/* ===== Divider ===== */
|
|
.divider {
|
|
height: 1px;
|
|
background: var(--border-color);
|
|
margin: var(--space-lg) 0;
|
|
}
|
|
|
|
/* ===== Utility ===== */
|
|
.flex {
|
|
display: flex;
|
|
}
|
|
|
|
.flex-col {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.items-center {
|
|
align-items: center;
|
|
}
|
|
|
|
.justify-between {
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.gap-sm {
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.gap-md {
|
|
gap: var(--space-md);
|
|
}
|
|
|
|
.mt-xs {
|
|
margin-top: var(--space-xs);
|
|
}
|
|
|
|
.mt-md {
|
|
margin-top: var(--space-md);
|
|
}
|
|
|
|
.mt-lg {
|
|
margin-top: var(--space-lg);
|
|
}
|
|
|
|
.text-muted {
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.text-sm {
|
|
font-size: 0.82rem;
|
|
}
|
|
|
|
.font-mono {
|
|
font-family: 'SF Mono', 'Fira Code', monospace;
|
|
}
|
|
|
|
.hidden {
|
|
display: none !important;
|
|
}
|
|
|
|
.gap-sm {
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.gap-md {
|
|
gap: var(--space-md);
|
|
}
|
|
|
|
/* ===== Responsive ===== */
|
|
@media (max-width: 768px) {
|
|
.app-container {
|
|
padding: var(--space-md) var(--space-md);
|
|
}
|
|
|
|
.server-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.protocol-cards {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.form-row {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.modal {
|
|
width: 95%;
|
|
padding: var(--space-md);
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.protocol-info {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
/* ===== Server Stats (inline pills) ===== */
|
|
.stat-pill {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 3px;
|
|
padding: 3px 8px;
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius-full);
|
|
font-size: 0.68rem;
|
|
font-weight: 500;
|
|
font-family: 'SF Mono', 'Fira Code', monospace;
|
|
color: var(--text-secondary);
|
|
white-space: nowrap;
|
|
cursor: default;
|
|
transition: all var(--transition-fast);
|
|
}
|
|
|
|
.stat-pill:hover {
|
|
border-color: var(--border-hover);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
/* ===== Config Tabs ===== */
|
|
.config-tabs {
|
|
display: flex;
|
|
gap: 2px;
|
|
background: var(--bg-secondary);
|
|
border-radius: var(--radius-sm);
|
|
padding: 3px;
|
|
margin-bottom: var(--space-md);
|
|
}
|
|
|
|
.config-tab {
|
|
flex: 1;
|
|
padding: 8px 12px;
|
|
border: none;
|
|
background: transparent;
|
|
color: var(--text-muted);
|
|
font-family: var(--font-family);
|
|
font-size: 0.8rem;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
border-radius: 6px;
|
|
transition: all var(--transition-fast);
|
|
text-align: center;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.config-tab:hover {
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.config-tab.active {
|
|
background: var(--bg-card);
|
|
color: var(--text-primary);
|
|
box-shadow: var(--shadow-sm);
|
|
}
|
|
|
|
.config-panel {
|
|
display: none;
|
|
}
|
|
|
|
.config-panel.active {
|
|
display: block;
|
|
}
|
|
|
|
/* Icon and protocol name share the top row; the control buttons get a row of
|
|
their own below it, where three of them fit without crowding the icon. */
|
|
.protocol-card-head {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
margin-bottom: var(--space-sm);
|
|
}
|
|
|
|
.protocol-card-head .protocol-icon,
|
|
.protocol-card-head .protocol-name {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.protocol-ctrl {
|
|
flex-wrap: wrap;
|
|
row-gap: var(--space-xs);
|
|
margin-bottom: var(--space-md);
|
|
}
|
|
|
|
/* ===== QR Code ===== */
|
|
.qr-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: var(--space-md);
|
|
padding: var(--space-lg);
|
|
}
|
|
|
|
/* qrcode.js paints the modules edge to edge with no quiet zone. On the dark
|
|
page that leaves the finder patterns touching the background, and decoders
|
|
then refuse the code outright -- at any size. This white frame is the quiet
|
|
zone, and it has to stay at least four modules wide. */
|
|
#qrCode {
|
|
background: #ffffff;
|
|
padding: 32px;
|
|
border-radius: var(--radius-md);
|
|
box-shadow: 0 0 30px rgba(139, 92, 246, 0.15);
|
|
line-height: 0;
|
|
}
|
|
|
|
/* rounding the code itself would clip the corner finder patterns */
|
|
.qr-container canvas,
|
|
.qr-container img {
|
|
border-radius: 0;
|
|
display: block;
|
|
}
|
|
|
|
.qr-hint {
|
|
font-size: 0.8rem;
|
|
color: var(--text-muted);
|
|
text-align: center;
|
|
}
|
|
|
|
.qr-format {
|
|
display: flex;
|
|
gap: 2px;
|
|
background: var(--bg-secondary);
|
|
border-radius: var(--radius-sm);
|
|
padding: 3px;
|
|
}
|
|
|
|
.qr-format-btn {
|
|
padding: 6px 14px;
|
|
border: none;
|
|
background: transparent;
|
|
color: var(--text-muted);
|
|
font-family: var(--font-family);
|
|
font-size: 0.78rem;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
border-radius: 6px;
|
|
transition: all var(--transition-fast);
|
|
}
|
|
|
|
.qr-format-btn:hover {
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.qr-format-btn.active {
|
|
background: var(--bg-card);
|
|
color: var(--text-primary);
|
|
box-shadow: var(--shadow-sm);
|
|
}
|
|
|
|
/* ===== VPN Link ===== */
|
|
.vpn-link-box {
|
|
background: var(--bg-primary);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius-md);
|
|
padding: var(--space-md);
|
|
font-family: 'SF Mono', 'Fira Code', monospace;
|
|
font-size: 0.72rem;
|
|
line-height: 1.6;
|
|
color: var(--accent-light);
|
|
word-break: break-all;
|
|
max-height: 200px;
|
|
overflow-y: auto;
|
|
user-select: all;
|
|
}
|
|
|
|
/* ===== Traffic Badge ===== */
|
|
.traffic-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 2px 8px;
|
|
border-radius: var(--radius-full);
|
|
font-size: 0.7rem;
|
|
font-weight: 500;
|
|
font-family: 'SF Mono', 'Fira Code', monospace;
|
|
}
|
|
|
|
.traffic-down {
|
|
background: rgba(34, 197, 94, 0.1);
|
|
color: #22c55e;
|
|
border: 1px solid rgba(34, 197, 94, 0.2);
|
|
}
|
|
|
|
.traffic-up {
|
|
background: rgba(59, 130, 246, 0.1);
|
|
color: #3b82f6;
|
|
border: 1px solid rgba(59, 130, 246, 0.2);
|
|
}
|
|
|
|
/* ===== Peer meta: fixed-width badges, no layout jumps ===== */
|
|
.client-meta span {
|
|
white-space: nowrap;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
.meta-handshake {
|
|
display: inline-block;
|
|
min-width: 88px; /* fits "🤝 59m 59s ago" */
|
|
}
|
|
|
|
.meta-handshake.meta-online {
|
|
color: #22c55e;
|
|
}
|
|
|
|
.client-ip {
|
|
font-size: 0.8rem;
|
|
color: var(--text-muted);
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
.traffic-down,
|
|
.traffic-up {
|
|
min-width: 96px;
|
|
justify-content: flex-start;
|
|
}
|
|
|
|
.speed-badge {
|
|
justify-content: flex-start;
|
|
background: rgba(128, 128, 128, 0.12);
|
|
color: var(--text-muted);
|
|
border: 1px solid transparent;
|
|
}
|
|
|
|
.speed-badge.speed-active {
|
|
background: rgba(16, 185, 129, 0.15);
|
|
color: #10b981;
|
|
border-color: rgba(16, 185, 129, 0.25);
|
|
}
|
|
|
|
/* Pulsing dot on the avatar of a peer with a fresh handshake (< 3 min) */
|
|
.client-avatar {
|
|
position: relative;
|
|
}
|
|
|
|
.avatar-online::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: -2px;
|
|
right: -2px;
|
|
width: 10px;
|
|
height: 10px;
|
|
border-radius: 50%;
|
|
background: #22c55e;
|
|
border: 2px solid var(--bg-card, #fff);
|
|
animation: awp-peer-pulse 2s infinite;
|
|
}
|
|
|
|
@keyframes awp-peer-pulse {
|
|
0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
|
|
70% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
|
|
100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
|
|
}
|
|
|
|
/* Connection flood warnings (P2P/torrent detection) */
|
|
.conn-warnings {
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.conn-warning {
|
|
font-size: 0.75rem;
|
|
color: #f59e0b;
|
|
background: rgba(245, 158, 11, 0.12);
|
|
border: 1px solid rgba(245, 158, 11, 0.35);
|
|
border-radius: var(--radius-sm, 6px);
|
|
padding: 3px 8px;
|
|
margin-top: 3px;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
/* ===== Header Navigation ===== */
|
|
.header-nav {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius-full);
|
|
padding: 5px;
|
|
box-shadow: var(--shadow-sm);
|
|
transition: all var(--transition-base);
|
|
}
|
|
|
|
.nav-link {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 8px 20px;
|
|
border-radius: var(--radius-full);
|
|
font-size: 0.85rem;
|
|
font-weight: 500;
|
|
color: var(--text-secondary);
|
|
transition: all var(--transition-base);
|
|
text-decoration: none;
|
|
white-space: nowrap;
|
|
position: relative;
|
|
letter-spacing: -0.01em;
|
|
}
|
|
|
|
.nav-link:hover {
|
|
color: var(--text-primary);
|
|
background: rgba(139, 92, 246, 0.08);
|
|
}
|
|
|
|
.nav-link.active {
|
|
color: #fff;
|
|
background: var(--accent-gradient);
|
|
box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.nav-user {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-md);
|
|
padding-left: var(--space-lg);
|
|
border-left: 1px solid var(--border-color);
|
|
margin-left: var(--space-sm);
|
|
transition: border-color var(--transition-base);
|
|
}
|
|
|
|
/* Global Transition for Theme Switching */
|
|
body,
|
|
.card,
|
|
.app-header,
|
|
.header-nav,
|
|
.nav-link,
|
|
.btn,
|
|
.form-input,
|
|
.form-select,
|
|
.modal,
|
|
.modal-backdrop,
|
|
.nav-user {
|
|
transition: background-color var(--transition-slow),
|
|
border-color var(--transition-slow),
|
|
color var(--transition-slow),
|
|
box-shadow var(--transition-slow),
|
|
transform var(--transition-base);
|
|
}
|
|
|
|
.nav-username {
|
|
font-size: 0.82rem;
|
|
font-weight: 600;
|
|
color: var(--text-secondary);
|
|
letter-spacing: -0.01em;
|
|
}
|
|
|
|
.nav-user .badge {
|
|
padding: 2px 10px;
|
|
font-size: 0.65rem;
|
|
letter-spacing: 0.05em;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.nav-user .btn {
|
|
padding: 6px 14px;
|
|
font-size: 0.8rem;
|
|
font-weight: 600;
|
|
border-radius: var(--radius-sm);
|
|
}
|
|
|
|
.nav-logout-icon {
|
|
display: none;
|
|
flex-shrink: 0;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.nav-logout-text {
|
|
display: inline;
|
|
}
|
|
|
|
/* ===== Mobile & PWA layer ===== */
|
|
|
|
/* Layout utilities (Phase 3 extractions land here) */
|
|
.grid-2 {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: var(--space-md);
|
|
}
|
|
|
|
.settings-grid > * {
|
|
min-width: 0;
|
|
}
|
|
|
|
.grid-3 {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: var(--space-md);
|
|
}
|
|
|
|
.grid-expiry {
|
|
display: grid;
|
|
grid-template-columns: 1fr 120px auto;
|
|
gap: var(--space-md);
|
|
align-items: end;
|
|
}
|
|
|
|
.btn-group-3 {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.row-between {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: var(--space-md);
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.toolbar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-md);
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.toolbar-search {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.cards-grid-2 {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: var(--space-md);
|
|
}
|
|
|
|
/* Bottom tab bar — hidden on desktop */
|
|
.mobile-tabbar {
|
|
display: none;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.grid-2,
|
|
.grid-3,
|
|
.btn-group-3,
|
|
.cards-grid-2 {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.grid-expiry {
|
|
grid-template-columns: 1fr;
|
|
align-items: stretch;
|
|
}
|
|
|
|
/* Sticky header — stay inside the container (negative margins overflow 100vw) */
|
|
.app-container {
|
|
padding-top: 0;
|
|
width: 100%;
|
|
min-width: 0;
|
|
max-width: 100%;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
.login-wrapper {
|
|
width: 100%;
|
|
max-width: 100%;
|
|
padding-left: var(--space-md);
|
|
padding-right: var(--space-md);
|
|
}
|
|
|
|
.login-card {
|
|
width: 100%;
|
|
max-width: 100%;
|
|
}
|
|
|
|
main,
|
|
.card,
|
|
.grid-2,
|
|
.grid-3,
|
|
.btn-group-3 {
|
|
min-width: 0;
|
|
max-width: 100%;
|
|
}
|
|
|
|
.app-header {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 40;
|
|
flex-direction: row;
|
|
flex-wrap: nowrap;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
width: 100%;
|
|
max-width: 100%;
|
|
margin-left: 0;
|
|
margin-right: 0;
|
|
margin-bottom: var(--space-md);
|
|
padding: calc(env(safe-area-inset-top, 0px) + 10px) 0 10px;
|
|
background: var(--bg-primary);
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
.logo-icon {
|
|
width: 40px;
|
|
height: 40px;
|
|
font-size: 20px;
|
|
}
|
|
|
|
.logo-subtitle,
|
|
.nav-username,
|
|
.nav-user .badge,
|
|
.header-nav {
|
|
display: none !important;
|
|
}
|
|
|
|
.nav-user {
|
|
border-left: none;
|
|
margin-left: auto;
|
|
padding-left: 0;
|
|
padding-top: 0;
|
|
border-top: none;
|
|
gap: var(--space-xs);
|
|
align-items: center;
|
|
}
|
|
|
|
/* Icon-only logout — do not use .btn::before (hover overlay, opacity:0) */
|
|
.nav-user .nav-logout {
|
|
width: 40px;
|
|
min-width: 40px;
|
|
min-height: 40px;
|
|
padding: 0;
|
|
gap: 0;
|
|
}
|
|
|
|
.nav-logout-icon {
|
|
display: block;
|
|
}
|
|
|
|
.nav-logout-text {
|
|
display: none;
|
|
}
|
|
|
|
/* Show bottom tab bar when present */
|
|
.mobile-tabbar {
|
|
display: flex;
|
|
position: fixed;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
z-index: 50;
|
|
align-items: stretch;
|
|
justify-content: space-around;
|
|
gap: 2px;
|
|
min-height: 60px;
|
|
/* Extra padding so emoji glyphs stay inside the bar */
|
|
padding: 10px 4px calc(10px + env(safe-area-inset-bottom));
|
|
background: transparent;
|
|
overflow: visible;
|
|
isolation: isolate;
|
|
}
|
|
|
|
/* Blur on a ::before so backdrop-filter does not clip .tab-icon glyphs */
|
|
.mobile-tabbar::before {
|
|
content: '';
|
|
position: absolute;
|
|
inset: 0;
|
|
z-index: -1;
|
|
background: color-mix(in srgb, var(--bg-secondary) 88%, transparent);
|
|
backdrop-filter: blur(16px);
|
|
-webkit-backdrop-filter: blur(16px);
|
|
border-top: 1px solid var(--border-color);
|
|
pointer-events: none;
|
|
}
|
|
|
|
.tab-item {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 2px;
|
|
min-height: 48px;
|
|
padding: 4px 2px;
|
|
text-decoration: none;
|
|
color: var(--text-muted);
|
|
font-size: 0.65rem;
|
|
font-weight: 600;
|
|
border-radius: var(--radius-sm);
|
|
-webkit-tap-highlight-color: transparent;
|
|
touch-action: manipulation;
|
|
overflow: visible;
|
|
}
|
|
|
|
.tab-item.active,
|
|
.tab-item:hover {
|
|
color: var(--accent-light);
|
|
}
|
|
|
|
.tab-icon {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
width: 1.75em;
|
|
height: 1.75em;
|
|
font-size: 1.3rem;
|
|
line-height: 1.2;
|
|
overflow: visible;
|
|
}
|
|
|
|
.tab-label {
|
|
max-width: 100%;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.app-container {
|
|
padding-bottom: calc(var(--space-xl) + 72px + env(safe-area-inset-bottom));
|
|
}
|
|
|
|
.row-between > * {
|
|
min-width: 0;
|
|
}
|
|
|
|
.btn {
|
|
max-width: 100%;
|
|
min-width: 0;
|
|
}
|
|
|
|
/* Touch ergonomics — compact contexts keep ~40px, not oversized */
|
|
.btn:not(.btn-icon):not(.btn-sm),
|
|
.nav-link {
|
|
min-height: 44px;
|
|
}
|
|
|
|
.btn-sm:not(.btn-icon) {
|
|
min-height: 40px;
|
|
}
|
|
|
|
.btn-icon,
|
|
.theme-toggle,
|
|
.modal-close {
|
|
width: 40px;
|
|
height: 40px;
|
|
min-width: 40px;
|
|
min-height: 40px;
|
|
font-size: 1.15rem;
|
|
}
|
|
|
|
.btn,
|
|
.btn-sm,
|
|
.btn-icon,
|
|
.nav-link,
|
|
.tab-item,
|
|
.theme-toggle,
|
|
.modal-close,
|
|
a,
|
|
button {
|
|
-webkit-tap-highlight-color: transparent;
|
|
touch-action: manipulation;
|
|
}
|
|
|
|
/* Full-width buttons on mobile are opt-in; generic primary/action buttons must keep their layout. */
|
|
.btn-full-mobile .btn {
|
|
width: 100%;
|
|
max-width: 100%;
|
|
}
|
|
|
|
.btn-full-mobile {
|
|
width: 100%;
|
|
max-width: 100%;
|
|
}
|
|
|
|
.page-header--with-search {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) auto;
|
|
grid-template-areas:
|
|
"title actions"
|
|
"search search";
|
|
align-items: center;
|
|
}
|
|
|
|
.page-header--with-search .page-header__title {
|
|
grid-area: title;
|
|
}
|
|
|
|
.page-header--with-search .page-header__actions {
|
|
grid-area: actions;
|
|
}
|
|
|
|
.page-header--with-search .page-header__search {
|
|
grid-area: search;
|
|
width: 100%;
|
|
min-width: 0;
|
|
max-width: none;
|
|
}
|
|
|
|
/* awp-mobile-tight-v2 — compact fields, side-by-side form-row */
|
|
.form-group {
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.form-label {
|
|
margin-bottom: 3px;
|
|
font-size: 0.8rem;
|
|
letter-spacing: 0.03em;
|
|
}
|
|
|
|
.form-input,
|
|
.form-select,
|
|
.form-textarea {
|
|
padding: 8px 12px;
|
|
min-height: 42px;
|
|
font-size: 0.875rem;
|
|
border-radius: var(--radius-sm);
|
|
}
|
|
|
|
.form-textarea {
|
|
min-height: 80px;
|
|
}
|
|
|
|
.form-row {
|
|
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
/* Server card actions: compact Manage — do not let it eat the row */
|
|
.server-card .server-actions {
|
|
width: 100%;
|
|
align-items: center;
|
|
gap: 6px;
|
|
flex-wrap: nowrap;
|
|
}
|
|
|
|
.server-card .server-actions .reorder-btns {
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.server-card .server-actions > .btn:not(.btn-icon),
|
|
.server-card .server-actions > a.btn:not(.btn-icon) {
|
|
flex: 0 1 auto;
|
|
min-width: 0;
|
|
max-width: 7.5rem;
|
|
padding-left: 10px;
|
|
padding-right: 10px;
|
|
justify-content: center;
|
|
}
|
|
|
|
.toast-container {
|
|
top: calc(var(--space-md) + env(safe-area-inset-top));
|
|
right: calc(var(--space-md) + env(safe-area-inset-right));
|
|
left: auto;
|
|
bottom: auto;
|
|
}
|
|
|
|
[dir="rtl"] .toast-container {
|
|
right: auto;
|
|
left: calc(var(--space-md) + env(safe-area-inset-left));
|
|
}
|
|
|
|
/* Release fixed widths that overflow narrow viewports */
|
|
.speed-badge,
|
|
.traffic-down,
|
|
.traffic-up,
|
|
.meta-handshake {
|
|
min-width: 0;
|
|
}
|
|
|
|
.client-actions {
|
|
max-width: none;
|
|
margin-left: 0;
|
|
margin-inline-start: 0;
|
|
width: 100%;
|
|
justify-content: flex-start;
|
|
}
|
|
|
|
.client-item {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
gap: var(--space-md);
|
|
}
|
|
|
|
.user-card .client-info {
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.user-card .client-actions {
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.config-tabs {
|
|
overflow-x: auto;
|
|
-webkit-overflow-scrolling: touch;
|
|
scrollbar-width: none;
|
|
}
|
|
|
|
.config-tabs::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
|
|
.config-tab {
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
/* CodeMirror editor height on mobile */
|
|
.CodeMirror {
|
|
height: 220px !important;
|
|
min-height: 220px !important;
|
|
}
|
|
|
|
/* Reorder controls for touch (index.html) */
|
|
.reorder-btns {
|
|
display: inline-flex !important;
|
|
gap: 4px;
|
|
}
|
|
}
|
|
|
|
.reorder-btns {
|
|
display: none;
|
|
}
|
|
|
|
@media (max-width: 640px) {
|
|
/* Centered sheet (not docked to the bottom edge) */
|
|
.modal-backdrop {
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: max(var(--space-md), env(safe-area-inset-top, 0px)) var(--space-md) max(var(--space-md), env(safe-area-inset-bottom, 0px));
|
|
z-index: 1000;
|
|
}
|
|
|
|
.modal-backdrop .modal,
|
|
.modal {
|
|
width: 100%;
|
|
/* Override inline style="max-width: …px" on page modals */
|
|
max-width: 100% !important;
|
|
max-height: min(90vh, 90dvh);
|
|
margin: 0;
|
|
border-radius: var(--radius-lg);
|
|
padding: var(--space-md);
|
|
overflow-y: auto;
|
|
box-sizing: border-box;
|
|
scrollbar-width: none;
|
|
}
|
|
|
|
.modal::-webkit-scrollbar {
|
|
width: 0;
|
|
height: 0;
|
|
display: none;
|
|
}
|
|
|
|
.modal-header {
|
|
margin-bottom: var(--space-sm);
|
|
}
|
|
|
|
.modal-footer {
|
|
flex-direction: row;
|
|
align-items: stretch;
|
|
justify-content: stretch;
|
|
gap: 8px;
|
|
margin-top: 10px;
|
|
padding-top: 10px;
|
|
}
|
|
|
|
.modal-footer .btn {
|
|
flex: 1 1 0;
|
|
width: auto;
|
|
min-width: 0;
|
|
margin: 0;
|
|
}
|
|
}
|