Switch to Svelte

This commit is contained in:
2026-06-11 14:39:41 -07:00
parent 29860061c4
commit 58a7e4d4f1
74 changed files with 7144 additions and 2379 deletions

View File

@@ -0,0 +1,301 @@
/* --- UI Panels & Glassmorphism --- */
.glass-panel {
background: var(--glass-bg);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border: 1px solid var(--glass-border);
border-radius: 12px;
padding: 2rem;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
transition: var(--transition-smooth);
}
.glass-panel:hover {
border-color: rgba(212, 175, 55, 0.35);
box-shadow: 0 8px 32px rgba(212, 175, 55, 0.05);
}
.card {
background: var(--bg-ocean-light);
border: 1px solid var(--glass-border);
border-radius: 12px;
padding: 1.5rem;
margin-bottom: 1.5rem;
box-shadow: 0 4px 15px rgba(0,0,0,0.3);
transition: var(--transition-smooth);
}
.card h3 {
font-family: var(--font-heading);
color: var(--gold);
margin-bottom: 1rem;
border-bottom: 1px solid rgba(212, 175, 55, 0.2);
padding-bottom: 0.5rem;
}
/* --- Forms & Controls --- */
.form-group {
margin-bottom: 1.25rem;
text-align: left;
}
.form-group label {
display: block;
margin-bottom: 0.5rem;
font-size: 0.95rem;
color: var(--text-muted);
font-weight: 500;
}
.input-field {
width: 100%;
padding: 0.75rem 1rem;
background: rgba(7, 11, 18, 0.8);
border: 1px solid var(--glass-border);
border-radius: 8px;
color: var(--text-primary);
font-family: var(--font-body);
font-size: 1rem;
transition: var(--transition-smooth);
}
.input-field:focus {
outline: none;
border-color: var(--neon-cyan);
box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}
.select-field {
width: 100%;
padding: 0.75rem 1rem;
background: rgba(7, 11, 18, 0.8);
border: 1px solid var(--glass-border);
border-radius: 8px;
color: var(--text-primary);
font-family: var(--font-body);
font-size: 1rem;
transition: var(--transition-smooth);
cursor: pointer;
}
.select-field:focus {
outline: none;
border-color: var(--neon-cyan);
}
.input-row {
display: flex;
gap: 0.5rem;
}
.input-row .input-field {
flex: 1;
}
/* --- Buttons --- */
.btn {
display: inline-block;
padding: 0.75rem 1.5rem;
font-family: var(--font-body);
font-weight: 700;
font-size: 1rem;
text-transform: uppercase;
letter-spacing: 1px;
border: none;
border-radius: 8px;
cursor: pointer;
transition: var(--transition-smooth);
text-decoration: none;
}
.btn-primary {
background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
color: var(--text-dark);
box-shadow: 0 4px 15px var(--gold-glow);
}
.btn-primary:hover:not(:disabled) {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}
.btn-secondary {
background: rgba(255,255,255,0.08);
border: 1px solid rgba(255,255,255,0.15);
color: var(--text-primary);
}
.btn-secondary:hover:not(:disabled) {
background: rgba(255,255,255,0.15);
transform: translateY(-2px);
}
.btn-deep {
background: linear-gradient(135deg, #152238 0%, #0d1726 100%);
border: 1px solid var(--neon-cyan);
color: var(--neon-cyan);
box-shadow: 0 4px 15px rgba(0, 242, 254, 0.1);
}
.btn-deep:hover:not(:disabled) {
background: var(--neon-cyan);
color: var(--text-dark);
box-shadow: 0 4px 20px rgba(0, 242, 254, 0.4);
transform: translateY(-2px);
}
.btn-danger {
background: linear-gradient(135deg, #7a1c1c 0%, #c0392b 100%);
color: var(--text-primary);
box-shadow: 0 4px 15px rgba(192, 57, 43, 0.2);
}
.btn-danger:hover:not(:disabled) {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(192, 57, 43, 0.5);
}
.btn-gold {
background: transparent;
border: 2px solid var(--gold);
color: var(--gold);
box-shadow: 0 0 10px rgba(212,175,55,0.1);
}
.btn-gold:hover:not(:disabled) {
background: var(--gold);
color: var(--bg-dark);
box-shadow: 0 0 20px var(--gold-glow);
transform: translateY(-2px);
}
.btn-full {
width: 100%;
}
.btn-small {
padding: 0.4rem 0.8rem;
font-size: 0.8rem;
}
.btn-large {
padding: 1rem 2rem;
font-size: 1.1rem;
}
.btn:disabled {
opacity: 0.5;
cursor: not-allowed;
transform: none !important;
box-shadow: none !important;
}
.glow-effect:hover {
filter: brightness(1.2);
}
/* --- Event Log --- */
.event-log-fab {
position: fixed;
bottom: 20px;
right: 20px;
width: 60px;
height: 60px;
border-radius: 50%;
background: var(--glass-bg);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
border: 1px solid var(--gold);
color: var(--gold);
font-size: 1.5rem;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 0 10px rgba(212, 175, 55, 0.2);
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
z-index: 1000;
transition: var(--transition-smooth);
}
.event-log-fab:hover {
transform: scale(1.1);
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), 0 0 15px rgba(212, 175, 55, 0.4);
}
.event-log-panel {
position: fixed;
bottom: 90px;
right: 20px;
width: 350px;
max-width: calc(100vw - 40px);
height: 400px;
max-height: calc(100vh - 120px);
background: var(--glass-bg);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border: 1px solid var(--glass-border);
border-radius: 12px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
display: flex;
flex-direction: column;
z-index: 999;
transition: transform 0.3s ease, opacity 0.3s ease;
}
.event-log-panel.hidden {
transform: translateY(20px) scale(0.95);
opacity: 0;
pointer-events: none;
}
.event-log-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.event-log-header h3 {
margin: 0;
font-family: var(--font-heading);
font-size: 1.1rem;
color: var(--gold);
}
.event-log-container {
flex: 1;
overflow-y: auto;
padding: 1rem;
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.event-list {
list-style: none;
padding: 0;
margin: 0;
display: flex;
flex-direction: column;
gap: 0.8rem;
}
.event-item {
font-size: 0.9rem;
background: rgba(0, 0, 0, 0.3);
padding: 0.75rem;
border-radius: 8px;
border-left: 3px solid var(--neon-cyan);
}
.event-time {
display: block;
font-size: 0.75rem;
color: var(--text-muted);
margin-bottom: 0.25rem;
}
.event-msg {
color: var(--text-primary);
}