* { box-sizing: border-box; margin: 0; padding: 0; } :root { --primary: #3498db; --secondary: #9b59b6; --success: #2ecc71; --danger: #e74c3c; --warning: #f39c12; --dark: #1e1f29; --darker: #121218; --light: #ecf0f1; --medium: #7f8c8d; --header-height: 50px; --footer-height: 40px; } body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; display: flex; flex-direction: column; height: 100vh; background-color: var(--darker); color: var(--light); overflow: hidden; touch-action: manipulation; } /* Header styles */ header { display: flex; justify-content: space-between; align-items: center; padding: 0 15px; height: var(--header-height); background: linear-gradient(135deg, #2c3e50, #1a1a2e); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); z-index: 1000; } .logo { display: flex; align-items: center; gap: 10px; } .logo h1 { font-size: 1.2rem; font-weight: 600; background: linear-gradient(90deg, var(--primary), var(--secondary)); -webkit-background-clip: text; background-clip: text; color: transparent; } .logo i { color: var(--primary); font-size: 1.5rem; } .controls { display: flex; gap: 8px; } .btn { background: linear-gradient(135deg, var(--primary), #2980b9); color: white; border: none; padding: 8px 12px; border-radius: 20px; font-size: 0.8rem; cursor: pointer; display: flex; align-items: center; gap: 5px; transition: all 0.2s ease; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); min-width: 40px; justify-content: center; } .btn:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); } .btn i { font-size: 0.9rem; } .btn-success { background: linear-gradient(135deg, var(--success), #27ae60); } .btn-danger { background: linear-gradient(135deg, var(--danger), #c0392b); } .btn-warning { background: linear-gradient(135deg, var(--warning), #e67e22); } /* Main container */ .container { display: flex; flex: 1; flex-direction: column; overflow: hidden; } /* Tabs */ .tabs { display: flex; background: #252836; border-bottom: 1px solid #3a3f4b; overflow-x: auto; -webkit-overflow-scrolling: touch; } .tab { padding: 12px 20px; cursor: pointer; position: relative; background-color: #252836; transition: all 0.3s ease; white-space: nowrap; font-size: 0.9rem; } .tab.active { background-color: var(--dark); color: var(--primary); } .tab.active::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--primary), var(--secondary)); } /* Editor and Preview area */ .editor-area { display: flex; flex: 1; overflow: hidden; position: relative; } #editor { height: 100%; width: 100%; position: absolute; } .preview-container { flex: 1; display: flex; flex-direction: column; overflow: hidden; display: none; } #preview { flex: 1; width: 100%; border: none; background-color: white; } /* Console panel */ .console-panel { height: 200px; background-color: #1a1a24; border-top: 1px solid #2d2d3a; display: flex; flex-direction: column; overflow: hidden; display: none; } .console-header { display: flex; justify-content: space-between; align-items: center; padding: 8px 15px; background-color: #252836; border-bottom: 1px solid #3a3f4b; } .console-header h3 { font-size: 0.95rem; color: var(--primary); display: flex; align-items: center; gap: 8px; } .console-actions { display: flex; gap: 8px; } .console-content { flex: 1; padding: 10px; overflow-y: auto; font-family: monospace; font-size: 0.85rem; line-height: 1.4; } .console-log { padding: 5px 0; border-bottom: 1px solid #2d2d3a; color: #bdc3c7; } .console-log.error { color: #e74c3c; } .console-log.warn { color: #f39c12; } .console-log.info { color: #3498db; } /* Settings panel */ .settings-panel { display: none; padding: 15px; background-color: #252836; overflow-y: auto; } .settings-group { margin-bottom: 25px; } .settings-group h3 { margin-bottom: 15px; color: var(--secondary); font-size: 1rem; display: flex; align-items: center; gap: 8px; } .settings-group h3 i { font-size: 0.9rem; } .setting-item { margin-bottom: 15px; } .setting-item label { display: block; margin-bottom: 5px; font-size: 0.85rem; color: #bdc3c7; } select, input { width: 100%; padding: 8px 10px; background: #2c3e50; border: 1px solid #3a3f4b; border-radius: 4px; color: white; font-size: 0.85rem; } .checkbox-container { display: flex; align-items: center; gap: 10px; } .checkbox-container input { width: 18px; height: 18px; } /* Footer */ footer { display: flex; justify-content: space-between; align-items: center; padding: 0 15px; height: var(--footer-height); background: #252836; border-top: 1px solid #3a3f4b; font-size: 0.75rem; color: var(--medium); z-index: 800; } .status { display: flex; align-items: center; gap: 10px; } .status-indicator { width: 10px; height: 10px; border-radius: 50%; background-color: var(--success); } .status-indicator.idle { background-color: var(--warning); } .footer-controls { display: flex; gap: 15px; } .footer-btn { background: none; border: none; color: #bdc3c7; cursor: pointer; font-size: 0.9rem; display: flex; align-items: center; gap: 5px; transition: color 0.3s ease; } .footer-btn:hover { color: var(--primary); } .footer-btn.active { color: var(--primary); font-weight: bold; } /* Mobile menu */ .mobile-menu { display: flex; position: fixed; bottom: 0; left: 0; width: 100%; background: #252836; border-top: 1px solid #3a3f4b; padding: 10px; z-index: 1000; } .mobile-menu-buttons { display: flex; justify-content: space-around; width: 100%; } .mobile-btn { background: none; border: none; color: #bdc3c7; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 0.75rem; padding: 5px; } .mobile-btn.active { color: var(--primary); } .mobile-btn i { font-size: 1.2rem; } /* Responsive design */ @media (max-width: 768px) { .btn span { display: none; } .logo h1 { font-size: 1rem; } .tab { padding: 10px 15px; font-size: 0.85rem; } .footer-btn span { display: none; } .footer-controls { gap: 10px; } } @media (max-width: 480px) { :root { --header-height: 45px; --footer-height: 35px; } .logo h1 { font-size: 0.9rem; } .btn { padding: 7px; min-width: 35px; } .tab { padding: 8px 12px; font-size: 0.8rem; } } /* Toast notifications */ .toast { position: fixed; bottom: 70px; right: 10px; padding: 12px 20px; background: #252836; border-left: 4px solid var(--primary); border-radius: 4px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); z-index: 1200; display: flex; align-items: center; gap: 10px; transform: translateX(150%); transition: transform 0.3s ease; max-width: 90%; } .toast.show { transform: translateX(0); } .toast.success { border-left-color: var(--success); } .toast.error { border-left-color: var(--danger); } .toast.warning { border-left-color: var(--warning); }