505 lines
14 KiB
CSS
505 lines
14 KiB
CSS
:root {
|
|
--bg: #0b0b10;
|
|
--surface: #13131a;
|
|
--surface2: #1c1c28;
|
|
--border: rgba(255,255,255,0.07);
|
|
--primary: #7c3aed;
|
|
--primary-dim: rgba(124,58,237,0.15);
|
|
--cyan: #22d3ee;
|
|
--cyan-dim: rgba(34,211,238,0.12);
|
|
--green: #10b981;
|
|
--green-dim: rgba(16,185,129,0.15);
|
|
--pink: #f43f5e;
|
|
--pink-dim: rgba(244,63,94,0.15);
|
|
--text: #f1f5f9;
|
|
--muted: #64748b;
|
|
--radius: 12px;
|
|
--transition: 0.2s ease;
|
|
}
|
|
|
|
* { box-sizing: border-box; margin: 0; padding: 0; }
|
|
|
|
body {
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
font-family: 'Segoe UI', system-ui, sans-serif;
|
|
min-height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
padding: 24px 16px 60px;
|
|
}
|
|
|
|
.app {
|
|
width: 100%;
|
|
max-width: 860px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
}
|
|
|
|
/* ─── Topbar ─── */
|
|
.topbar {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
padding: 14px 20px;
|
|
}
|
|
|
|
.topbar-brand {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
font-size: 1.25rem;
|
|
font-weight: 700;
|
|
color: var(--cyan);
|
|
}
|
|
|
|
.topbar-brand i { font-size: 1.1rem; }
|
|
|
|
.topbar-right {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
/* ─── Buttons ─── */
|
|
.btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 7px;
|
|
padding: 9px 16px;
|
|
border-radius: 8px;
|
|
border: 1px solid var(--border);
|
|
background: var(--surface2);
|
|
color: var(--text);
|
|
font-size: 0.875rem;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: var(--transition);
|
|
text-decoration: none;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.btn:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.15); }
|
|
.btn:active { transform: scale(0.97); }
|
|
|
|
.btn-primary {
|
|
background: var(--primary);
|
|
border-color: transparent;
|
|
box-shadow: 0 0 16px rgba(124,58,237,0.4);
|
|
}
|
|
.btn-primary:hover { background: #6d28d9; box-shadow: 0 0 22px rgba(124,58,237,0.55); }
|
|
|
|
.btn-cyan {
|
|
background: var(--cyan-dim);
|
|
border-color: rgba(34,211,238,0.25);
|
|
color: var(--cyan);
|
|
}
|
|
.btn-cyan:hover { background: rgba(34,211,238,0.2); }
|
|
|
|
.btn-green {
|
|
background: var(--green-dim);
|
|
border-color: rgba(16,185,129,0.3);
|
|
color: var(--green);
|
|
}
|
|
.btn-green:hover { background: rgba(16,185,129,0.25); }
|
|
|
|
.btn-danger {
|
|
background: var(--pink-dim);
|
|
border-color: rgba(244,63,94,0.3);
|
|
color: var(--pink);
|
|
}
|
|
.btn-danger:hover { background: rgba(244,63,94,0.25); }
|
|
|
|
.btn-icon { padding: 9px 11px; }
|
|
.btn-sm { padding: 6px 12px; font-size: 0.8rem; }
|
|
|
|
/* ─── Session Bar ─── */
|
|
.session-bar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
padding: 12px 16px;
|
|
}
|
|
|
|
.session-label {
|
|
font-size: 0.75rem;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.08em;
|
|
color: var(--muted);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.session-tabs {
|
|
display: flex;
|
|
gap: 6px;
|
|
flex-wrap: wrap;
|
|
flex: 1;
|
|
}
|
|
|
|
.session-tab {
|
|
padding: 5px 12px;
|
|
border-radius: 20px;
|
|
border: 1px solid var(--border);
|
|
background: var(--surface2);
|
|
color: var(--muted);
|
|
font-size: 0.8rem;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: var(--transition);
|
|
}
|
|
|
|
.session-tab:hover { border-color: rgba(255,255,255,0.2); color: var(--text); }
|
|
.session-tab.active {
|
|
background: var(--primary-dim);
|
|
border-color: rgba(124,58,237,0.5);
|
|
color: #c4b5fd;
|
|
}
|
|
|
|
/* ─── Card ─── */
|
|
.card {
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.card-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 16px 20px;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.card-title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
font-size: 0.95rem;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.card-body { padding: 20px; }
|
|
|
|
/* ─── Live Link Panel ─── */
|
|
.live-panel {
|
|
border-color: var(--border);
|
|
}
|
|
|
|
.live-panel.is-live {
|
|
border-color: rgba(16,185,129,0.4);
|
|
background: linear-gradient(135deg, var(--surface), rgba(16,185,129,0.04));
|
|
}
|
|
|
|
.badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
padding: 3px 10px;
|
|
border-radius: 20px;
|
|
font-size: 0.7rem;
|
|
font-weight: 800;
|
|
letter-spacing: 0.08em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.badge-offline {
|
|
background: rgba(255,255,255,0.06);
|
|
color: var(--muted);
|
|
}
|
|
|
|
.badge-live {
|
|
background: var(--green-dim);
|
|
color: var(--green);
|
|
border: 1px solid rgba(16,185,129,0.3);
|
|
animation: pulse-badge 2s infinite;
|
|
}
|
|
|
|
@keyframes pulse-badge {
|
|
0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.4); }
|
|
50% { box-shadow: 0 0 0 5px rgba(16,185,129,0); }
|
|
}
|
|
|
|
.live-url-box {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 10px 14px;
|
|
background: var(--surface2);
|
|
border: 1px solid rgba(34,211,238,0.2);
|
|
border-radius: 8px;
|
|
flex: 1;
|
|
}
|
|
|
|
.live-url-text {
|
|
font-family: 'Consolas', 'Fira Code', monospace;
|
|
font-size: 0.9rem;
|
|
color: var(--cyan);
|
|
flex: 1;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.live-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
/* ─── Host Panel ─── */
|
|
.host-grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 12px;
|
|
}
|
|
|
|
.host-btn {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 10px;
|
|
padding: 24px;
|
|
border-radius: 10px;
|
|
border: 2px dashed rgba(255,255,255,0.1);
|
|
background: transparent;
|
|
color: var(--muted);
|
|
cursor: pointer;
|
|
transition: var(--transition);
|
|
font-size: 0.9rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.host-btn i { font-size: 1.8rem; }
|
|
.host-btn:hover { border-color: var(--cyan); color: var(--cyan); background: var(--cyan-dim); }
|
|
.host-btn.pink:hover { border-color: var(--pink); color: var(--pink); background: var(--pink-dim); }
|
|
|
|
/* ─── Path Input ─── */
|
|
.path-row {
|
|
display: flex;
|
|
gap: 8px;
|
|
margin-top: 12px;
|
|
}
|
|
|
|
.input-field {
|
|
flex: 1;
|
|
background: var(--surface2);
|
|
border: 1px solid var(--border);
|
|
color: var(--text);
|
|
padding: 10px 14px;
|
|
border-radius: 8px;
|
|
font-size: 0.9rem;
|
|
transition: var(--transition);
|
|
}
|
|
|
|
.input-field:focus {
|
|
outline: none;
|
|
border-color: rgba(34,211,238,0.4);
|
|
box-shadow: 0 0 0 3px rgba(34,211,238,0.08);
|
|
}
|
|
|
|
.input-field::placeholder { color: var(--muted); }
|
|
|
|
/* ─── Status Bar ─── */
|
|
.status-bar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 10px 14px;
|
|
border-radius: 8px;
|
|
background: var(--surface2);
|
|
font-size: 0.875rem;
|
|
color: var(--muted);
|
|
margin-top: 12px;
|
|
min-height: 42px;
|
|
}
|
|
|
|
.status-bar.has-source { color: var(--cyan); background: var(--cyan-dim); border: 1px solid rgba(34,211,238,0.2); }
|
|
|
|
/* ─── Files Section ─── */
|
|
.files-section { margin-top: 4px; }
|
|
|
|
.folder-group {
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
overflow: hidden;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.folder-group-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 12px 16px;
|
|
background: var(--surface2);
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.folder-name {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-weight: 700;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.count-badge {
|
|
padding: 2px 8px;
|
|
border-radius: 12px;
|
|
background: rgba(255,255,255,0.06);
|
|
color: var(--muted);
|
|
font-size: 0.75rem;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.endpoint-strip {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 10px 16px;
|
|
background: rgba(0,0,0,0.25);
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.endpoint-url {
|
|
font-family: monospace;
|
|
font-size: 0.82rem;
|
|
color: var(--cyan);
|
|
flex: 1;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.file-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 10px 16px;
|
|
border-bottom: 1px solid var(--border);
|
|
transition: background var(--transition);
|
|
}
|
|
|
|
.file-row:last-child { border-bottom: none; }
|
|
.file-row:hover { background: rgba(255,255,255,0.03); }
|
|
|
|
.file-thumb {
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: 6px;
|
|
object-fit: cover;
|
|
flex-shrink: 0;
|
|
background: var(--surface2);
|
|
}
|
|
|
|
.file-icon-placeholder {
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: 6px;
|
|
background: var(--primary-dim);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.file-icon-placeholder i { color: #c4b5fd; font-size: 0.9rem; }
|
|
|
|
.file-name {
|
|
flex: 1;
|
|
font-size: 0.875rem;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.empty-state {
|
|
padding: 50px 20px;
|
|
text-align: center;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.empty-state i { font-size: 2.5rem; margin-bottom: 12px; opacity: 0.4; display: block; }
|
|
.empty-state p { font-size: 0.9rem; }
|
|
|
|
/* ─── Spinner ─── */
|
|
.spinner {
|
|
display: inline-block;
|
|
width: 16px;
|
|
height: 16px;
|
|
border: 2px solid rgba(255,255,255,0.2);
|
|
border-top-color: var(--cyan);
|
|
border-radius: 50%;
|
|
animation: spin 0.7s linear infinite;
|
|
}
|
|
|
|
@keyframes spin { to { transform: rotate(360deg); } }
|
|
|
|
/* ─── Toast ─── */
|
|
#toast {
|
|
position: fixed;
|
|
bottom: 28px;
|
|
left: 50%;
|
|
transform: translateX(-50%) translateY(10px);
|
|
padding: 10px 24px;
|
|
border-radius: 30px;
|
|
font-size: 0.875rem;
|
|
font-weight: 600;
|
|
pointer-events: none;
|
|
opacity: 0;
|
|
transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
z-index: 9999;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
#toast.show {
|
|
opacity: 1;
|
|
transform: translateX(-50%) translateY(0);
|
|
}
|
|
|
|
#toast.success { background: var(--green); color: #fff; }
|
|
#toast.error { background: var(--pink); color: #fff; }
|
|
|
|
/* ─── Divider ─── */
|
|
.divider {
|
|
width: 1px;
|
|
height: 20px;
|
|
background: var(--border);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* hidden util */
|
|
.hidden { display: none !important; }
|
|
|
|
@media (max-width: 580px) {
|
|
.host-grid { grid-template-columns: 1fr; }
|
|
.live-actions { flex-direction: column; align-items: stretch; }
|
|
.topbar { flex-direction: column; gap: 12px; align-items: flex-start; }
|
|
}
|
|
|
|
/* Low-End Device & Accessibility Optimizations */
|
|
@media (prefers-reduced-motion: reduce) {
|
|
*, *::before, *::after {
|
|
animation-duration: 0.01ms !important;
|
|
animation-iteration-count: 1 !important;
|
|
transition-duration: 0.01ms !important;
|
|
scroll-behavior: auto !important;
|
|
}
|
|
}
|
|
|
|
.file-row {
|
|
content-visibility: auto;
|
|
contain-intrinsic-size: 0 46px;
|
|
}
|