:root{--bg-primary: #ffffff;--bg-secondary: #f8f9fa;--text-primary: #333333;--text-secondary: #666666;--border-color: rgba(0, 0, 0, .1);--shadow-color: rgba(0, 0, 0, .1);--nav-bg: #ffffff;--footer-bg: #333333;--footer-text: #ffffff;--card-bg: #ffffff;--link-color: #333333;--link-hover: #0077b6;--button-bg: #2c3e50;--button-text: #ffffff;--toggle-bg: #f0f0f0;--toggle-border: #dddddd;--toggle-hover-bg: #e0e0e0;--toggle-icon-color: #333333;--logout-button-bg: #dc3545;--logout-button-hover: #c82333}[data-theme=dark]{--bg-primary: #1a1a1a;--bg-secondary: #2d2d2d;--text-primary: #e4e4e4;--text-secondary: #b0b0b0;--border-color: rgba(255, 255, 255, .1);--shadow-color: rgba(0, 0, 0, .5);--nav-bg: #1f1f1f;--footer-bg: #0d0d0d;--footer-text: #e4e4e4;--card-bg: #2d2d2d;--link-color: #e4e4e4;--link-hover: #4da3d9;--button-bg: #4a5f7f;--button-text: #ffffff;--toggle-bg: #2d2d2d;--toggle-border: #444444;--toggle-hover-bg: #3d3d3d;--toggle-icon-color: #ffd700;--logout-button-bg: #dc3545;--logout-button-hover: #b21f2d}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:var(--bg-primary);color:var(--text-primary);transition:background-color .3s ease,color .3s ease}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}*{box-sizing:border-box}body{margin:0;font-family:Open Sans,sans-serif}.App{max-width:800px;margin:0 auto}header{display:flex;align-items:center;justify-content:space-between;padding:20px;background-color:var(--nav-bg);box-shadow:0 4px 6px var(--shadow-color)}h1{margin:0;font-size:24px;color:var(--text-primary)}nav{background-color:var(--nav-bg);box-shadow:0 4px 6px var(--shadow-color);padding:20px;margin-bottom:20px}nav ul{list-style:none;display:flex;margin:0;padding:0}nav li{margin-right:20px}nav li:last-child{margin-right:0}nav a{text-decoration:none;color:var(--link-color);font-size:18px;font-weight:600;text-transform:uppercase;transition:color .3s ease}nav a:hover{color:var(--link-hover)}.homepage-container{display:flex;justify-content:center;align-items:center;height:100vh;background-color:var(--bg-primary);transition:background-color .3s ease}.homepage-title{font-size:5rem;text-align:center;color:var(--text-primary);transition:color .3s ease}@media(max-width:768px){.homepage-title{font-size:3rem}}.logo{width:30rem;height:auto}.theme-toggle{background:var(--toggle-bg);border:2px solid var(--toggle-border);border-radius:50%;width:45px;height:45px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .3s ease;padding:8px}.theme-toggle:hover{background:var(--toggle-hover-bg);transform:scale(1.1)}.theme-toggle:active{transform:scale(.95)}.theme-icon{width:24px;height:24px;color:var(--toggle-icon-color);transition:transform .3s ease}.theme-toggle:hover .theme-icon{transform:rotate(20deg)}:root{--user-info-bg: rgba(0, 123, 255, .1);--user-info-hover-bg: rgba(0, 123, 255, .2);--logout-button-bg: #dc3545;--logout-button-hover: #c82333}[data-theme=dark]{--user-info-bg: rgba(0, 123, 255, .2);--user-info-hover-bg: rgba(0, 123, 255, .3);--logout-button-bg: #dc3545;--logout-button-hover: #b21f2d}.nav-container{display:flex;justify-content:space-between;align-items:center;max-width:800px;margin:0 auto}.logo{font-size:24px;font-weight:600;color:var(--text-primary)}.nav-links{list-style:none;display:flex;margin:0;padding:0;align-items:center}.nav-links li{margin-right:20px}.nav-links li:last-child{margin-right:0}.nav-links a{text-decoration:none;color:var(--link-color);font-size:18px;font-weight:600;text-transform:uppercase;transition:color .3s ease}.nav-links a:hover{color:var(--link-hover)}.logo-link{display:flex;align-items:center}.logo-img{max-width:100%;height:auto;max-height:50px}nav{background-color:var(--nav-bg);transition:background-color .3s ease}nav ul{list-style:none;display:flex;margin:0;padding:0;align-items:center}nav ul li{margin-right:20px}nav ul li:last-child{margin-right:0}.nav-spacer{flex-grow:1;margin-right:0!important}.user-info{display:flex;align-items:center}.username{color:var(--text-primary);font-size:16px;font-weight:500;padding:.5rem .75rem;background:#007bff1a;border-radius:6px;white-space:nowrap}.username-clickable{cursor:pointer;text-decoration:none;display:inline-block;transition:background-color .3s ease,transform .1s ease}.username-clickable:hover{background:#007bff33;transform:translateY(-1px)}.username-clickable:active{transform:translateY(0)}.logout-button{background:#dc3545;color:#fff;border:none;padding:.5rem 1rem;font-size:16px;font-weight:600;text-transform:uppercase;border-radius:6px;cursor:pointer;transition:background-color .3s ease,transform .1s ease}.logout-button:hover{background:#c82333;transform:translateY(-1px)}.logout-button:active{transform:translateY(0)}[data-theme=dark] .username{background:#007bff33}[data-theme=dark] .username-clickable:hover{background:#007bff4d}[data-theme=dark] .logout-button:hover{background:#b21f2d}.info-container{min-height:100vh;padding:2rem 1rem 5rem;background-color:var(--bg-primary);transition:background-color .3s ease}.info-content{max-width:900px;margin:0 auto;padding:2rem;background-color:var(--card-bg);border-radius:12px;box-shadow:0 4px 12px var(--shadow-color);transition:background-color .3s ease,box-shadow .3s ease}.info-title{font-size:2.5rem;color:var(--text-primary);margin-bottom:2rem;text-align:center;border-bottom:3px solid var(--link-hover);padding-bottom:1rem;transition:color .3s ease}.info-section{margin-bottom:2.5rem}.info-section h2{font-size:1.8rem;color:var(--text-primary);margin-bottom:1rem;transition:color .3s ease}.info-section p{font-size:1.1rem;line-height:1.6;color:var(--text-secondary);margin-bottom:1rem;transition:color .3s ease}.tech-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1.5rem;margin-top:1.5rem}.tech-item{padding:1.5rem;background-color:var(--bg-secondary);border-radius:8px;border:2px solid var(--border-color);transition:all .3s ease}.tech-item:hover{transform:translateY(-5px);box-shadow:0 6px 16px var(--shadow-color);border-color:var(--link-hover)}.tech-item h3{font-size:1.3rem;color:var(--text-primary);margin-bottom:.5rem;transition:color .3s ease}.tech-item p{font-size:.95rem;color:var(--text-secondary);margin:0;transition:color .3s ease}.features-list{list-style:none;padding:0;margin-top:1rem}.features-list li{font-size:1.1rem;color:var(--text-secondary);padding:.75rem 0;border-bottom:1px solid var(--border-color);transition:all .3s ease}.features-list li:last-child{border-bottom:none}.features-list li:hover{color:var(--text-primary);padding-left:1rem}.contact-info{font-size:1.1rem;margin-top:1rem}.contact-info a{color:var(--link-hover);text-decoration:none;font-weight:600;transition:color .3s ease}.contact-info a:hover{text-decoration:underline;opacity:.8}.info-footer{margin-top:3rem;padding-top:2rem;border-top:2px solid var(--border-color);text-align:center}.info-footer p{margin:.5rem 0;color:var(--text-secondary);font-size:1rem}.copyright{font-size:.9rem;opacity:.8}@media(max-width:768px){.info-container{padding:1rem .5rem}.info-content{padding:1.5rem}.info-title{font-size:2rem}.info-section h2{font-size:1.5rem}.tech-grid{grid-template-columns:1fr}.features-list li{font-size:1rem}}.footer{background-color:var(--footer-bg);color:var(--footer-text);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:1rem;position:fixed;bottom:0;width:100%;font-size:.8rem;text-align:center;transition:background-color .3s ease,color .3s ease}.footer a{color:var(--footer-text);transition:color .3s ease}@media screen and (min-width:768px){.footer{flex-direction:row;justify-content:space-between;font-size:1rem;padding:1rem 2rem}.footer-text{margin-right:2rem}}#greeting-message{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#00000080;display:flex;justify-content:center;align-items:center;z-index:999}#greeting-message.hidden{display:none}.card{background-color:var(--card-bg);padding:20px;box-shadow:0 0 10px var(--shadow-color);text-align:center;max-width:500px;transition:background-color .3s ease}.close-button{position:absolute;top:10px;right:10px;font-size:1.5em;border:none;background-color:transparent;cursor:pointer;color:var(--text-secondary);transition:color .3s ease}.close-button:hover{color:var(--text-primary)}.hidden{display:none}.login-container{display:flex;justify-content:center;align-items:center;min-height:60vh;padding:2rem}.login-card{background:var(--card-background, #ffffff);border-radius:12px;box-shadow:0 4px 6px #0000001a;padding:2.5rem;width:100%;max-width:420px;border:1px solid var(--border-color, #e0e0e0)}.login-title{text-align:center;color:var(--text-primary);margin-bottom:2rem;font-size:1.8rem;font-weight:600}.login-form{display:flex;flex-direction:column;gap:1.5rem}.form-group input{padding:.75rem;border:1px solid var(--border-color, #ccc);border-radius:6px;font-size:1rem;background:var(--input-background, #ffffff);color:var(--text-primary);transition:border-color .3s ease,box-shadow .3s ease}.form-group input:disabled{opacity:.6;cursor:not-allowed}.login-button{padding:.875rem;background:var(--link-color, #007bff);color:#fff;border:none;border-radius:6px;font-size:1rem;font-weight:600;cursor:pointer;transition:background-color .3s ease,transform .1s ease}.login-button:hover:not(:disabled){background:var(--link-hover, #0056b3);transform:translateY(-1px)}.login-button:active:not(:disabled){transform:translateY(0)}.login-button:disabled{opacity:.6;cursor:not-allowed}.login-help{margin-top:1.5rem;padding-top:1.5rem;border-top:1px solid var(--border-color, #e0e0e0);text-align:center}.login-help p{color:var(--text-secondary, #666);font-size:.95rem}.register-link{color:var(--link-color, #007bff);text-decoration:none;font-weight:500;transition:color .3s ease}.register-link:hover{color:var(--link-hover, #0056b3);text-decoration:underline}.demo-credentials{font-size:.9rem;color:var(--text-secondary, #666);line-height:1.6;text-align:center}.demo-credentials code{background:var(--code-background, #f5f5f5);padding:.2rem .4rem;border-radius:3px;font-family:Courier New,monospace;font-size:.85rem;color:var(--text-primary)}[data-theme=dark] .login-card{--card-background: #2a2a2a;--border-color: #444;--input-background: #333;--code-background: #444}.register-container{display:flex;justify-content:center;align-items:center;min-height:60vh;padding:2rem}.register-card{background:var(--card-background, #ffffff);border-radius:12px;box-shadow:0 4px 6px #0000001a;padding:2.5rem;width:100%;max-width:480px;border:1px solid var(--border-color, #e0e0e0)}.register-title{text-align:center;color:var(--text-primary);margin-bottom:2rem;font-size:1.8rem;font-weight:600}.register-form{display:flex;flex-direction:column;gap:1.25rem}.register-form .form-group{display:flex;flex-direction:column;gap:.5rem}.register-form .form-group label{font-weight:500;color:var(--text-primary);font-size:.95rem}.register-form .form-group input{padding:.75rem;border:1px solid var(--border-color, #ccc);border-radius:6px;font-size:1rem;background:var(--input-background, #ffffff);color:var(--text-primary);transition:border-color .3s ease,box-shadow .3s ease}.register-form .form-group input:focus{outline:none;border-color:var(--link-color, #007bff);box-shadow:0 0 0 3px #007bff1a}.register-form .form-group input:disabled{opacity:.6;cursor:not-allowed}.register-form .error-message{background:#fee;border:1px solid #fcc;color:#c33;padding:.75rem;border-radius:6px;font-size:.9rem;text-align:center}.register-button{padding:.875rem;background:var(--link-color, #007bff);color:#fff;border:none;border-radius:6px;font-size:1rem;font-weight:600;cursor:pointer;transition:background-color .3s ease,transform .1s ease;margin-top:.5rem}.register-button:hover:not(:disabled){background:var(--link-hover, #0056b3);transform:translateY(-1px)}.register-button:active:not(:disabled){transform:translateY(0)}.register-button:disabled{opacity:.6;cursor:not-allowed}.register-footer{margin-top:1.5rem;padding-top:1.5rem;border-top:1px solid var(--border-color, #e0e0e0);text-align:center}.register-footer p{color:var(--text-secondary, #666);font-size:.95rem}.login-link{color:var(--link-color, #007bff);text-decoration:none;font-weight:500;transition:color .3s ease}.login-link:hover{color:var(--link-hover, #0056b3);text-decoration:underline}[data-theme=dark] .register-card{--card-background: #2a2a2a;--border-color: #444;--input-background: #333}.edit-profile-container{display:flex;justify-content:center;align-items:center;min-height:60vh;padding:2rem}.edit-profile-card{background:var(--card-background, #ffffff);border-radius:12px;box-shadow:0 4px 6px #0000001a;padding:2.5rem;width:100%;max-width:480px;border:1px solid var(--border-color, #e0e0e0)}.edit-profile-title{text-align:center;color:var(--text-primary);margin-bottom:2rem;font-size:1.8rem;font-weight:600}.edit-profile-form{display:flex;flex-direction:column;gap:1.25rem}.form-group{display:flex;flex-direction:column;gap:.5rem}.form-group label{font-weight:500;color:var(--text-primary);font-size:.95rem}.form-group input{padding:.75rem;border:1px solid var(--border-color, #ccc);border-radius:6px;font-size:1rem;background:var(--input-background, #ffffff);color:var(--text-primary)}.form-group input:focus{outline:none;border-color:var(--link-color, #007bff);box-shadow:0 0 0 3px #007bff1a}.form-divider{color:var(--text-secondary, #666);font-size:.9rem;font-weight:500;padding-top:1rem;margin-top:.5rem;border-top:1px solid var(--border-color, #e0e0e0)}.error-message{background:#fee;border:1px solid #fcc;color:#c33;padding:.75rem;border-radius:6px;font-size:.9rem;text-align:center}.success-message{background:#efe;border:1px solid #cfc;color:#2d7a2d;padding:.75rem;border-radius:6px;font-size:.9rem;text-align:center}.edit-profile-actions{display:flex;gap:1rem;justify-content:flex-end}.cancel-button,.save-button{padding:.75rem 1.5rem;border:none;border-radius:6px;font-size:1rem;font-weight:600;cursor:pointer}.cancel-button{background:var(--button-secondary-bg, #e0e0e0);color:var(--text-primary)}.save-button{background:var(--link-color, #007bff);color:#fff}.save-button:hover:not(:disabled){background:var(--link-hover, #0056b3)}.cancel-button:disabled,.save-button:disabled{opacity:.6;cursor:not-allowed}[data-theme=dark] .edit-profile-card{--card-background: #2a2a2a;--border-color: #444;--input-background: #333;--button-secondary-bg: #444}.websocket-container{display:flex;justify-content:center;align-items:center;min-height:70vh;padding:2rem}.websocket-card{background:var(--card-background, #ffffff);border-radius:16px;box-shadow:0 8px 24px #0000001f;padding:3rem;width:100%;max-width:500px;border:1px solid var(--border-color, #e0e0e0)}.websocket-title{text-align:center;color:var(--text-primary);margin-bottom:1.5rem;font-size:1.8rem;font-weight:600}.connection-status{display:flex;align-items:center;justify-content:center;gap:.5rem;margin-bottom:1rem;padding:.75rem;background:var(--status-bg, #f5f5f5);border-radius:8px}.status-indicator{width:12px;height:12px;border-radius:50%;transition:background-color .3s ease}.status-indicator.connected{background-color:#4caf50;box-shadow:0 0 8px #4caf5099}.status-indicator.disconnected{background-color:#f44336;animation:pulse 2s infinite}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}.status-text{font-size:.95rem;font-weight:500;color:var(--text-primary)}.instruction-text{text-align:center;color:var(--text-secondary, #666);margin-bottom:2rem;font-size:.95rem}.ws-button{display:block;width:100%;font-size:1.5rem;padding:1.5rem;cursor:pointer;border:none;border-radius:12px;background:linear-gradient(135deg,#4caf50,#45a049);color:#fff;font-weight:600;transition:all .2s ease;box-shadow:0 4px 12px #4caf504d;user-select:none;-webkit-user-select:none;touch-action:manipulation}.ws-button:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 16px #4caf5066}.ws-button:active:not(:disabled),.ws-button.pressed{background:linear-gradient(135deg,#f44336,#d32f2f);transform:translateY(0);box-shadow:0 2px 8px #f4433666}.ws-button:disabled{opacity:.5;cursor:not-allowed;background:linear-gradient(135deg,#9e9e9e,#757575)}.output-section{margin-top:2.5rem;display:flex;flex-direction:column;gap:1.5rem}.led-container{display:flex;flex-direction:column;align-items:center;gap:.5rem}.led{width:60px;height:60px;border-radius:50%;transition:all .3s ease;border:3px solid var(--border-color, #ddd)}.led.on{background-color:#4caf50;box-shadow:0 0 20px #4caf50cc,inset 0 0 10px #ffffff4d;border-color:#45a049}.led.off{background-color:var(--led-off, #424242);box-shadow:inset 0 2px 4px #0003}.led-label{font-size:.85rem;color:var(--text-secondary, #666);font-weight:500}.screen{min-height:60px;font-size:1.1rem;text-align:center;border:2px solid var(--border-color, #ddd);border-radius:8px;padding:1rem;background:var(--screen-bg, #1a1a1a);color:#4caf50;font-family:Courier New,monospace;font-weight:500;display:flex;align-items:center;justify-content:center;box-shadow:inset 0 2px 4px #0003}.screen-placeholder{color:var(--screen-placeholder, #555);font-style:italic}.device-info{margin-top:1.5rem;text-align:center;padding-top:1.5rem;border-top:1px solid var(--border-color, #e0e0e0)}.device-info small{color:var(--text-secondary, #666);font-size:.85rem}.device-info code{background:var(--code-background, #f5f5f5);padding:.2rem .5rem;border-radius:4px;font-family:Courier New,monospace;font-size:.9rem;color:var(--text-primary)}[data-theme=dark] .websocket-card{--card-background: #2a2a2a;--border-color: #444;--status-bg: #333;--led-off: #555;--screen-bg: #1a1a1a;--screen-placeholder: #666;--code-background: #444}[data-theme=dark] .screen{color:#6f6}@media(max-width:600px){.websocket-card{padding:2rem 1.5rem}.websocket-title{font-size:1.5rem}.ws-button{font-size:1.25rem;padding:1.25rem}}.status-dashboard{max-width:1400px;margin:2rem auto;padding:2rem}.status-dashboard h1{text-align:center;margin-bottom:2rem;font-size:2.5rem;color:var(--text-primary, #1f2937)}.error-banner{background-color:#fee2e2;border:2px solid #ef4444;border-radius:8px;padding:1rem;margin-bottom:2rem;color:#991b1b}.error-banner p{margin:0;font-weight:500}.loading{text-align:center;padding:3rem;font-size:1.1rem;color:var(--text-secondary, #6b7280)}.status-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(500px,1fr));gap:2rem;margin-bottom:2rem}.status-card{background:var(--bg-secondary, #ffffff);border:2px solid #e5e7eb;border-radius:12px;padding:1.5rem;box-shadow:0 4px 6px #0000001a;transition:all .3s ease}.status-card:hover{box-shadow:0 8px 12px #00000026;transform:translateY(-2px)}.status-card.offline{border-color:#ef4444;opacity:.8}.card-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem;border-bottom:2px solid #e5e7eb;padding-bottom:1rem}.card-header h2{margin:0;font-size:1.5rem;color:var(--text-primary, #1f2937);flex:1}.status-indicator{width:50px;height:50px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:1.5rem;box-shadow:0 2px 8px #0000001a;animation:pulse 2s ease-in-out infinite}@keyframes pulse{0%,to{box-shadow:0 2px 8px #0000001a}50%{box-shadow:0 2px 16px #0003}}.status-section{margin-bottom:1.5rem}.status-section h3{font-size:1rem;font-weight:600;margin:0 0 1rem;color:var(--text-primary, #1f2937);text-transform:uppercase;letter-spacing:.5px;padding-bottom:.5rem;border-bottom:1px solid #e5e7eb}.info-grid{display:grid;grid-template-columns:1fr;gap:.75rem}.info-row{display:flex;justify-content:space-between;align-items:center;padding:.5rem 0;border-bottom:1px solid #f3f4f6}.info-row:last-child{border-bottom:none}.info-row .label{font-weight:600;color:var(--text-secondary, #6b7280);font-size:.9rem;text-transform:uppercase;letter-spacing:.3px}.info-row .value{color:var(--text-primary, #1f2937);text-align:right;word-break:break-word;max-width:60%}.status-badge{display:inline-block;padding:.25rem .75rem;border-radius:20px;font-weight:600;font-size:.85rem;background-color:#0000000d}.unavailable{color:var(--text-secondary, #6b7280);font-style:italic;text-align:center;padding:1rem;background-color:#f9fafb;border-radius:8px;margin:0}.offline-message{background-color:#fee2e2;border-radius:8px;padding:2rem;text-align:center}.offline-message p{margin:.5rem 0;font-size:1.1rem;color:#991b1b}.offline-message .error-detail{font-size:.9rem;color:#7f1d1d;font-family:monospace}.card-footer{margin-top:1.5rem;padding-top:1rem;border-top:1px solid #e5e7eb;text-align:center}.card-footer a{color:#3b82f6;text-decoration:none;font-weight:500;transition:all .3s ease}.card-footer a:hover{color:#1d4ed8;text-decoration:underline}[data-theme=dark] .status-card{background:#1f2937;border-color:#374151}[data-theme=dark] .status-card h2{color:#f3f4f6}[data-theme=dark] .status-section h3{color:#e5e7eb}[data-theme=dark] .info-row{border-bottom-color:#374151}[data-theme=dark] .info-row .label{color:#9ca3af}[data-theme=dark] .info-row .value{color:#e5e7eb}[data-theme=dark] .card-header,[data-theme=dark] .status-section h3{border-bottom-color:#374151}[data-theme=dark] .unavailable{background-color:#111827;color:#9ca3af}[data-theme=dark] .status-dashboard h1{color:#f3f4f6}[data-theme=dark] .card-footer a{color:#60a5fa}[data-theme=dark] .card-footer a:hover{color:#93c5fd}@media(max-width:768px){.status-grid{grid-template-columns:1fr}.status-dashboard{padding:1rem}.card-header{flex-direction:column;align-items:flex-start;gap:1rem}.status-indicator{align-self:flex-end}.info-row{flex-direction:column;align-items:flex-start;gap:.5rem}.info-row .value{max-width:100%}}
