/* EZFlow Standalone App Styling - Dark Mode Glassmorphism Theme */ :root { --bg-color: #0b0d10; --panel-bg: rgba(22, 26, 33, 0.85); --panel-border: rgba(255, 255, 255, 0.06); --text-main: #f0f3f8; --text-muted: #8b99ae; --accent-cyan: #00f0ff; --accent-blue: #1b49aa; --danger-red: #ff3e3e; --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5); --radius: 12px; } * { box-sizing: border-box; margin: 0; padding: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } body { font-family: var(--font-family); background-color: var(--bg-color); color: var(--text-main); height: 100vh; display: flex; flex-direction: column; overflow: hidden; } /* HEADER styling */ .app-header { height: 60px; background-color: rgba(13, 16, 21, 0.95); border-bottom: 1px solid var(--panel-border); display: flex; justify-content: space-between; align-items: center; padding: 0 24px; z-index: 100; } .logo { font-weight: 700; font-size: 1.25rem; letter-spacing: 0.5px; } .neon-text { color: var(--accent-cyan); text-shadow: 0 0 10px rgba(0, 240, 255, 0.35); } .system-status { font-size: 0.85rem; color: var(--text-muted); display: flex; align-items: center; gap: 8px; } .status-indicator { width: 8px; height: 8px; border-radius: 50%; display: inline-block; } .status-indicator.online { background-color: #00e676; box-shadow: 0 0 8px #00e676; } .status-indicator.running { background-color: #ffb300; box-shadow: 0 0 8px #ffb300; } .status-indicator.error { background-color: var(--danger-red); box-shadow: 0 0 8px var(--danger-red); } /* APP LAYOUT */ .app-layout { flex: 1; display: flex; padding: 16px; gap: 16px; height: calc(100vh - 60px); } .panel { background: var(--panel-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--panel-border); border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; } /* PANEL DIVISION */ .control-panel { width: 380px; padding: 20px; overflow-y: auto; } .viewport-panel { flex: 1; position: relative; } .metadata-panel { width: 320px; padding: 20px; gap: 20px; overflow-y: auto; } /* CARDS inside panels */ .section-card { margin-bottom: 24px; } .section-card:last-child { margin-bottom: 0; } h2 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 16px; font-weight: 600; } h3 { font-size: 0.95rem; color: var(--accent-cyan); margin-bottom: 8px; } p { font-size: 0.85rem; line-height: 1.5; color: var(--text-muted); } /* TABS */ .tabs { display: flex; background-color: rgba(0, 0, 0, 0.25); border-radius: 8px; padding: 4px; margin-bottom: 16px; } .tab-btn { flex: 1; background: none; border: none; color: var(--text-muted); padding: 8px; font-size: 0.85rem; font-weight: 500; cursor: pointer; border-radius: 6px; transition: all 0.2s ease; } .tab-btn.active { background-color: var(--accent-blue); color: var(--text-main); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); } .tab-content { display: none; } .tab-content.active { display: block; } /* FORMS & INPUTS */ .input-group { margin-bottom: 16px; } label { display: block; font-size: 0.85rem; color: var(--text-main); margin-bottom: 8px; font-weight: 500; } select { width: 100%; background-color: rgba(0, 0, 0, 0.3); border: 1px solid var(--panel-border); color: var(--text-main); padding: 10px; border-radius: 6px; font-size: 0.9rem; outline: none; cursor: pointer; } select:focus { border-color: var(--accent-cyan); } /* SLIDERS */ .slider-group { margin-bottom: 16px; } .slider-group label { display: flex; justify-content: space-between; } .slider-group label span { color: var(--accent-cyan); font-weight: 600; font-family: monospace; } input[type="range"] { width: 100%; -webkit-appearance: none; background: rgba(255, 255, 255, 0.1); height: 6px; border-radius: 3px; outline: none; margin: 10px 0; } input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; background: var(--accent-cyan); width: 24px; height: 24px; border-radius: 50%; cursor: pointer; box-shadow: 0 0 10px var(--accent-cyan); transition: transform 0.1s ease; } input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); } input[type="range"]::-moz-range-thumb { background: var(--accent-cyan); width: 24px; height: 24px; border-radius: 50%; cursor: pointer; box-shadow: 0 0 10px var(--accent-cyan); transition: transform 0.1s ease; border: none; } input[type="range"]::-moz-range-thumb:hover { transform: scale(1.15); } /* DRAG & DROP AREA */ .upload-area { border: 2px dashed rgba(255, 255, 255, 0.15); border-radius: 8px; padding: 24px; text-align: center; cursor: pointer; background-color: rgba(0, 0, 0, 0.15); transition: border-color 0.2s ease; } .upload-area:hover { border-color: var(--accent-cyan); } .upload-icon { width: 48px; height: 48px; fill: var(--text-muted); margin-bottom: 12px; } .upload-area p { font-size: 0.8rem; } .upload-area span { color: var(--accent-cyan); text-decoration: underline; } .file-info { margin-top: 12px; font-size: 0.8rem; color: var(--accent-cyan); font-weight: 500; } /* BUTTONS */ .btn { width: 100%; padding: 14px; border: none; border-radius: 8px; font-size: 0.95rem; font-weight: 600; cursor: pointer; display: flex; justify-content: center; align-items: center; position: relative; overflow: hidden; transition: all 0.3s ease; } .btn-predict { background: linear-gradient(135deg, var(--accent-blue) 0%, #0d2c6c 100%); color: var(--text-main); border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); } .btn-predict:hover { background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 100%); color: #0b0d10; box-shadow: 0 0 20px rgba(0, 240, 255, 0.4); } .btn-predict:active { transform: scale(0.98); } .btn.loading .btn-text { visibility: hidden; opacity: 0; } .btn.loading .spinner { display: block; } .spinner { display: none; width: 24px; height: 24px; border: 3px solid rgba(255, 255, 255, 0.3); border-radius: 50%; border-top-color: var(--text-main); animation: spin 1s ease-in-out infinite; position: absolute; } @keyframes spin { to { transform: rotate(360deg); } } .reynolds-info { background-color: rgba(27, 73, 170, 0.25); border: 1px solid rgba(27, 73, 170, 0.5); border-radius: 6px; padding: 10px; text-align: center; font-size: 0.85rem; color: var(--text-main); } .reynolds-info strong { color: var(--accent-cyan); font-family: monospace; font-size: 1rem; } /* VIEWPORT & FLOATING TOOLBAR */ #canvas-container { width: 100%; height: 100%; background-color: #07090b; } .viewport-toolbar { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; gap: 24px; padding: 12px 24px; border-radius: 30px; align-items: center; z-index: 10; } .glass { background: rgba(13, 16, 21, 0.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--panel-border); box-shadow: var(--shadow); } .toolbar-group { display: flex; align-items: center; gap: 12px; } .toolbar-group label { margin-bottom: 0; font-size: 0.8rem; color: var(--text-muted); white-space: nowrap; } .toolbar-group select { padding: 6px 12px; font-size: 0.8rem; background-color: rgba(0, 0, 0, 0.4); } .slider-wide { width: clamp(340px, 44vw, 680px); } /* bigger slice slider in the floating toolbar -> easier, finer dragging */ .viewport-toolbar input[type="range"] { height: 10px; } .viewport-toolbar input[type="range"]::-webkit-slider-thumb { width: 30px; height: 30px; } .viewport-toolbar input[type="range"]::-moz-range-thumb { width: 30px; height: 30px; } /* LEGEND SCALE PANEL (RIGHT) */ .legend-container { display: flex; flex-direction: column; align-items: center; padding: 10px 0; } .legend-color-bar { width: 25px; height: 200px; background: linear-gradient(to top, #1a9850 0%, #a6d96a 30%, #f7e463 50%, #fdae61 70%, #d73027 100% ); border-radius: 4px; border: 1px solid rgba(255, 255, 255, 0.1); margin: 10px 0; } .legend-labels { display: flex; width: 100%; justify-content: space-between; font-size: 0.85rem; } .legend-labels span:first-child { font-family: monospace; font-weight: 600; color: var(--accent-cyan); } .legend-unit { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; } /* METADATA STATS LIST */ .stats-list { display: flex; flex-direction: column; gap: 12px; } .stat-item { display: flex; justify-content: space-between; font-size: 0.85rem; } .stat-item span:first-child { color: var(--text-muted); } .stat-item span:last-child { font-weight: 500; } .highlight-cyan { color: var(--accent-cyan); font-weight: 600 !important; text-shadow: 0 0 8px rgba(0, 240, 255, 0.2); } .code-font { font-family: monospace; } .info-box { background-color: rgba(0, 240, 255, 0.04); border: 1px solid rgba(0, 240, 255, 0.15); border-radius: 8px; padding: 16px; } /* FLOATING OPTIONS CARD (TOP RIGHT) */ .viewport-options { position: absolute; top: 20px; right: 20px; padding: 16px; border-radius: var(--radius); width: 240px; z-index: 10; display: flex; flex-direction: column; gap: 16px; } .options-section h3 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 10px; font-weight: 600; border-bottom: 1px solid rgba(255, 255, 255, 0.05); padding-bottom: 4px; } .option-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; } .option-row:last-child { margin-bottom: 0; } .option-row label { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0; } .option-row select { width: 120px; padding: 4px 8px; font-size: 0.8rem; background-color: rgba(0, 0, 0, 0.4); } .checkbox-row { justify-content: flex-start; gap: 10px; } .checkbox-row input[type="checkbox"] { accent-color: var(--accent-cyan); cursor: pointer; width: 14px; height: 14px; } .checkbox-row label { cursor: pointer; user-select: none; font-size: 0.8rem; } .preset-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; } .btn-preset { background-color: rgba(255, 255, 255, 0.05); border: 1px solid var(--panel-border); color: var(--text-main); padding: 6px 4px; font-size: 0.75rem; border-radius: 4px; cursor: pointer; font-weight: 500; transition: all 0.2s ease; } .btn-preset:hover { background-color: var(--accent-blue); border-color: var(--accent-cyan); } /* (6) light adaptiveness to monitor size: scale rem fonts + panel widths */ @media (max-width: 1500px) { html { font-size: 15px; } .control-panel { width: 340px; } .metadata-panel { width: 300px; } } @media (max-width: 1200px) { html { font-size: 14px; } .control-panel { width: 300px; padding: 14px; } .metadata-panel { width: 270px; padding: 14px; } .app-layout { gap: 10px; padding: 10px; } } /* viewport loading overlay */ .viewport-overlay { position: absolute; inset: 0; z-index: 20; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; padding: 24px; background: rgba(7, 9, 11, 0.55); backdrop-filter: blur(2px); color: var(--text-main); font-size: 0.95rem; } .vo-spinner { width: 46px; height: 46px; border-radius: 50%; border: 4px solid rgba(0, 240, 255, 0.2); border-top-color: var(--accent-cyan); animation: spin 0.9s linear infinite; } #viewport-overlay-text { max-width: 460px; line-height: 1.5; color: var(--text-muted); } /* toast (transient status / error message over the viewport) */ .toast { position: absolute; bottom: 92px; left: 50%; transform: translateX(-50%); z-index: 30; max-width: 72%; padding: 12px 18px; border-radius: 8px; background: rgba(13, 16, 21, 0.96); border: 1px solid var(--panel-border); color: var(--text-main); font-size: 0.85rem; box-shadow: var(--shadow); } .toast-error { border-color: var(--danger-red); color: #ffd9d9; } /* drag-over highlight on the upload area */ .upload-area.hover { border-color: var(--accent-cyan); background: rgba(0, 240, 255, 0.06); } /* extra movable slices list (right panel) */ .slice-row { border-top: 1px solid var(--panel-border); padding-top: 10px; margin-top: 10px; } .slice-row:first-child { border-top: none; padding-top: 0; margin-top: 0; } .slice-row-head { display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; color: var(--text-main); font-weight: 500; } .slice-x { background: none; border: none; color: var(--danger-red); font-size: 1.2rem; line-height: 1; cursor: pointer; padding: 0 4px; } .slice-x:hover { color: #ff7a7a; }