/* Reset and Base Styles */ * { margin: 0; padding: 0; box-sizing: border-box; } :root { /* Login-specific vars */ --login-bg-gradient: linear-gradient(135deg, var(--bg0) 0%, var(--bg1) 50%, var(--bg0) 100%); /* Gruvbox Dark Color Palette */ --bg0: #282828; --bg1: #3c3836; --bg2: #504945; --bg3: #665c54; --bg4: #7c6f64; --fg0: #fbf1c7; --fg1: #ebdbb2; --fg2: #d5c4a1; --fg3: #bdae93; --fg4: #a89984; --red: #cc241d; --red-light: #fb4934; --green: #98971a; --green-light: #b8bb26; --yellow: #d79921; --yellow-light: #fabd2f; --blue: #458588; --blue-light: #83a598; --purple: #b16286; --purple-light: #d3869b; --aqua: #689d6a; --aqua-light: #8ec07c; --orange: #d65d0e; --orange-light: #fe8019; /* Theme Mapping */ --primary: var(--orange); --primary-dark: var(--orange); --primary-light: var(--orange-light); --secondary: var(--bg4); --success: var(--green); --warning: var(--yellow); --danger: var(--red); --info: var(--blue); /* Background Colors */ --bg-primary: var(--bg0); --bg-secondary: var(--bg1); --bg-sidebar: #1d2021; --bg-card: var(--bg1); --bg-hover: var(--bg2); /* Text Colors */ --text-primary: var(--fg1); --text-secondary: var(--fg3); --text-light: var(--fg4); --text-white: var(--fg0); /* Borders */ --border-color: var(--bg2); --border-radius: 8px; --border-radius-sm: 4px; /* Spacing System */ --spacing-xs: 0.25rem; --spacing-sm: 0.5rem; --spacing-md: 1rem; --spacing-lg: 1.5rem; --spacing-xl: 2rem; /* Shadows */ --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.2); --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3); --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.4); --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5); } body { font-family: 'Inter', -apple-system, sans-serif; background-color: var(--bg-primary); color: var(--text-primary); line-height: 1.6; overflow-x: hidden; } /* Login Screen Styles */ .login-container { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: var(--login-bg-gradient); display: flex; align-items: center; justify-content: center; z-index: 10000; padding: 2rem; backdrop-filter: blur(20px); } .login-card { background: var(--bg1); border-radius: 24px; padding: 4rem 2.5rem 3rem; width: 100%; max-width: 440px; box-shadow: var(--shadow-lg); border: 1px solid var(--bg2); text-align: center; animation: slideUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); position: relative; overflow: hidden; } @keyframes slideUp { from { opacity: 0; transform: translateY(30px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } } .login-header { margin-bottom: 3rem; } .login-logo { width: 100px; height: 100px; max-width: 35vw; margin: 0 auto 1.25rem; border-radius: 16px; box-shadow: var(--shadow); object-fit: contain; image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges; } .login-logo-fallback { width: 80px; height: 80px; margin: 0 auto 1.25rem; border-radius: 16px; background: var(--bg2); display: flex; align-items: center; justify-content: center; color: var(--orange); font-size: 2rem; box-shadow: var(--shadow); } .login-header h1 { font-size: 1.75rem; font-weight: 800; color: var(--fg0); margin-bottom: 0.5rem; letter-spacing: -0.025em; } .login-subtitle { color: var(--fg3); font-size: 1rem; opacity: 0.8; } .login-form { display: flex; flex-direction: column; gap: 1.5rem; } .form-group { position: relative; } .form-group label { position: absolute; top: 50%; left: 1.25rem; transform: translateY(-50%); font-size: 0.875rem; color: var(--fg3); pointer-events: none; transition: all 0.25s ease; background: transparent; padding: 0 0.375rem; z-index: 2; font-weight: 500; display: flex; align-items: center; gap: 0.5rem; } .form-group input:focus ~ label, .form-group input:not(:placeholder-shown) ~ label { top: 0; left: 0.875rem; font-size: 0.75rem; color: var(--orange); font-weight: 600; transform: translateY(-50%); background: linear-gradient(180deg, var(--bg1) 50%, var(--bg0) 50%); } .form-group input { padding: 1rem 1.25rem; background: var(--bg0); border: 2px solid var(--bg3); border-radius: 12px; font-size: 1rem; color: var(--fg1); transition: all 0.3s; width: 100%; box-sizing: border-box; } .form-group input:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(214, 93, 14, 0.2); outline: none; } .login-btn { background: linear-gradient(135deg, var(--orange) 0%, var(--orange-light) 100%); border: none; padding: 1rem 2rem; border-radius: 12px; font-size: 1rem; font-weight: 700; color: var(--bg0); cursor: pointer; transition: all 0.3s; box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; gap: 0.5rem; text-transform: uppercase; letter-spacing: 0.05em; margin: 0 auto; max-width: 200px; } .login-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); } .login-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; } .login-footer { margin-top: 2rem; padding-top: 1.75rem; border-top: 1px solid var(--bg2); } .login-footer p { color: var(--fg4); font-size: 0.875rem; } .login-footer code { background: var(--bg2); color: var(--aqua-light); padding: 0.125rem 0.375rem; border-radius: 4px; font-size: 0.85rem; } .error-message { background: rgba(204, 36, 29, 0.15); border: 1px solid var(--red); border-radius: 8px; padding: 1rem; margin-top: 1rem; display: flex; align-items: center; gap: 0.75rem; color: var(--red-light); } .error-message i { font-size: 1.125rem; } /* Responsive Login */ @media (max-width: 480px) { .login-card { padding: 2rem 1.5rem; margin: 1rem; } .login-logo, .login-logo-fallback { width: 64px; height: 64px; } } /* Utils */ .text-center { text-align: center; } .whitespace-nowrap { white-space: nowrap; } .code-sm { font-family: monospace; font-size: 0.8rem; background: var(--bg-primary); color: var(--aqua-light); padding: 2px 4px; border-radius: 4px; } /* Dashboard Layout */ .dashboard-container { display: flex; min-height: 100vh; } /* Sidebar */ .sidebar { width: 260px; background-color: var(--bg-sidebar); color: var(--text-white); position: fixed; height: 100vh; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); z-index: 1000; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; } .sidebar.collapsed { width: 80px; } .sidebar-header { padding: 0 var(--spacing-lg); display: flex; align-items: center; justify-content: space-between; height: 70px; border-bottom: 1px solid var(--bg2); } .sidebar-toggle { background: var(--bg2); border: none; color: var(--fg1); width: 32px; height: 32px; border-radius: 4px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; opacity: 0.8; } .sidebar-toggle:hover { background: var(--bg3); color: var(--fg0); opacity: 1; } .sidebar.collapsed .sidebar-header { justify-content: center; padding: 0; } .sidebar.collapsed .logo { display: none; } .sidebar.collapsed .sidebar-toggle { opacity: 1; } .logo { display: flex; align-items: center; gap: 0.75rem; font-size: 1.25rem; font-weight: 800; color: var(--orange-light); letter-spacing: -0.025em; overflow: hidden; white-space: nowrap; } .sidebar-logo { width: 32px; height: 32px; border-radius: 6px; object-fit: contain; flex-shrink: 0; box-shadow: 0 2px 8px rgba(254, 128, 25, 0.3); image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges; } .sidebar.collapsed .sidebar-logo { width: 40px; height: 40px; } .logo-fallback { color: var(--orange); font-size: 1.5rem; min-width: 24px; opacity: 0; transition: opacity 0.2s; } .sidebar-logo[src=""] + .logo-fallback, .sidebar-logo:not([src]) + .logo-fallback { opacity: 1; } /* Legacy icon fallback removed - logo replaces */ .sidebar-menu { flex: 1; overflow-y: auto; padding: var(--spacing-md) 0; } .menu-section { padding-bottom: var(--spacing-md); } .menu-title { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; color: var(--fg4); padding: 0 var(--spacing-lg) var(--spacing-sm); letter-spacing: 0.1em; opacity: 0.6; } .sidebar.collapsed .menu-title { display: none; } .menu-item { display: flex; align-items: center; gap: 1rem; padding: 0.75rem var(--spacing-lg); color: var(--fg3); text-decoration: none; font-weight: 500; transition: all 0.2s; border-left: 3px solid transparent; } .menu-item i { width: 20px; text-align: center; } .menu-item:hover { color: var(--fg0); background: var(--bg1); } .menu-item.active { color: var(--fg0); background: var(--bg2); border-left-color: var(--orange); } .sidebar.collapsed .menu-item { justify-content: center; padding: 0.75rem 0; border-left: none; } .sidebar.collapsed .menu-item span { display: none; } .sidebar.collapsed .menu-item i { font-size: 1.25rem; } /* Sidebar Tooltips */ .sidebar.collapsed .menu-item::after { content: attr(data-tooltip); position: absolute; left: 100%; margin-left: 10px; background: var(--bg0); color: var(--fg1); padding: 4px 8px; border-radius: 4px; font-size: 0.75rem; opacity: 0; pointer-events: none; transition: opacity 0.2s; white-space: nowrap; z-index: 1001; border: 1px solid var(--bg2); } .sidebar.collapsed .menu-item:hover::after { opacity: 1; } .sidebar-footer { padding: var(--spacing-lg); border-top: 1px solid var(--bg2); display: flex; align-items: center; justify-content: space-between; min-height: 70px; background: #1d2021; } .sidebar.collapsed .sidebar-footer { justify-content: center; padding: var(--spacing-lg) 0; } .sidebar.collapsed .user-details, .sidebar.collapsed .logout-btn { display: none; } .user-info { display: flex; align-items: center; gap: 0.75rem; overflow: hidden; } .user-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--bg2); color: var(--fg1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; } .user-details { display: flex; flex-direction: column; overflow: hidden; } .user-name { font-size: 0.875rem; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; color: var(--fg1); } .user-role { font-size: 0.75rem; color: var(--fg4); opacity: 0.7; } .logout-btn { background: none; border: none; color: var(--fg4); cursor: pointer; font-size: 1.125rem; transition: color 0.2s; } .logout-btn:hover { color: var(--red-light); } /* Main Content Area */ .main-content { margin-left: 260px; flex: 1; min-height: 100vh; transition: all 0.3s; display: flex; flex-direction: column; background-color: var(--bg-primary); } .sidebar.collapsed ~ .main-content { margin-left: 80px; } .top-nav { height: 70px; background: var(--bg0); border-bottom: 1px solid var(--bg2); display: flex; align-items: center; justify-content: space-between; padding: 0 var(--spacing-xl); position: sticky; top: 0; z-index: 100; } .nav-left .page-title { font-size: 1.25rem; font-weight: 700; color: var(--fg0); } .nav-right { display: flex; align-items: center; gap: var(--spacing-lg); } .nav-item { display: flex; align-items: center; gap: var(--spacing-sm); color: var(--fg3); font-size: 0.875rem; cursor: pointer; transition: color 0.2s; } .nav-item:hover { color: var(--orange-light); } /* Page Content */ .page-content { padding: var(--spacing-xl); flex: 1; animation: fadeIn 0.3s ease-out; } @keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } } /* Grids */ .grid-2, .grid-3 { display: grid; gap: 1.5rem; margin-bottom: 1.5rem; } .grid-2 { grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); } .grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); } /* Stat Cards */ .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; margin-bottom: 1.5rem; } .stat-card { background: var(--bg1); padding: var(--spacing-lg); border-radius: var(--border-radius); border: 1px solid var(--bg2); box-shadow: var(--shadow-sm); display: flex; gap: 1.25rem; align-items: center; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); } .stat-card:hover { border-color: var(--orange); transform: translateY(-2px); box-shadow: var(--shadow-md); } .stat-icon { width: 48px; height: 48px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0; } .stat-icon.primary { background: rgba(214, 93, 14, 0.1); color: var(--orange); } .stat-icon.success { background: rgba(152, 151, 26, 0.1); color: var(--green-light); } .stat-icon.warning { background: rgba(215, 153, 33, 0.1); color: var(--yellow-light); } .stat-icon.danger { background: rgba(204, 36, 29, 0.1); color: var(--red-light); } .stat-content { flex: 1; display: flex; flex-direction: column; } .stat-value { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.025em; line-height: 1.2; color: var(--fg0); } .stat-label { color: var(--fg3); font-size: 0.875rem; font-weight: 500; margin-bottom: 2px; } .stat-change { font-size: 0.75rem; font-weight: 600; margin-top: 4px; } .stat-change.positive { color: var(--green-light); } .stat-change.negative { color: var(--red-light); } /* Generic Cards */ .card { background: var(--bg1); border-radius: var(--border-radius); border: 1px solid var(--bg2); box-shadow: var(--shadow-sm); margin-bottom: 1.5rem; display: flex; flex-direction: column; } .card-header { padding: 1.25rem var(--spacing-lg); border-bottom: 1px solid var(--bg2); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; } .card-actions { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; } .card-title { font-size: 1rem; font-weight: 700; color: var(--fg1); display: flex; align-items: center; gap: 0.5rem; } .card-body { padding: var(--spacing-lg); } .card-action-btn { background: none; border: none; color: var(--fg4); cursor: pointer; font-size: 1rem; transition: color 0.2s; } .card-action-btn:hover { color: var(--orange); } /* Tables */ .table-container { overflow-x: auto; } .table { width: 100%; border-collapse: collapse; } .table th { background: var(--bg2); text-align: left; padding: 0.75rem 1rem; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--fg2); border-bottom: 1px solid var(--bg3); } .table td { padding: 1rem; border-bottom: 1px solid var(--bg2); font-size: 0.875rem; color: var(--fg1); } .table tr:hover td { background-color: var(--bg2); } .table tr:last-child td { border-bottom: none; } /* Badges */ .status-badge { padding: 0.25rem 0.75rem; border-radius: 9999px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; display: inline-flex; align-items: center; gap: 0.375rem; } .status-badge.online, .status-badge.success { background: rgba(184, 187, 38, 0.2); color: var(--green-light); } .status-badge.offline, .status-badge.danger { background: rgba(251, 73, 52, 0.2); color: var(--red-light); } .status-badge.warning { background: rgba(250, 189, 47, 0.2); color: var(--yellow-light); } .badge-client { background: var(--bg2); color: var(--blue-light); padding: 2px 8px; border-radius: 6px; font-family: monospace; font-size: 0.85rem; border: 1px solid var(--bg3); } /* Role / status badges */ .badge { padding: 0.2rem 0.6rem; border-radius: 9999px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; display: inline-flex; align-items: center; gap: 0.25rem; letter-spacing: 0.03em; } .badge-success { background: rgba(184, 187, 38, 0.2); color: var(--green-light); } .badge-info { background: rgba(69, 133, 136, 0.2); color: var(--blue-light); } .badge-warning { background: rgba(250, 189, 47, 0.2); color: var(--yellow-light); } .badge-danger { background: rgba(251, 73, 52, 0.2); color: var(--red-light); } /* Charts */ .chart-container { position: relative; background: var(--bg1); border: 1px solid var(--bg2); border-radius: var(--border-radius); padding: 1.5rem; height: 350px; } .chart-container canvas { max-height: 100%; } /* Forms */ .form-control { margin-bottom: 1.25rem; } .form-control label { display: block; font-weight: 600; margin-bottom: 0.5rem; font-size: 0.875rem; color: var(--fg2); } .form-control input, .form-control textarea, .form-control select { width: 100%; background: var(--bg0); border: 1px solid var(--bg3); border-radius: 8px; padding: 0.75rem; font-family: inherit; font-size: 0.875rem; color: var(--fg1); transition: all 0.2s; } .form-control input:focus, .form-control textarea:focus, .form-control select:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 2px rgba(214, 93, 14, 0.2); } .btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.625rem 1.25rem; border-radius: 8px; font-weight: 600; font-size: 0.875rem; cursor: pointer; transition: all 0.2s; border: 1px solid transparent; } .btn-primary { background: var(--orange); color: var(--bg0); } .btn-primary:hover { background: var(--orange-light); } .btn-secondary { background: var(--bg2); border-color: var(--bg3); color: var(--fg1); } .btn-secondary:hover { background: var(--bg3); color: var(--fg0); } .btn-danger { background: var(--red); color: var(--fg0); } .btn-danger:hover { background: var(--red-light); } /* Small inline action buttons (edit, delete, copy) */ .btn-action { background: none; border: 1px solid var(--bg3); color: var(--fg3); padding: 0.35rem 0.5rem; border-radius: 6px; cursor: pointer; transition: all 0.2s; display: inline-flex; align-items: center; justify-content: center; } .btn-action:hover { background: var(--bg2); color: var(--fg0); border-color: var(--bg4); } .btn-action.danger:hover { background: rgba(251, 73, 52, 0.15); color: var(--red-light); border-color: var(--red); } .action-buttons { display: flex; gap: 0.5rem; } /* Modals */ .modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(15, 23, 42, 0.8); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 2000; opacity: 0; visibility: hidden; transition: all 0.2s; } .modal.active { opacity: 1; visibility: visible; } .modal-content { background: var(--bg1); border-radius: 16px; width: 90%; max-width: 500px; box-shadow: var(--shadow-lg); border: 1px solid var(--bg3); transform: translateY(20px); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); } .modal.active .modal-content { transform: translateY(0); } .modal-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--bg2); display: flex; justify-content: space-between; align-items: center; } .modal-title { font-size: 1.125rem; font-weight: 700; color: var(--fg0); } .modal-close { background: none; border: none; color: var(--fg4); cursor: pointer; font-size: 1.25rem; } .modal-body { padding: 1.5rem; color: var(--fg1); } .modal-footer { padding: 1.25rem 1.5rem; border-top: 1px solid var(--bg2); display: flex; justify-content: flex-end; gap: 0.75rem; } /* WebSocket Dot Pulse */ @keyframes ws-pulse { 0% { box-shadow: 0 0 0 0 rgba(184, 187, 38, 0.4); } 70% { box-shadow: 0 0 0 10px rgba(184, 187, 38, 0); } 100% { box-shadow: 0 0 0 0 rgba(184, 187, 38, 0); } } .ws-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--fg4); } .ws-dot.connected { background: var(--green-light); animation: ws-pulse 2s infinite; } .ws-dot.disconnected { background: var(--red); } .ws-dot.error { background: var(--yellow); } /* Loading Spinner */ .spinner-container { display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 2000; } .loading .spinner-container { display: block; } .spinner { width: 40px; height: 40px; border: 3px solid rgba(254, 128, 25, 0.1); border-radius: 50%; border-top-color: var(--orange); animation: spin 0.8s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } /* Provider Grid Details */ .provider-card-header .provider-info { display: flex; flex-direction: column; } .provider-id { font-size: 0.75rem; color: var(--fg4); font-weight: 600; } .provider-meta { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; } .meta-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--fg3); } .provider-card-footer { padding: 1rem 1.25rem; background: var(--bg0); border-top: 1px solid var(--bg2); display: flex; gap: 0.75rem; } .btn-sm { padding: 0.4rem 0.75rem; font-size: 0.75rem; } /* Period Selector */ .period-selector { display: flex; gap: 0.25rem; flex-wrap: wrap; } .period-selector .btn.active { background: var(--blue); color: var(--bg0); border-color: var(--blue); } .input-sm { padding: 0.35rem 0.5rem; font-size: 0.8rem; background: var(--bg1); border: 1px solid var(--bg3); border-radius: 4px; color: var(--fg1); } /* Toast Container */ .toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 3000; display: flex; flex-direction: column; gap: 0.75rem; } .toast { background: var(--bg2); border-radius: 12px; padding: 1rem; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 1rem; min-width: 300px; border-left: 4px solid var(--orange); color: var(--fg1); animation: slideIn 0.3s ease-out forwards; } @keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } } .toast.success { border-left-color: var(--green-light); } .toast.error { border-left-color: var(--red-light); } .toast.warning { border-left-color: var(--yellow-light); } .toast-content { flex: 1; } .toast-title { font-weight: 700; font-size: 0.875rem; color: var(--fg0); } .toast-message { font-size: 0.8rem; color: var(--fg3); } .toast-close { background: none; border: none; color: var(--fg4); cursor: pointer; } /* Scrollbars */ ::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-track { background: var(--bg0); } ::-webkit-scrollbar-thumb { background: var(--bg3); border-radius: 4px; } ::-webkit-scrollbar-thumb:hover { background: var(--bg4); } /* Monitoring Layout */ .monitoring-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 1.5rem; } .monitoring-stream { height: 400px; overflow-y: auto; background-color: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--border-radius); margin-top: 1rem; padding: 1rem; } .monitoring-charts { margin-top: 1.5rem; } /* Settings: Token Items */ .token-item { display: flex; gap: 0.5rem; align-items: center; background: var(--bg0); padding: 0.5rem; border-radius: 6px; border: 1px solid var(--bg2); } /* Settings: Warning Card */ .warning-card { border: 1px dashed var(--warning); background: rgba(215, 153, 33, 0.08); }