/* ========================================================================== CSS GLOBAL TOKENS & RESET ========================================================================== */ :root { --bg-dark: #07080e; --bg-card: rgba(13, 17, 30, 0.7); --border-color: rgba(99, 102, 241, 0.18); --primary: #6366f1; --primary-glow: rgba(99, 102, 241, 0.4); --accent: #a855f7; --accent-glow: rgba(168, 85, 247, 0.45); --emerald: #10b981; --rose: #ef4444; --text-main: #e2e8f0; --text-muted: #94a3b8; --font-header: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); } * { box-sizing: border-box; margin: 0; padding: 0; } body { background-color: var(--bg-dark); color: var(--text-main); font-family: var(--font-body); min-height: 100vh; overflow-x: hidden; position: relative; padding: 2rem 1.5rem; } /* ========================================================================== DYNAMIC GLOWING BACKGROUND ========================================================================== */ .glow-backdrop { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: -1; background: radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 40%), radial-gradient(circle at 90% 80%, rgba(168, 85, 247, 0.09) 0%, transparent 45%); pointer-events: none; } /* ========================================================================== LAYOUT CONTAINER & CARDS ========================================================================== */ .dashboard-container { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 1.5rem; } .glassmorphism { background: var(--bg-card); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--border-color); border-radius: 16px; box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37); transition: var(--transition-smooth); } .glassmorphism:hover { border-color: rgba(99, 102, 241, 0.3); box-shadow: 0 10px 40px 0 rgba(99, 102, 241, 0.1); } .card { padding: 1.75rem; } .card-title { font-family: var(--font-header); font-size: 1.25rem; font-weight: 600; margin-bottom: 1.25rem; background: linear-gradient(135deg, #fff 0%, var(--text-muted) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; border-bottom: 1px solid rgba(255, 255, 255, 0.05); padding-bottom: 0.75rem; } /* ========================================================================== APP HEADER ========================================================================== */ .app-header { text-align: center; margin-bottom: 1rem; } .logo-area { display: inline-flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; } .logo-area h1 { font-family: var(--font-header); font-size: 2.5rem; font-weight: 800; letter-spacing: -0.5px; background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; text-shadow: 0 0 40px rgba(99, 102, 241, 0.2); } .pulse-indicator { width: 10px; height: 10px; border-radius: 50%; background-color: var(--rose); box-shadow: 0 0 10px var(--rose); } .pulse-indicator.active { background-color: var(--emerald); box-shadow: 0 0 10px var(--emerald); animation: pulse 1.8s infinite; } .tagline { color: var(--text-muted); font-size: 0.95rem; font-weight: 400; max-width: 600px; margin: 0 auto; } /* ========================================================================== DASHBOARD GRID LAYOUT ========================================================================== */ .dashboard-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; } @media (max-width: 768px) { .dashboard-grid { grid-template-columns: 1fr; } .col-span-2 { grid-column: span 1 !important; } } .col-span-2 { grid-column: span 2; } /* ========================================================================== INPUTS & CONTROLS ========================================================================== */ .control-group { margin-bottom: 1.25rem; } .control-group:last-child { margin-bottom: 0; } label { display: block; font-size: 0.85rem; font-weight: 500; color: var(--text-muted); margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.5px; } .custom-select { width: 100%; padding: 0.8rem 1rem; background-color: rgba(20, 24, 45, 0.8); border: 1px solid var(--border-color); border-radius: 8px; color: var(--text-main); font-size: 0.9rem; font-family: var(--font-body); outline: none; transition: var(--transition-smooth); cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 1.2rem; } .custom-select:focus { border-color: var(--primary); box-shadow: 0 0 8px var(--primary-glow); } .input-group input { background-color: rgba(20, 24, 45, 0.8); border: 1px solid var(--border-color); border-radius: 8px; color: var(--text-main); padding: 0.8rem 1rem; width: 100%; font-family: var(--font-body); font-size: 0.9rem; outline: none; transition: var(--transition-smooth); } .input-group input:focus { border-color: var(--primary); box-shadow: 0 0 8px var(--primary-glow); } /* ========================================================================== SLIDERS STYLING ========================================================================== */ .slider-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.25rem; } .slider-value { font-family: var(--font-header); font-weight: 600; color: var(--accent); text-shadow: 0 0 8px var(--accent-glow); font-size: 0.95rem; } .custom-slider { -webkit-appearance: none; width: 100%; height: 6px; border-radius: 3px; background: rgba(99, 102, 241, 0.15); outline: none; margin: 0.75rem 0; } .custom-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%); cursor: pointer; box-shadow: 0 0 10px var(--primary-glow); transition: transform 0.1s ease; } .custom-slider::-webkit-slider-thumb:hover { transform: scale(1.2); } .slider-ticks { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--text-muted); } /* ========================================================================== BUTTONS ========================================================================== */ .btn { padding: 0.8rem 1.5rem; border-radius: 8px; font-family: var(--font-header); font-weight: 600; font-size: 0.9rem; cursor: pointer; border: none; outline: none; transition: var(--transition-smooth); display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; } .btn-primary { background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%); color: white; box-shadow: 0 4px 14px 0 var(--primary-glow); } .btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 20px 0 rgba(99, 102, 241, 0.6); } .btn-accent { background: linear-gradient(135deg, var(--accent) 0%, #7c3aed 100%); color: white; box-shadow: 0 4px 14px 0 var(--accent-glow); } .btn-accent:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 20px 0 rgba(168, 85, 247, 0.65); } .btn:active:not(:disabled) { transform: translateY(0); } .btn:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; } /* ========================================================================== CONNECTION BAR ========================================================================== */ .connection-bar { padding: 1rem 1.5rem !important; } .form-row { display: flex; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; } .form-row .input-group { flex: 1; min-width: 250px; } .connection-status-container { display: flex; align-items: center; height: 48px; } .status-badge { padding: 0.4rem 0.8rem; border-radius: 20px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; display: inline-flex; align-items: center; gap: 0.35rem; } .status-badge::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; } .status-badge.connected { background-color: rgba(16, 185, 129, 0.15); color: var(--emerald); border: 1px solid rgba(16, 185, 129, 0.3); } .status-badge.connected::before { background-color: var(--emerald); box-shadow: 0 0 6px var(--emerald); } .status-badge.disconnected { background-color: rgba(239, 68, 68, 0.15); color: var(--rose); border: 1px solid rgba(239, 68, 68, 0.3); } .status-badge.disconnected::before { background-color: var(--rose); box-shadow: 0 0 6px var(--rose); } .status-badge.connecting { background-color: rgba(168, 85, 247, 0.15); color: var(--accent); border: 1px solid rgba(168, 85, 247, 0.3); } .status-badge.connecting::before { background-color: var(--accent); box-shadow: 0 0 6px var(--accent); animation: blink 1s infinite; } .btn-group-row { display: flex; gap: 0.75rem; height: 48px; } /* ========================================================================== MODERN RADIO TILES ========================================================================== */ .radio-group-modern { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; } .radio-tile { position: relative; cursor: pointer; margin: 0; } .radio-tile input { position: absolute; opacity: 0; } .tile-label { display: block; padding: 0.6rem; background-color: rgba(20, 24, 45, 0.5); border: 1px solid var(--border-color); border-radius: 8px; text-align: center; font-size: 0.8rem; font-weight: 500; color: var(--text-muted); transition: var(--transition-smooth); } .radio-tile input:checked + .tile-label { background-color: rgba(99, 102, 241, 0.12); border-color: var(--primary); color: var(--text-main); box-shadow: 0 0 10px rgba(99, 102, 241, 0.2); } .radio-tile:hover .tile-label { border-color: rgba(99, 102, 241, 0.4); } /* ========================================================================== OSCILLOSCOPE WAVEFORM CANVASES ========================================================================== */ .visualizer-row { display: flex; gap: 1.5rem; flex-wrap: wrap; } .visualizer-container { flex: 1; min-width: 280px; display: flex; flex-direction: column; gap: 0.5rem; } .vis-label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; font-weight: 500; color: var(--text-muted); } .dot { width: 6px; height: 6px; border-radius: 50%; } .input-dot { background-color: var(--primary); box-shadow: 0 0 6px var(--primary); } .output-dot { background-color: var(--accent); box-shadow: 0 0 6px var(--accent); } .waveform-canvas { width: 100%; height: 150px; background-color: #0b0c13; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.03); } /* ========================================================================== PERFORMANCE HUD ========================================================================== */ .performance-hud { display: flex; justify-content: space-between; align-items: center; padding: 0.85rem 1.75rem !important; } .hud-item { display: flex; flex-direction: column; gap: 0.15rem; } .hud-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); font-weight: 500; } .hud-value { font-family: var(--font-header); font-size: 1.1rem; font-weight: 700; color: white; } .hud-separator { width: 1px; height: 30px; background-color: rgba(255, 255, 255, 0.08); } .hud-value.text-accent { color: var(--accent); text-shadow: 0 0 8px var(--accent-glow); } .active-badge { color: var(--emerald); text-shadow: 0 0 6px rgba(16, 185, 129, 0.4); } @media (max-width: 600px) { .performance-hud { flex-direction: column; align-items: flex-start; gap: 0.75rem; } .hud-separator { display: none; } } /* ========================================================================== KEYFRAME ANIMATIONS ========================================================================== */ @keyframes pulse { 0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); } 70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); } 100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } } @keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }