/* ============================================ BOC — Business Operations Center Enterprise Design System ============================================ */ :root { /* Brand — Landvex Blue */ --brand: #0066FF; --brand-dark: #0052CC; --brand-light: #4D94FF; --brand-glow: rgba(0, 102, 255, 0.15); /* Neutral Scale */ --neutral-0: #ffffff; --neutral-50: #f8f9fa; --neutral-100: #f1f3f5; --neutral-200: #e9ecef; --neutral-300: #dee2e6; --neutral-400: #ced4da; --neutral-500: #adb5bd; --neutral-600: #868e96; --neutral-700: #495057; --neutral-800: #343a40; --neutral-900: #212529; --neutral-1000: #0f172a; /* Semantic */ --success: #40c057; --warning: #fcc419; --danger: #fa5252; --info: #339af0; /* Surfaces */ --bg: #f5f5f7; --surface: #ffffff; --surface-hover: #f8f9fa; --sidebar-bg: #0f172a; /* Text */ --text: #1d1d1f; --text-secondary: #6B6B6B; --text-muted: #868e96; --text-inverse: #ffffff; /* Borders */ --border: rgba(0,0,0,0.08); --border-strong: #e9ecef; /* Spacing */ --space-xs: 4px; --space-sm: 8px; --space-md: 16px; --space-lg: 24px; --space-xl: 32px; --space-2xl: 48px; /* Radius */ --radius-sm: 8px; --radius-md: 14px; --radius-lg: 24px; /* Shadows */ --shadow-sm: 0 1px 2px rgba(0,0,0,0.04); --shadow-md: 0 2px 8px rgba(0,0,0,0.06); --shadow-lg: 0 8px 24px rgba(0,0,0,0.08); /* Typography */ --font-sans: -apple-system, BlinkMacSystemFont, 'Inter', 'Helvetica Neue', sans-serif; --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace; } * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: var(--font-sans); background: var(--bg); color: var(--text); line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } /* ============================================ LOGIN PAGE ============================================ */ .login-container { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg); } .login-box { background: var(--surface); padding: 48px; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; max-width: 400px; } .login-logo { width: 48px; height: 48px; background: var(--brand); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; margin-bottom: 24px; } .login-logo svg { width: 24px; height: 24px; color: white; } .login-box h1 { font-size: 24px; font-weight: 600; color: var(--text); margin-bottom: 8px; letter-spacing: -0.02em; } .login-box .subtitle { font-size: 14px; color: var(--text-secondary); margin-bottom: 32px; } .form-group { margin-bottom: 20px; } .form-group label { display: block; font-size: 14px; font-weight: 500; color: var(--text); margin-bottom: 6px; } .form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 16px; border: 1px solid var(--border-strong); border-radius: var(--radius-md); font-size: 15px; font-family: var(--font-sans); color: var(--text); background: var(--surface); transition: border-color 0.15s, box-shadow 0.15s; } .form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-glow); } .form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); } .btn-primary { width: 100%; padding: 14px; background: var(--brand); color: white; border: none; border-radius: var(--radius-md); font-size: 15px; font-weight: 600; font-family: var(--font-sans); cursor: pointer; transition: background 0.15s, transform 0.1s; } .btn-primary:hover { background: var(--brand-dark); } .btn-primary:active { transform: scale(0.98); } .btn-primary:disabled { opacity: 0.6; cursor: not-allowed; } .login-footer { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-muted); text-align: center; } .login-footer a { color: var(--brand); text-decoration: none; font-weight: 500; } .error-msg { background: #fff5f5; color: var(--danger); padding: 12px 16px; border-radius: var(--radius-md); margin-bottom: 20px; font-size: 14px; border: 1px solid rgba(250, 82, 82, 0.2); display: none; } .error-msg.show { display: block; } /* ============================================ APP LAYOUT ============================================ */ .app { display: flex; min-height: 100vh; } /* Sidebar */ .sidebar { width: 240px; background: var(--sidebar-bg); color: var(--text-inverse); display: flex; flex-direction: column; position: fixed; height: 100vh; left: 0; top: 0; z-index: 100; } .sidebar-logo { padding: 24px; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; border-bottom: 1px solid rgba(255,255,255,0.08); display: flex; align-items: center; gap: 12px; } .sidebar-logo svg { width: 28px; height: 28px; color: var(--brand); } .sidebar-nav { flex: 1; padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; } .sidebar-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-radius: var(--radius-sm); color: rgba(255,255,255,0.6); text-decoration: none; font-size: 14px; font-weight: 500; transition: all 0.15s; } .sidebar-nav a:hover { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.9); } .sidebar-nav a.active { background: var(--brand); color: white; } .sidebar-nav svg { width: 20px; height: 20px; opacity: 0.7; } .sidebar-nav a.active svg { opacity: 1; } .sidebar-footer { padding: 16px; border-top: 1px solid rgba(255,255,255,0.08); font-size: 13px; color: rgba(255,255,255,0.4); } .sidebar-footer button { width: 100%; margin-top: 12px; padding: 8px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-sm); color: rgba(255,255,255,0.6); font-size: 13px; cursor: pointer; transition: all 0.15s; } .sidebar-footer button:hover { background: rgba(255,255,255,0.1); } /* Main Content */ .main { flex: 1; margin-left: 240px; padding: 32px; max-width: 1400px; } .module-header { margin-bottom: 32px; } .module-header h1 { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; color: var(--text); margin-bottom: 8px; } .module-header .subtitle { font-size: 14px; color: var(--text-secondary); } /* ============================================ KPI CARDS ============================================ */ .kpi-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-bottom: 32px; } .kpi-card { background: var(--surface); border-radius: var(--radius-md); padding: 20px; border: 1px solid var(--border); cursor: pointer; transition: box-shadow 0.15s, transform 0.1s; } .kpi-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); } .kpi-icon { width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--brand-glow); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; } .kpi-icon svg { width: 20px; height: 20px; color: var(--brand); } .kpi-value { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; color: var(--text); margin-bottom: 4px; } .kpi-label { font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; } .kpi-trend { font-size: 12px; font-weight: 500; display: inline-flex; align-items: center; gap: 4px; } .kpi-trend.up { color: var(--success); } .kpi-trend.down { color: var(--danger); } /* ============================================ PANELS ============================================ */ .panel { background: var(--surface); border-radius: var(--radius-md); padding: 24px; border: 1px solid var(--border); margin-bottom: 24px; } .panel h3 { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; } .toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; } .toolbar h3 { margin: 0; } /* ============================================ DASHBOARD GRID ============================================ */ .dashboard-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; } /* ============================================ QUICK ACTIONS ============================================ */ .quick-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; } .btn-action { padding: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 13px; font-weight: 500; color: var(--text); cursor: pointer; transition: all 0.15s; font-family: var(--font-sans); } .btn-action:hover { background: var(--surface-hover); border-color: var(--brand); color: var(--brand); } /* ============================================ ACTIVITY FEED ============================================ */ .list-item { display: flex; justify-content: space-between; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--border); } .list-item:last-child { border-bottom: none; } .list-item-main { font-size: 14px; color: var(--text); margin-bottom: 4px; } .list-item-meta { font-size: 12px; color: var(--text-muted); } .badge { padding: 4px 10px; border-radius: 9999px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; } .badge.success { background: rgba(64, 192, 87, 0.1); color: var(--success); } .badge.warning { background: rgba(252, 196, 25, 0.1); color: #d4a017; } .badge.danger { background: rgba(250, 82, 82, 0.1); color: var(--danger); } .badge.info { background: rgba(51, 154, 240, 0.1); color: var(--info); } /* ============================================ AUTOMATION STATUS ============================================ */ .automation-grid { display: flex; flex-direction: column; gap: 12px; } .automation-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); } .automation-item:last-child { border-bottom: none; } .automation-indicator { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; } .automation-indicator.active { background: var(--success); } .automation-indicator.warning { background: var(--warning); } .automation-indicator.danger { background: var(--danger); } .automation-name { font-size: 14px; font-weight: 500; color: var(--text); flex: 1; } .automation-schedule { font-size: 12px; color: var(--text-muted); } /* ============================================ ALERTS ============================================ */ .alert { padding: 16px 20px; border-radius: var(--radius-md); font-size: 14px; margin-bottom: 16px; } .alert-critical { background: rgba(250, 82, 82, 0.06); border: 1px solid rgba(250, 82, 82, 0.15); color: var(--danger); } .alert-warning { background: rgba(252, 196, 25, 0.06); border: 1px solid rgba(252, 196, 25, 0.15); color: #d4a017; } /* ============================================ LIVE INDICATOR ============================================ */ #live-indicator { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--success); } #live-indicator::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--success); animation: pulse 2s infinite; } @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } } /* ============================================ MODAL ============================================ */ .modal { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.5); display: flex; align-items: center; justify-content: center; z-index: 300; backdrop-filter: blur(4px); } .modal-content { background: var(--surface); border-radius: var(--radius-lg); width: 100%; max-width: 480px; max-height: 90vh; overflow: auto; box-shadow: var(--shadow-lg); } .modal-header { display: flex; justify-content: space-between; align-items: center; padding: 24px 24px 0; } .modal-header h3 { font-size: 18px; font-weight: 600; } .modal-close { background: none; border: none; font-size: 24px; color: var(--text-muted); cursor: pointer; padding: 4px; line-height: 1; } .modal-close:hover { color: var(--text); } .modal-body { padding: 24px; } /* ============================================ EMPTY STATE ============================================ */ .empty-state { text-align: center; padding: 48px 24px; color: var(--text-muted); } .empty-state-icon { font-size: 32px; margin-bottom: 12px; opacity: 0.5; } /* ============================================ LOADING ============================================ */ .loading { text-align: center; padding: 24px; color: var(--text-muted); } .spinner { width: 24px; height: 24px; border: 2px solid var(--border-strong); border-top-color: var(--brand); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto 12px; } @keyframes spin { to { transform: rotate(360deg); } } /* ============================================ RESPONSIVE ============================================ */ @media (max-width: 1200px) { .kpi-grid { grid-template-columns: repeat(3, 1fr); } .dashboard-grid { grid-template-columns: 1fr; } } @media (max-width: 768px) { .sidebar { width: 100%; transform: translateX(-100%); transition: transform 0.3s; } .sidebar.open { transform: translateX(0); } .main { margin-left: 0; padding: 16px; } .kpi-grid { grid-template-columns: repeat(2, 1fr); } .quick-actions { grid-template-columns: repeat(2, 1fr); } } /* ============================================ TABLES ============================================ */ .data-table { width: 100%; border-collapse: collapse; font-size: 14px; } .data-table th { text-align: left; padding: 12px 16px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); border-bottom: 1px solid var(--border); background: var(--neutral-50); } .data-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--text); } .data-table tr:hover td { background: var(--surface-hover); } /* ============================================ BUTTONS ============================================ */ .btn-link { font-size: 13px; font-weight: 500; color: var(--brand); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; } .btn-link:hover { text-decoration: underline; } /* ============================================ SCROLLBAR ============================================ */ ::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: var(--neutral-300); border-radius: 4px; } ::-webkit-scrollbar-thumb:hover { background: var(--neutral-400); }