TonyD365's picture
Update static/style.css
2ff5114 verified
Raw
History Blame Contribute Delete
21.4 kB
/* ============================================================
Stage Lighting Cue System — Styles
============================================================ */
*, *::before, *::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
[hidden] { display: none !important; }
:root {
--bg-primary: #0f0f1a;
--bg-secondary: #1a1a2e;
--bg-tertiary: #252540;
--bg-card: #1e1e35;
--border: #33334d;
--border-light: #44446a;
--text-primary: #ffffff;
--text-secondary: #b8b8d0;
--text-muted: #7a7a95;
--accent: #a855f7;
--accent-hover: #c084fc;
--accent-dim: rgba(168, 85, 247, 0.15);
--success: #22c55e;
--warning: #f59e0b;
--danger: #ef4444;
--info: #3b82f6;
--shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
--shadow-md: 0 4px 20px rgba(0, 0, 0, 0.3);
--shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
--radius-sm: 6px;
--radius-md: 10px;
--radius-lg: 16px;
--font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}
body {
font-family: var(--font);
background: var(--bg-primary);
color: var(--text-primary);
min-height: 100vh;
overflow-x: hidden;
-webkit-font-smoothing: antialiased;
}
button { font-family: inherit; cursor: pointer; border: none; outline: none; }
input, select, textarea { font-family: inherit; outline: none; }
/* Landing Page */
body.landing {
background: radial-gradient(circle at top right, #2a1a4a 0%, #0f0f1a 70%);
display: flex;
align-items: center;
justify-content: center;
padding: 24px;
}
.container { width: 100%; max-width: 900px; text-align: center; }
.logo { margin-bottom: 60px; }
.logo-icon {
font-size: 80px;
margin-bottom: 16px;
filter: drop-shadow(0 0 40px rgba(168, 85, 247, 0.6));
}
.logo h1 {
font-size: 48px;
font-weight: 800;
letter-spacing: -1px;
background: linear-gradient(135deg, #ffffff 0%, #a855f7 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.subtitle {
font-size: 18px;
color: var(--text-secondary);
margin-top: 8px;
letter-spacing: 2px;
text-transform: uppercase;
}
.role-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 40px; }
@media (max-width: 700px) {
.role-picker { grid-template-columns: 1fr; }
.logo h1 { font-size: 36px; }
.logo-icon { font-size: 60px; }
}
.role-card {
background: var(--bg-card);
border: 2px solid var(--border);
border-radius: var(--radius-lg);
padding: 40px 32px;
text-decoration: none;
color: var(--text-primary);
transition: all 0.2s ease;
display: flex;
flex-direction: column;
align-items: center;
gap: 12px;
}
.role-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.role-icon { font-size: 56px; margin-bottom: 8px; }
.role-card h2 { font-size: 26px; font-weight: 700; }
.role-card p { color: var(--text-secondary); font-size: 15px; }
.role-badge {
margin-top: 12px;
padding: 6px 16px;
background: var(--accent-dim);
color: var(--accent-hover);
border-radius: 20px;
font-size: 12px;
font-weight: 600;
letter-spacing: 1px;
text-transform: uppercase;
}
.footer-note { color: var(--text-muted); font-size: 14px; margin-top: 20px; }
/* Common UI */
.home-btn {
width: 40px;
height: 40px;
display: inline-flex;
align-items: center;
justify-content: center;
background: var(--bg-tertiary);
border-radius: var(--radius-sm);
color: var(--text-primary);
text-decoration: none;
font-size: 22px;
transition: background 0.15s;
flex-shrink: 0;
}
.home-btn:hover { background: var(--border-light); }
.home-btn-floating { position: absolute; top: 16px; left: 16px; z-index: 10; }
.btn-primary {
background: var(--accent); color: white; padding: 10px 18px;
border-radius: var(--radius-sm); font-weight: 600; font-size: 14px;
transition: background 0.15s;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary {
background: var(--bg-tertiary); color: var(--text-primary);
padding: 10px 16px; border-radius: var(--radius-sm);
font-weight: 500; font-size: 14px;
border: 1px solid var(--border); transition: all 0.15s;
}
.btn-secondary:hover { background: var(--border); }
.btn-tiny {
width: 28px; height: 28px; background: var(--bg-tertiary);
color: var(--text-primary); border-radius: var(--radius-sm);
font-size: 16px; font-weight: 600;
display: inline-flex; align-items: center; justify-content: center;
transition: background 0.15s;
}
.btn-tiny:hover { background: var(--border-light); }
.connection-status {
display: flex; align-items: center; gap: 8px;
font-size: 13px; color: var(--text-secondary);
}
.status-dot {
width: 10px; height: 10px; background: var(--text-muted);
border-radius: 50%; display: inline-block; transition: background 0.2s;
}
.status-dot.connected { background: var(--success); box-shadow: 0 0 10px rgba(34, 197, 94, 0.6); }
.status-dot.disconnected { background: var(--danger); }
/* Director Console */
body.director { display: flex; flex-direction: column; height: 100vh; overflow: hidden; }
.top-bar {
background: var(--bg-secondary);
border-bottom: 1px solid var(--border);
padding: 12px 20px;
display: flex; justify-content: space-between; align-items: center;
gap: 16px; flex-wrap: wrap;
}
.top-bar-left { display: flex; align-items: center; gap: 16px; }
.show-name-input {
background: transparent; border: 1px solid transparent;
color: var(--text-primary); font-size: 18px; font-weight: 700;
padding: 4px 8px; border-radius: var(--radius-sm);
transition: all 0.15s; width: 280px; max-width: 100%;
}
.show-name-input:hover { border-color: var(--border); }
.show-name-input:focus { border-color: var(--accent); background: var(--bg-tertiary); }
.role-label { font-size: 12px; color: var(--text-muted); padding: 0 8px; margin-top: 2px; letter-spacing: 0.5px; }
.top-bar-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.num-lights-control {
display: flex; align-items: center; gap: 8px;
padding: 6px 12px; background: var(--bg-tertiary);
border-radius: var(--radius-sm); font-size: 14px;
}
.num-lights-control label { color: var(--text-secondary); font-weight: 500; }
#num-lights-display { font-weight: 700; min-width: 24px; text-align: center; }
.director-layout { display: grid; grid-template-columns: 380px 1fr; flex: 1; overflow: hidden; }
@media (max-width: 900px) {
.director-layout { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
.cue-list-panel { max-height: 40vh; }
}
.cue-list-panel {
background: var(--bg-secondary);
border-right: 1px solid var(--border);
display: flex; flex-direction: column; overflow: hidden;
}
.panel-header {
padding: 16px 20px; border-bottom: 1px solid var(--border);
display: flex; justify-content: space-between; align-items: center;
}
.panel-header h2 {
font-size: 16px; font-weight: 600; color: var(--text-secondary);
text-transform: uppercase; letter-spacing: 1px;
}
.cue-list { overflow-y: auto; padding: 8px; flex: 1; }
.cue-item {
background: var(--bg-card); border: 1px solid var(--border);
border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 8px;
cursor: pointer; transition: all 0.15s;
display: flex; align-items: center; gap: 12px;
}
.cue-item:hover { border-color: var(--border-light); background: var(--bg-tertiary); }
.cue-item.active { border-color: var(--accent); background: var(--accent-dim); }
.cue-item.current {
border-color: var(--success);
background: rgba(34, 197, 94, 0.1);
box-shadow: 0 0 0 1px var(--success);
}
.cue-item-num { font-weight: 700; color: var(--accent-hover); min-width: 36px; font-size: 15px; }
.cue-item.current .cue-item-num { color: var(--success); }
.cue-item-content { flex: 1; min-width: 0; }
.cue-item-name {
font-weight: 600; font-size: 14px; margin-bottom: 2px;
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cue-item-meta { font-size: 12px; color: var(--text-muted); }
.cue-item-actions { display: flex; gap: 4px; opacity: 0; transition: opacity 0.15s; }
.cue-item:hover .cue-item-actions { opacity: 1; }
.cue-action-btn {
background: transparent; color: var(--text-muted);
padding: 4px 8px; border-radius: 4px; font-size: 13px;
transition: all 0.15s;
}
.cue-action-btn:hover { background: var(--border); color: var(--text-primary); }
.editor-panel { display: flex; flex-direction: column; overflow: hidden; }
.playback-controls {
background: var(--bg-secondary); padding: 20px;
border-bottom: 1px solid var(--border);
}
.playback-controls h2 {
font-size: 13px; font-weight: 600; color: var(--text-muted);
text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px;
}
.current-cue-display {
background: var(--bg-tertiary); border-radius: var(--radius-md);
padding: 16px 20px; margin-bottom: 12px;
border-left: 4px solid var(--success);
}
.current-cue-display.no-cue { border-left-color: var(--text-muted); }
.cue-label {
font-size: 12px; color: var(--text-muted);
text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px;
}
.cue-name { font-size: 22px; font-weight: 700; }
.playback-buttons { display: flex; gap: 10px; margin-bottom: 12px; }
.btn-playback {
flex: 1; padding: 14px; background: var(--bg-tertiary);
color: var(--text-primary); border-radius: var(--radius-sm);
font-size: 15px; font-weight: 600;
transition: all 0.15s; border: 1px solid var(--border);
}
.btn-playback:hover:not(:disabled) { background: var(--border); }
.btn-playback:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-next {
background: var(--accent); color: white;
border-color: var(--accent); flex: 2;
}
.btn-next:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); }
.upcoming { font-size: 13px; color: var(--text-muted); }
.upcoming-item { padding: 4px 0; }
.upcoming-item strong { color: var(--text-secondary); }
.cue-editor { flex: 1; overflow-y: auto; padding: 20px; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.5; }
.empty-state p { font-size: 15px; line-height: 1.6; }
.editor-section {
background: var(--bg-card); border: 1px solid var(--border);
border-radius: var(--radius-md); padding: 20px; margin-bottom: 16px;
}
.editor-section h3 {
font-size: 13px; font-weight: 600; color: var(--text-muted);
text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px;
}
.form-row { display: flex; gap: 12px; margin-bottom: 12px; }
.form-field { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 13px; color: var(--text-secondary); font-weight: 500; }
.form-input, .form-textarea {
background: var(--bg-secondary); border: 1px solid var(--border);
color: var(--text-primary); padding: 10px 12px;
border-radius: var(--radius-sm); font-size: 14px;
transition: border-color 0.15s; width: 100%;
}
.form-input:focus, .form-textarea:focus { border-color: var(--accent); }
.form-textarea { min-height: 60px; resize: vertical; font-family: inherit; }
.light-actions-grid {
display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 12px;
}
.light-action-card {
background: var(--bg-secondary); border: 1px solid var(--border);
border-radius: var(--radius-md); padding: 14px;
}
.light-action-header {
display: flex; justify-content: space-between; align-items: center;
margin-bottom: 12px;
}
.light-action-title { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.light-action-toggle {
display: flex; align-items: center; gap: 6px;
font-size: 13px; color: var(--text-secondary); cursor: pointer;
}
.light-action-body { display: flex; flex-direction: column; gap: 10px; }
.light-action-body.disabled { opacity: 0.4; pointer-events: none; }
.mini-row { display: flex; gap: 8px; align-items: center; }
.mini-label { font-size: 12px; color: var(--text-muted); min-width: 70px; }
.color-input {
width: 40px; height: 32px; padding: 2px;
background: var(--bg-primary); border: 1px solid var(--border);
border-radius: var(--radius-sm); cursor: pointer;
}
.slider { flex: 1; accent-color: var(--accent); height: 6px; }
.slider-value { min-width: 40px; text-align: right; font-size: 13px; font-weight: 600; }
.select-input {
background: var(--bg-primary); border: 1px solid var(--border);
color: var(--text-primary); padding: 8px 10px;
border-radius: var(--radius-sm); font-size: 13px; flex: 1;
}
.notes-input {
background: var(--bg-primary); border: 1px solid var(--border);
color: var(--text-primary); padding: 8px 10px;
border-radius: var(--radius-sm); font-size: 13px;
resize: vertical; min-height: 44px;
font-family: inherit; width: 100%;
}
/* Modal */
.modal-backdrop {
position: fixed; inset: 0; background: rgba(0, 0, 0, 0.7);
backdrop-filter: blur(4px);
display: flex; align-items: center; justify-content: center;
z-index: 100; animation: fadeIn 0.15s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
background: var(--bg-card); border: 1px solid var(--border);
border-radius: var(--radius-lg); padding: 24px;
max-width: 420px; width: 90%;
box-shadow: var(--shadow-lg);
}
.modal h3 { font-size: 18px; margin-bottom: 12px; }
.modal p { color: var(--text-secondary); margin-bottom: 20px; line-height: 1.5; }
.modal-buttons { display: flex; gap: 10px; justify-content: flex-end; }
/* JSON Modal */
.json-modal {
max-width: 640px; width: 95%;
display: flex; flex-direction: column; max-height: 85vh;
}
.json-hint {
font-size: 13px; color: var(--text-secondary);
margin-bottom: 14px !important; line-height: 1.5;
}
.json-textarea {
flex: 1; min-height: 280px; max-height: 50vh;
background: var(--bg-primary); border: 1px solid var(--border);
color: var(--text-primary); padding: 12px;
border-radius: var(--radius-sm);
font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Consolas', monospace;
font-size: 12px; line-height: 1.5;
resize: vertical; width: 100%; margin-bottom: 14px;
transition: border-color 0.15s;
}
.json-textarea:focus { border-color: var(--accent); }
.json-modal-footer {
display: flex; justify-content: space-between; align-items: center;
gap: 12px; flex-wrap: wrap;
}
.json-helper-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.json-helper-buttons .btn-secondary { padding: 8px 14px; font-size: 13px; }
@media (max-width: 500px) {
.json-modal-footer { flex-direction: column; align-items: stretch; }
.json-helper-buttons, .json-modal-footer .modal-buttons { justify-content: space-between; }
}
/* Toast */
.toast {
position: fixed; bottom: 24px; left: 50%;
transform: translateX(-50%);
background: var(--bg-card); border: 1px solid var(--border);
padding: 12px 20px; border-radius: var(--radius-md);
box-shadow: var(--shadow-md); font-size: 14px; font-weight: 500;
z-index: 200; animation: slideUp 0.2s ease;
}
.toast.success { border-color: var(--success); color: var(--success); }
.toast.error { border-color: var(--danger); color: var(--danger); }
@keyframes slideUp {
from { transform: translate(-50%, 20px); opacity: 0; }
to { transform: translate(-50%, 0); opacity: 1; }
}
/* Operator View */
body.operator {
display: flex; flex-direction: column;
min-height: 100vh; height: 100vh; overflow: hidden;
}
.light-picker {
flex: 1; display: flex; align-items: center; justify-content: center;
padding: 24px;
background: radial-gradient(circle at bottom, #2a1a4a 0%, #0f0f1a 70%);
position: relative;
}
.picker-content { text-align: center; max-width: 600px; width: 100%; }
.picker-content h1 { font-size: 32px; margin-bottom: 8px; }
.picker-subtitle { color: var(--text-secondary); margin-bottom: 32px; }
.light-buttons {
display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
gap: 12px;
}
.light-btn {
aspect-ratio: 1; background: var(--bg-card);
border: 2px solid var(--border); border-radius: var(--radius-md);
color: var(--text-primary); font-size: 28px; font-weight: 700;
cursor: pointer; text-decoration: none;
display: flex; align-items: center; justify-content: center;
transition: all 0.15s;
}
.light-btn:hover {
border-color: var(--accent); background: var(--accent-dim);
transform: scale(1.05);
}
.op-top-bar {
background: var(--bg-secondary); border-bottom: 1px solid var(--border);
padding: 12px 16px;
display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.op-title { font-size: 20px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.op-icon { font-size: 24px; filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.6)); }
.op-main {
flex: 1; overflow: hidden;
display: flex; flex-direction: column; position: relative;
}
.state-standby {
flex: 1; display: flex; flex-direction: column;
align-items: center; justify-content: center;
text-align: center; padding: 32px 24px;
}
.standby-icon {
width: 120px; height: 120px;
background: rgba(34, 197, 94, 0.15); color: var(--success);
border-radius: 50%;
display: flex; align-items: center; justify-content: center;
font-size: 64px; margin-bottom: 24px;
animation: pulseGreen 2s ease-in-out infinite;
}
@keyframes pulseGreen {
0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
50% { box-shadow: 0 0 0 20px rgba(34, 197, 94, 0); }
}
.standby-label { font-size: 32px; font-weight: 700; color: var(--success); margin-bottom: 8px; }
.standby-sub { color: var(--text-secondary); font-size: 16px; }
.last-action {
margin-top: 40px; padding: 16px 24px;
background: var(--bg-card); border: 1px solid var(--border);
border-radius: var(--radius-md); max-width: 400px; width: 100%;
}
.last-action-label {
font-size: 12px; color: var(--text-muted);
text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px;
}
.last-action-detail { font-size: 14px; color: var(--text-secondary); }
.state-action {
flex: 1; display: flex; flex-direction: column;
background: linear-gradient(180deg, rgba(168, 85, 247, 0.1) 0%, transparent 40%);
animation: alertPulse 1s ease-in-out 2;
overflow-y: auto; padding: 20px;
}
@keyframes alertPulse {
0%, 100% { background-color: rgba(168, 85, 247, 0); }
50% { background-color: rgba(168, 85, 247, 0.2); }
}
.action-header { text-align: center; margin-bottom: 24px; }
.action-cue-num {
font-size: 14px; font-weight: 700; color: var(--accent-hover);
letter-spacing: 2px; text-transform: uppercase;
}
.action-alert { font-size: 28px; font-weight: 800; margin-top: 4px; letter-spacing: 1px; }
.action-details { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.detail-card {
background: var(--bg-card); border: 1px solid var(--border-light);
border-radius: var(--radius-md); padding: 16px 20px;
}
.detail-label {
font-size: 12px; color: var(--text-muted);
text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px;
}
.detail-value { font-size: 28px; font-weight: 700; }
.color-card { position: relative; overflow: hidden; }
.color-swatch {
position: absolute; right: 20px; top: 50%;
transform: translateY(-50%);
width: 60px; height: 60px; border-radius: var(--radius-sm);
border: 2px solid var(--border-light);
box-shadow: 0 0 30px currentColor;
}
.brightness-bar {
margin-top: 10px; height: 12px;
background: var(--bg-secondary); border-radius: 6px; overflow: hidden;
}
.brightness-fill {
height: 100%;
background: linear-gradient(90deg, #f59e0b, #fff);
transition: width 0.3s ease;
}
.notes-card .detail-notes {
font-size: 16px; line-height: 1.5;
color: var(--text-primary); white-space: pre-wrap;
}
.btn-done {
margin-top: 20px; padding: 16px;
background: var(--success); color: white;
border-radius: var(--radius-md);
font-size: 18px; font-weight: 700;
transition: all 0.15s;
}
.btn-done:hover { background: #16a34a; }
.state-idle {
flex: 1; display: flex; flex-direction: column;
align-items: center; justify-content: center;
text-align: center; color: var(--text-muted); padding: 32px;
}
.idle-icon { font-size: 64px; margin-bottom: 16px; opacity: 0.5; }
.idle-label {
font-size: 20px; font-weight: 600;
margin-bottom: 4px; color: var(--text-secondary);
}
.idle-sub { font-size: 14px; }
.op-footer {
background: var(--bg-secondary);
border-top: 1px solid var(--border);
padding: 10px 16px;
}
.footer-info { display: flex; justify-content: space-around; gap: 16px; }
.footer-item { text-align: center; flex: 1; }
.footer-label {
font-size: 11px; color: var(--text-muted);
text-transform: uppercase; letter-spacing: 1px;
}
.footer-value {
font-size: 14px; font-weight: 600; color: var(--text-secondary);
margin-top: 2px;
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}