/* Global Styles */ :root { --primary-color: #6366f1; --primary-dark: #4f46e5; --secondary-color: #8b5cf6; --success-color: #10b981; --warning-color: #f59e0b; --danger-color: #ef4444; --text-primary: #1f2937; --text-secondary: #6b7280; --bg-primary: #ffffff; --bg-secondary: #f9fafb; --bg-tertiary: #f3f4f6; --border-color: #e5e7eb; --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05); --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1); --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1); --radius-sm: 0.375rem; --radius-md: 0.5rem; --radius-lg: 0.75rem; } * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif; background-color: var(--bg-secondary); color: var(--text-primary); line-height: 1.6; } /* Layout */ .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 260px; background: var(--bg-primary); border-right: 1px solid var(--border-color); padding: 1.5rem; overflow-y: auto; z-index: 100; } .logo { display: flex; align-items: center; gap: 0.75rem; font-size: 1.25rem; font-weight: 700; margin-bottom: 2rem; color: var(--primary-color); } .logo-icon { font-size: 1.5rem; } .sidebar ul { list-style: none; } .sidebar ul li { margin-bottom: 0.5rem; } .sidebar ul li a { display: block; padding: 0.75rem 1rem; color: var(--text-secondary); text-decoration: none; border-radius: var(--radius-md); transition: all 0.2s ease; } .sidebar ul li a:hover, .sidebar ul li a.active { background: var(--bg-tertiary); color: var(--primary-color); } .sidebar-footer { margin-top: auto; padding-top: 2rem; border-top: 1px solid var(--border-color); } .built-with { display: block; padding: 0.5rem; text-align: center; color: var(--text-secondary); text-decoration: none; font-size: 0.875rem; transition: color 0.2s ease; } .built-with:hover { color: var(--primary-color); } .main-content { margin-left: 260px; padding: 2rem; min-height: 100vh; } /* Header */ .dashboard-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; } .dashboard-header h1 { font-size: 2rem; font-weight: 700; } .status-indicator { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; background: var(--bg-primary); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); } .status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-secondary); animation: pulse 2s infinite; } .status-dot.connected { background: var(--success-color); } .status-dot.error { background: var(--danger-color); } .status-dot.disconnected { background: var(--warning-color); } @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } } /* Buttons */ .btn-primary, .btn-secondary, .btn-danger { padding: 0.625rem 1.25rem; border: none; border-radius: var(--radius-md); font-size: 0.875rem; font-weight: 500; cursor: pointer; transition: all 0.2s ease; display: inline-flex; align-items: center; gap: 0.5rem; } .btn-primary { background: var(--primary-color); color: white; } .btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); } .btn-secondary { background: var(--bg-tertiary); color: var(--text-primary); border: 1px solid var(--border-color); } .btn-secondary:hover { background: var(--bg-secondary); transform: translateY(-1px); box-shadow: var(--shadow-sm); } .btn-danger { background: var(--danger-color); color: white; } .btn-danger:hover { background: #dc2626; transform: translateY(-1px); box-shadow: var(--shadow-md); } /* Cards */ .stat-card, .config-card, .metric-card, .sentiment-card { background: var(--bg-primary); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); transition: all 0.2s ease; } .stat-card:hover, .config-card:hover, .metric-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); } /* Forms */ input[type="text"], input[type="number"], input[type="range"], input[type="url"], input[type="password"], textarea, select { width: 100%; padding: 0.625rem 0.875rem; border: 1px solid var(--border-color); border-radius: var(--radius-md); font-size: 0.875rem; background: var(--bg-primary); transition: all 0.2s ease; } input:focus, textarea:focus, select:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1); } /* Tooltips */ .tooltip { position: relative; cursor: help; font-size: 0.875rem; } .tooltip::after { content: attr(data-tooltip); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); background: var(--text-primary); color: white; padding: 0.375rem 0.625rem; border-radius: var(--radius-sm); font-size: 0.75rem; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.2s ease; z-index: 1000; } .tooltip:hover::after { opacity: 1; } /* Notifications */ .notification { position: fixed; top: 1rem; right: 1rem; padding: 1rem 1.5rem; border-radius: var(--radius-md); color: white; font-weight: 500; z-index: 1000; animation: slideIn 0.3s ease; } .notification.success { background: var(--success-color); } .notification.error { background: var(--danger-color); } .notification.warning { background: var(--warning-color); } @keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } } /* Responsive */ @media (max-width: 768px) { .sidebar { transform: translateX(-100%); transition: transform 0.3s ease; } .sidebar.open { transform: translateX(0); } .main-content { margin-left: 0; padding: 1rem; } .dashboard-header { flex-direction: column; gap: 1rem; align-items: flex-start; } } @media (max-width: 480px) { .main-content { padding: 0.75rem; } .stats-grid { grid-template-columns: 1fr; } }