Files
Unified_Dashboard_Suite_Go/cmd/image-hoster/styles.css
T

1460 lines
32 KiB
CSS
Raw Normal View History

/* ═══════════════════════════════════════════════════════════════════
HOST IT NOW · OBSIDIAN LIQUID GLASS DESIGN SYSTEM
═══════════════════════════════════════════════════════════════════ */
:root {
--bg-base: #030305;
--bg-surface: rgba(15, 17, 26, 0.72);
--bg-surface-elevated: rgba(22, 25, 38, 0.85);
--bg-input: rgba(10, 11, 18, 0.88);
--border-subtle: rgba(255, 255, 255, 0.07);
--border-highlight: rgba(0, 242, 254, 0.35);
--border-glow: rgba(0, 242, 254, 0.15);
--accent-cyan: #00f2fe;
--accent-blue: #38bdf8;
--accent-purple: #a855f7;
--accent-green: #10b981;
--accent-amber: #f59e0b;
--accent-rose: #f43f5e;
--text-1: #ffffff;
--text-2: #cbd5e1;
--text-3: #94a3b8;
--muted: #64748b;
--font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
--font-mono: 'JetBrains Mono', monospace;
--r-sm: 6px;
--r-md: 10px;
--r-lg: 14px;
--r-xl: 18px;
--glass-blur: blur(24px);
--shadow-obsidian: 0 16px 40px -10px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.06);
--shadow-glow: 0 0 25px rgba(0, 242, 254, 0.15);
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
background-color: var(--bg-base);
color: var(--text-1);
font-family: var(--font-sans);
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
padding: 24px 18px 80px;
position: relative;
overflow-x: hidden;
-webkit-font-smoothing: antialiased;
}
/* Ambient Obsidian Mesh Background */
.ambient-mesh {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background:
radial-gradient(circle at 15% 15%, rgba(0, 242, 254, 0.05), transparent 40%),
radial-gradient(circle at 85% 20%, rgba(168, 85, 247, 0.06), transparent 45%),
radial-gradient(circle at 50% 80%, rgba(16, 185, 129, 0.04), transparent 50%),
#030305;
pointer-events: none;
z-index: -1;
}
.ambient-mesh::after {
content: '';
position: absolute;
inset: 0;
background: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
background-size: 28px 28px;
opacity: 0.35;
}
.app-root {
width: 100%;
max-width: 1080px;
display: flex;
flex-direction: column;
gap: 16px;
position: relative;
z-index: 1;
}
/* ═══════════════════════════════════════════════════════════════════
HEADER & GLOBAL METRICS
═══════════════════════════════════════════════════════════════════ */
.hin-header {
display: flex;
align-items: center;
justify-content: space-between;
background: var(--bg-surface);
backdrop-filter: var(--glass-blur);
border: 1px solid var(--border-subtle);
border-radius: var(--r-xl);
padding: 14px 20px;
box-shadow: var(--shadow-obsidian);
gap: 16px;
}
.brand-badge {
display: flex;
align-items: center;
gap: 12px;
}
.brand-icon {
width: 40px;
height: 40px;
border-radius: var(--r-md);
background: linear-gradient(135deg, rgba(0, 242, 254, 0.2), rgba(168, 85, 247, 0.25));
border: 1px solid rgba(0, 242, 254, 0.4);
display: flex;
align-items: center;
justify-content: center;
font-size: 19px;
color: var(--accent-cyan);
box-shadow: 0 0 16px rgba(0, 242, 254, 0.2);
}
.brand-text h1 {
font-size: 16px;
font-weight: 800;
letter-spacing: -0.02em;
color: #fff;
line-height: 1.15;
}
.brand-text span {
font-size: 11px;
color: var(--muted);
font-weight: 500;
}
.header-center {
display: flex;
align-items: center;
}
.header-metrics {
display: flex;
align-items: center;
gap: 8px;
background: rgba(0, 0, 0, 0.4);
padding: 5px 10px;
border-radius: 999px;
border: 1px solid var(--border-subtle);
}
.metric-pill {
display: flex;
align-items: center;
gap: 6px;
padding: 3px 8px;
font-size: 11.5px;
}
.metric-label {
color: var(--text-3);
font-weight: 500;
}
.metric-val {
font-family: var(--font-mono);
font-weight: 700;
color: #fff;
}
.header-right {
display: flex;
align-items: center;
gap: 8px;
}
/* ═══════════════════════════════════════════════════════════════════
BUTTONS & CONTROLS
═══════════════════════════════════════════════════════════════════ */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 7px;
font-family: var(--font-sans);
font-size: 12.5px;
font-weight: 600;
padding: 8px 14px;
border-radius: var(--r-md);
cursor: pointer;
transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
border: 1px solid transparent;
text-decoration: none;
white-space: nowrap;
}
.btn:active {
transform: scale(0.97);
}
.btn-sm {
padding: 5px 10px;
font-size: 11.5px;
height: 30px;
}
.btn-cyan {
background: linear-gradient(135deg, rgba(0, 242, 254, 0.9), rgba(6, 182, 212, 0.9));
color: #030712;
border-color: rgba(0, 242, 254, 0.5);
box-shadow: 0 4px 14px rgba(0, 242, 254, 0.25);
}
.btn-cyan:hover {
background: #00f2fe;
box-shadow: 0 6px 20px rgba(0, 242, 254, 0.4);
color: #000;
}
.btn-secondary {
background: rgba(255, 255, 255, 0.05);
border-color: var(--border-subtle);
color: var(--text-2);
}
.btn-secondary:hover {
background: rgba(255, 255, 255, 0.1);
border-color: rgba(255, 255, 255, 0.15);
color: #fff;
}
.btn-green {
background: linear-gradient(135deg, rgba(16, 185, 129, 0.9), rgba(5, 150, 105, 0.9));
color: #fff;
border-color: rgba(16, 185, 129, 0.4);
box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}
.btn-green:hover {
background: #10b981;
box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}
.btn-danger {
background: rgba(244, 63, 94, 0.12);
border-color: rgba(244, 63, 94, 0.3);
color: var(--accent-rose);
}
.btn-danger:hover {
background: rgba(244, 63, 94, 0.25);
color: #fff;
border-color: var(--accent-rose);
}
/* ═══════════════════════════════════════════════════════════════════
SESSION GOVERNANCE & RAIL
═══════════════════════════════════════════════════════════════════ */
.session-governance-strip {
display: flex;
align-items: center;
justify-content: space-between;
background: var(--bg-surface);
backdrop-filter: var(--glass-blur);
border: 1px solid var(--border-subtle);
border-radius: var(--r-lg);
padding: 10px 16px;
gap: 12px;
}
.session-rail-left {
display: flex;
align-items: center;
gap: 12px;
overflow-x: auto;
flex: 1;
scrollbar-width: none;
}
.session-rail-left::-webkit-scrollbar {
display: none;
}
.rail-title {
font-size: 11px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--text-3);
display: flex;
align-items: center;
gap: 6px;
white-space: nowrap;
}
.session-tabs-rail {
display: flex;
align-items: center;
gap: 8px;
}
.session-tab {
display: flex;
align-items: center;
gap: 7px;
background: rgba(255, 255, 255, 0.03);
border: 1px solid var(--border-subtle);
border-radius: var(--r-md);
padding: 5px 11px;
font-size: 11.5px;
color: var(--text-3);
cursor: pointer;
transition: all 0.2s ease;
white-space: nowrap;
}
.session-tab:hover {
background: rgba(255, 255, 255, 0.07);
color: #fff;
border-color: rgba(255, 255, 255, 0.15);
}
.session-tab.active {
background: rgba(0, 242, 254, 0.1);
border-color: var(--border-highlight);
color: #fff;
box-shadow: 0 0 14px rgba(0, 242, 254, 0.15);
}
.session-tab .tab-icon {
font-size: 11px;
color: var(--accent-cyan);
}
.session-tab .tab-ttl {
font-size: 10px;
font-family: var(--font-mono);
padding: 1px 5px;
border-radius: 4px;
background: rgba(0, 0, 0, 0.4);
color: var(--text-3);
}
.session-rail-actions {
display: flex;
align-items: center;
gap: 6px;
flex-shrink: 0;
}
/* ═══════════════════════════════════════════════════════════════════
LIVE PUBLIC TUNNEL CARD
═══════════════════════════════════════════════════════════════════ */
.live-tunnel-card {
background: var(--bg-surface);
backdrop-filter: var(--glass-blur);
border: 1px solid var(--border-subtle);
border-radius: var(--r-lg);
padding: 14px 20px;
box-shadow: var(--shadow-obsidian);
display: flex;
flex-direction: column;
gap: 12px;
transition: all 0.3s ease;
}
.live-tunnel-card.is-live {
border-color: rgba(16, 185, 129, 0.35);
box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.8), 0 0 25px rgba(16, 185, 129, 0.12);
}
.tunnel-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
}
.tunnel-info {
display: flex;
align-items: center;
gap: 10px;
flex-wrap: wrap;
}
.tunnel-status-badge {
display: inline-flex;
align-items: center;
gap: 7px;
font-size: 11.5px;
font-weight: 700;
padding: 4px 11px;
border-radius: 999px;
text-transform: uppercase;
letter-spacing: 0.04em;
}
.badge-offline {
background: rgba(100, 116, 139, 0.12);
border: 1px solid rgba(100, 116, 139, 0.25);
color: var(--muted);
}
.badge-offline .status-dot {
width: 6px;
height: 6px;
border-radius: 50%;
background: var(--muted);
}
.badge-live {
background: rgba(16, 185, 129, 0.15);
border: 1px solid rgba(16, 185, 129, 0.35);
color: var(--accent-green);
box-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
}
.badge-live .status-dot {
width: 6px;
height: 6px;
border-radius: 50%;
background: var(--accent-green);
animation: livePulse 2s infinite ease-in-out;
}
@keyframes livePulse {
0%, 100% { transform: scale(1); opacity: 1; }
50% { transform: scale(1.5); opacity: 0.4; }
}
.tunnel-governance-pill, .tunnel-mode-pill {
display: flex;
align-items: center;
gap: 6px;
font-size: 11px;
font-family: var(--font-mono);
padding: 3px 9px;
border-radius: 999px;
background: rgba(0, 0, 0, 0.4);
border: 1px solid var(--border-subtle);
color: var(--text-2);
}
.tunnel-controls {
display: flex;
align-items: center;
gap: 8px;
}
.tunnel-spinner {
display: flex;
align-items: center;
gap: 7px;
color: var(--accent-cyan);
font-size: 11.5px;
}
.tunnel-url-row {
display: flex;
align-items: center;
justify-content: space-between;
background: var(--bg-input);
border: 1px solid var(--border-subtle);
border-radius: var(--r-md);
padding: 7px 12px;
gap: 12px;
}
.url-input-box {
display: flex;
align-items: center;
gap: 9px;
flex: 1;
overflow: hidden;
}
.url-text {
font-family: var(--font-mono);
font-size: 12.5px;
color: #fff;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
user-select: all;
}
.url-actions {
display: flex;
align-items: center;
gap: 6px;
flex-shrink: 0;
}
/* ═══════════════════════════════════════════════════════════════════
CONTENT INGESTION & TABS
═══════════════════════════════════════════════════════════════════ */
.ingest-card {
background: var(--bg-surface);
backdrop-filter: var(--glass-blur);
border: 1px solid var(--border-subtle);
border-radius: var(--r-lg);
box-shadow: var(--shadow-obsidian);
overflow: hidden;
}
.ingest-tabs {
display: grid;
grid-template-columns: repeat(3, 1fr);
border-bottom: 1px solid var(--border-subtle);
background: rgba(0, 0, 0, 0.3);
}
.ingest-tab {
background: transparent;
border: none;
padding: 14px 18px;
display: flex;
align-items: center;
gap: 12px;
cursor: pointer;
text-align: left;
transition: all 0.2s ease;
border-bottom: 2px solid transparent;
}
.ingest-tab:hover {
background: rgba(255, 255, 255, 0.03);
}
.ingest-tab.active {
background: rgba(255, 255, 255, 0.04);
border-bottom-color: var(--accent-cyan);
}
.ingest-tab i {
font-size: 20px;
color: var(--muted);
transition: color 0.2s ease;
}
.ingest-tab.active i {
color: var(--accent-cyan);
}
.tab-meta strong {
display: block;
font-size: 12.5px;
color: var(--text-2);
font-weight: 600;
}
.ingest-tab.active .tab-meta strong {
color: #fff;
}
.tab-meta span {
display: block;
font-size: 10.5px;
color: var(--muted);
margin-top: 2px;
}
.ingest-content {
padding: 20px;
}
/* Vault Dropzone */
.vault-dropzone {
border: 2px dashed rgba(255, 255, 255, 0.12);
border-radius: var(--r-lg);
padding: 34px 24px;
text-align: center;
display: flex;
flex-direction: column;
align-items: center;
gap: 12px;
background: rgba(0, 0, 0, 0.2);
transition: all 0.2s ease;
cursor: pointer;
}
.vault-dropzone:hover, .vault-dropzone.dragover {
border-color: var(--accent-cyan);
background: rgba(0, 242, 254, 0.04);
box-shadow: 0 0 25px rgba(0, 242, 254, 0.1);
}
.dropzone-icon {
font-size: 34px;
color: var(--accent-cyan);
opacity: 0.85;
}
.dropzone-text h3 {
font-size: 14px;
font-weight: 700;
color: #fff;
}
.dropzone-text p {
font-size: 11.5px;
color: var(--text-3);
max-width: 520px;
margin-top: 4px;
}
.dropzone-buttons {
display: flex;
align-items: center;
gap: 10px;
margin-top: 6px;
}
/* Upload Progress */
.upload-progress-container {
margin-top: 16px;
background: var(--bg-input);
border: 1px solid var(--border-subtle);
border-radius: var(--r-md);
padding: 12px 16px;
}
.progress-info {
display: flex;
justify-content: space-between;
font-size: 11.5px;
color: var(--text-2);
margin-bottom: 8px;
}
.progress-bar-bg {
width: 100%;
height: 6px;
background: rgba(255, 255, 255, 0.07);
border-radius: 999px;
overflow: hidden;
}
.progress-bar-fill {
height: 100%;
width: 0%;
background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
border-radius: 999px;
transition: width 0.2s ease;
}
/* Path Input */
.path-input-group {
display: flex;
gap: 8px;
align-items: center;
}
.input-wrapper {
flex: 1;
position: relative;
display: flex;
align-items: center;
}
.input-wrapper i {
position: absolute;
left: 14px;
font-size: 13px;
}
.text-input {
width: 100%;
height: 38px;
background: var(--bg-input);
border: 1px solid var(--border-subtle);
border-radius: var(--r-md);
padding: 0 14px 0 38px;
color: #fff;
font-size: 12.5px;
font-family: var(--font-sans);
outline: none;
transition: border-color 0.2s ease;
}
.text-input:focus {
border-color: var(--accent-cyan);
box-shadow: 0 0 12px rgba(0, 242, 254, 0.2);
}
.input-hint {
font-size: 11px;
color: var(--muted);
margin-top: 8px;
display: flex;
align-items: center;
gap: 6px;
}
/* Relay Mode Grid */
.relay-action-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 12px;
}
.relay-card-btn {
background: rgba(0, 0, 0, 0.25);
border: 1px solid var(--border-subtle);
border-radius: var(--r-md);
padding: 20px;
cursor: pointer;
text-align: center;
display: flex;
flex-direction: column;
align-items: center;
gap: 6px;
transition: all 0.2s ease;
}
.relay-card-btn:hover {
background: rgba(255, 255, 255, 0.04);
border-color: var(--accent-cyan);
}
.relay-card-btn i {
font-size: 26px;
}
.relay-card-btn strong {
font-size: 12.5px;
color: #fff;
}
.relay-card-btn span {
font-size: 11px;
color: var(--muted);
}
/* Status Bar */
.hin-status-bar {
display: flex;
align-items: center;
justify-content: space-between;
padding: 10px 20px;
background: rgba(0, 0, 0, 0.35);
border-top: 1px solid var(--border-subtle);
font-size: 11.5px;
}
.status-left {
display: flex;
align-items: center;
gap: 8px;
color: var(--text-2);
}
.status-right {
display: flex;
align-items: center;
gap: 6px;
}
.meta-pill {
padding: 2px 7px;
border-radius: 4px;
background: rgba(255, 255, 255, 0.06);
color: var(--text-3);
font-family: var(--font-mono);
font-size: 10.5px;
}
/* ═══════════════════════════════════════════════════════════════════
EXPLORER: TOOLBAR & SEARCH
═══════════════════════════════════════════════════════════════════ */
.explorer-card {
background: var(--bg-surface);
backdrop-filter: var(--glass-blur);
border: 1px solid var(--border-subtle);
border-radius: var(--r-lg);
box-shadow: var(--shadow-obsidian);
overflow: hidden;
}
.explorer-toolbar {
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 18px;
border-bottom: 1px solid var(--border-subtle);
gap: 12px;
flex-wrap: wrap;
}
.toolbar-search {
position: relative;
display: flex;
align-items: center;
flex: 1;
min-width: 240px;
}
.toolbar-search i {
position: absolute;
left: 12px;
color: var(--muted);
font-size: 12px;
}
.toolbar-search input {
width: 100%;
height: 32px;
background: var(--bg-input);
border: 1px solid var(--border-subtle);
border-radius: var(--r-md);
padding: 0 12px 0 32px;
color: #fff;
font-size: 11.5px;
outline: none;
}
.toolbar-search input:focus {
border-color: var(--accent-cyan);
}
.toolbar-filter-chips {
display: flex;
align-items: center;
gap: 5px;
}
.filter-chip {
background: transparent;
border: 1px solid var(--border-subtle);
border-radius: 999px;
padding: 4px 10px;
font-size: 11px;
font-weight: 500;
color: var(--text-3);
cursor: pointer;
transition: all 0.2s ease;
}
.filter-chip:hover {
color: #fff;
border-color: rgba(255, 255, 255, 0.2);
}
.filter-chip.active {
background: rgba(0, 242, 254, 0.12);
border-color: var(--accent-cyan);
color: #fff;
}
.toolbar-bulk-actions {
display: flex;
align-items: center;
gap: 8px;
}
.view-toggle {
display: flex;
align-items: center;
background: var(--bg-input);
border: 1px solid var(--border-subtle);
border-radius: var(--r-md);
overflow: hidden;
}
.view-btn {
background: transparent;
border: none;
padding: 6px 9px;
color: var(--muted);
cursor: pointer;
font-size: 11.5px;
}
.view-btn.active {
background: rgba(255, 255, 255, 0.1);
color: var(--accent-cyan);
}
/* ═══════════════════════════════════════════════════════════════════
FILES CONTAINER (GRID & LIST MODES)
═══════════════════════════════════════════════════════════════════ */
.files-container {
padding: 18px;
min-height: 220px;
}
.folder-group-block {
margin-bottom: 24px;
}
.folder-group-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 12px;
padding-bottom: 6px;
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.folder-group-title {
font-size: 13px;
font-weight: 700;
color: #fff;
display: flex;
align-items: center;
gap: 8px;
}
.folder-group-title i {
color: var(--accent-cyan);
}
.folder-group-meta {
font-size: 11px;
color: var(--muted);
font-family: var(--font-mono);
}
/* Grid Layout */
.files-container.grid-mode .files-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
gap: 14px;
}
.file-card {
background: var(--bg-surface-elevated);
border: 1px solid var(--border-subtle);
border-radius: var(--r-md);
overflow: hidden;
transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
display: flex;
flex-direction: column;
position: relative;
}
.file-card:hover {
transform: translateY(-2px);
border-color: rgba(0, 242, 254, 0.4);
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 242, 254, 0.1);
}
.file-thumb-wrap {
width: 100%;
height: 130px;
background: #000;
position: relative;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
}
.file-thumb-img {
width: 100%;
height: 100%;
object-fit: contain;
transition: transform 0.3s ease;
}
.file-card:hover .file-thumb-img {
transform: scale(1.05);
}
.file-icon-box {
font-size: 38px;
color: var(--muted);
opacity: 0.7;
}
.file-card-details {
padding: 10px 12px;
display: flex;
flex-direction: column;
gap: 4px;
flex: 1;
}
.file-card-name {
font-size: 12px;
font-weight: 600;
color: #fff;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.file-card-meta {
font-size: 10.5px;
color: var(--muted);
font-family: var(--font-mono);
display: flex;
justify-content: space-between;
}
.file-card-actions {
display: flex;
align-items: center;
justify-content: space-between;
padding: 6px 10px;
background: rgba(0, 0, 0, 0.3);
border-top: 1px solid var(--border-subtle);
gap: 4px;
}
.action-icon-btn {
width: 26px;
height: 26px;
border-radius: var(--r-sm);
background: transparent;
border: 1px solid transparent;
color: var(--text-3);
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
font-size: 11px;
transition: all 0.15s ease;
text-decoration: none;
}
.action-icon-btn:hover {
background: rgba(255, 255, 255, 0.1);
color: #fff;
}
.action-icon-btn.primary:hover {
background: rgba(0, 242, 254, 0.2);
color: var(--accent-cyan);
}
/* List Layout */
.files-container.list-mode .files-grid {
display: flex;
flex-direction: column;
gap: 6px;
}
.files-container.list-mode .file-card {
flex-direction: row;
align-items: center;
height: 52px;
padding: 0 12px;
}
.files-container.list-mode .file-thumb-wrap {
width: 36px;
height: 36px;
border-radius: var(--r-sm);
flex-shrink: 0;
}
.files-container.list-mode .file-icon-box {
font-size: 16px;
}
.files-container.list-mode .file-card-details {
flex: 1;
flex-direction: row;
align-items: center;
justify-content: space-between;
padding: 0 14px;
}
.files-container.list-mode .file-card-actions {
background: transparent;
border-top: none;
padding: 0;
}
/* Empty State */
.empty-state {
text-align: center;
padding: 48px 20px;
color: var(--muted);
display: flex;
flex-direction: column;
align-items: center;
gap: 12px;
}
.empty-state i {
font-size: 42px;
opacity: 0.35;
color: var(--accent-cyan);
}
.empty-state p {
font-size: 13px;
max-width: 380px;
}
/* ═══════════════════════════════════════════════════════════════════
MODALS
═══════════════════════════════════════════════════════════════════ */
.modal-backdrop {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.82);
backdrop-filter: blur(12px);
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
padding: 20px;
animation: modalFadeIn 0.2s ease;
}
@keyframes modalFadeIn {
from { opacity: 0; transform: scale(0.98); }
to { opacity: 1; transform: scale(1); }
}
.modal-card {
width: 100%;
max-width: 540px;
background: var(--bg-surface-elevated);
border: 1px solid var(--border-subtle);
border-radius: var(--r-lg);
box-shadow: var(--shadow-obsidian), 0 0 35px rgba(0, 242, 254, 0.08);
overflow: hidden;
display: flex;
flex-direction: column;
}
.modal-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 16px 20px;
border-bottom: 1px solid var(--border-subtle);
}
.modal-header h3 {
font-size: 14px;
font-weight: 700;
color: #fff;
display: flex;
align-items: center;
gap: 8px;
}
.modal-close-btn {
background: transparent;
border: none;
color: var(--muted);
font-size: 15px;
cursor: pointer;
transition: color 0.15s ease;
}
.modal-close-btn:hover {
color: #fff;
}
.modal-body {
padding: 20px;
display: flex;
flex-direction: column;
gap: 14px;
}
.modal-footer {
display: flex;
align-items: center;
justify-content: flex-end;
gap: 8px;
padding: 12px 20px;
background: rgba(0, 0, 0, 0.25);
border-top: 1px solid var(--border-subtle);
}
.form-group {
display: flex;
flex-direction: column;
gap: 6px;
}
.form-group label {
font-size: 11.5px;
font-weight: 600;
color: var(--text-2);
}
.form-hint {
font-size: 10.5px;
color: var(--muted);
line-height: 1.4;
}
/* Lightbox Modal */
.lightbox-card {
max-width: 90vw;
max-height: 90vh;
background: rgba(10, 11, 18, 0.95);
border: 1px solid var(--border-subtle);
border-radius: var(--r-lg);
overflow: hidden;
display: flex;
flex-direction: column;
}
.lightbox-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 18px;
border-bottom: 1px solid var(--border-subtle);
}
.lightbox-title {
font-size: 13px;
font-weight: 600;
}
.lightbox-body {
padding: 20px;
display: flex;
align-items: center;
justify-content: center;
max-height: 70vh;
overflow: auto;
}
.lightbox-body img {
max-width: 100%;
max-height: 65vh;
object-fit: contain;
border-radius: var(--r-sm);
}
.lightbox-footer {
padding: 10px 18px;
background: rgba(0, 0, 0, 0.4);
border-top: 1px solid var(--border-subtle);
display: flex;
align-items: center;
justify-content: space-between;
font-size: 11px;
color: var(--text-3);
gap: 12px;
}
/* QR Code Canvas Box */
.qr-canvas-box {
padding: 16px;
background: #ffffff;
border-radius: var(--r-md);
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}
.qr-canvas-box canvas, .qr-canvas-box img {
max-width: 200px;
height: auto;
}
/* Code Viewport */
.code-viewport {
background: #030305;
padding: 18px;
font-family: var(--font-mono);
font-size: 12px;
color: #e2e8f0;
max-height: 480px;
overflow: auto;
line-height: 1.5;
border: none;
outline: none;
}
/* Telemetry Table */
.telemetry-stats-row {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 10px;
}
.t-stat-card {
background: rgba(0, 0, 0, 0.4);
border: 1px solid var(--border-subtle);
border-radius: var(--r-md);
padding: 12px;
display: flex;
flex-direction: column;
gap: 2px;
}
.t-stat-val {
font-size: 18px;
font-weight: 800;
font-family: var(--font-mono);
color: #fff;
}
.t-stat-label {
font-size: 10.5px;
color: var(--muted);
}
.telemetry-log-table-wrap {
max-height: 280px;
overflow-y: auto;
border: 1px solid var(--border-subtle);
border-radius: var(--r-md);
background: rgba(0, 0, 0, 0.25);
}
.telemetry-table {
width: 100%;
border-collapse: collapse;
font-size: 11px;
text-align: left;
}
.telemetry-table th {
background: rgba(255, 255, 255, 0.04);
padding: 8px 12px;
color: var(--text-3);
font-weight: 600;
border-bottom: 1px solid var(--border-subtle);
position: sticky;
top: 0;
}
.telemetry-table td {
padding: 7px 12px;
border-bottom: 1px solid rgba(255, 255, 255, 0.03);
color: var(--text-2);
font-family: var(--font-mono);
}
/* Batch Export Pills */
.batch-export-formats {
display: flex;
gap: 6px;
flex-wrap: wrap;
}
.seg-pill {
background: rgba(255, 255, 255, 0.04);
border: 1px solid var(--border-subtle);
border-radius: var(--r-md);
padding: 5px 12px;
color: var(--text-3);
font-size: 11.5px;
font-weight: 600;
cursor: pointer;
transition: all 0.15s ease;
}
.seg-pill.active {
background: rgba(0, 242, 254, 0.15);
border-color: var(--accent-cyan);
color: #fff;
}
/* Server Dir Modal List */
.server-dir-breadcrumb {
padding: 8px 12px;
background: var(--bg-input);
border-radius: var(--r-md);
font-family: var(--font-mono);
font-size: 12px;
color: var(--accent-cyan);
border: 1px solid var(--border-subtle);
}
.server-dir-list {
max-height: 280px;
overflow-y: auto;
display: flex;
flex-direction: column;
gap: 4px;
margin-top: 8px;
}
.server-dir-item {
display: flex;
align-items: center;
gap: 10px;
padding: 8px 12px;
border-radius: var(--r-sm);
cursor: pointer;
font-size: 12px;
color: var(--text-2);
transition: background 0.15s ease;
}
.server-dir-item:hover {
background: rgba(255, 255, 255, 0.06);
color: #fff;
}
.server-dir-item i {
color: var(--accent-cyan);
}
/* ═══════════════════════════════════════════════════════════════════
TOASTS
═══════════════════════════════════════════════════════════════════ */
.toast-container {
position: fixed;
bottom: 24px;
right: 24px;
z-index: 2000;
display: flex;
flex-direction: column;
gap: 8px;
pointer-events: none;
}
.toast {
padding: 10px 16px;
background: rgba(15, 17, 26, 0.95);
backdrop-filter: blur(12px);
border: 1px solid var(--border-subtle);
border-radius: var(--r-md);
color: #fff;
font-size: 12px;
font-weight: 500;
display: flex;
align-items: center;
gap: 8px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
pointer-events: auto;
animation: toastSlideIn 0.25s ease;
}
.toast.success { border-color: rgba(16, 185, 129, 0.4); }
.toast.success i { color: var(--accent-green); }
.toast.error { border-color: rgba(244, 63, 94, 0.4); }
.toast.error i { color: var(--accent-rose); }
.toast.info { border-color: rgba(0, 242, 254, 0.4); }
.toast.info i { color: var(--accent-cyan); }
@keyframes toastSlideIn {
from { transform: translateX(100%); opacity: 0; }
to { transform: translateX(0); opacity: 1; }
}
/* Responsive adjustments */
@media (max-width: 768px) {
.ingest-tabs { grid-template-columns: 1fr; }
.header-metrics { display: none; }
.relay-action-grid { grid-template-columns: 1fr; }
.explorer-toolbar { flex-direction: column; align-items: stretch; }
.toolbar-search { min-width: 100%; }
}