/* mitmproxy Dashboard - SecuBox Theme */ .mitmproxy-dashboard { --mp-primary: #e74c3c; --mp-primary-light: #ec7063; --mp-secondary: #3498db; --mp-success: #27ae60; --mp-warning: #f39c12; --mp-danger: #c0392b; --mp-bg-dark: #0d0d12; --mp-bg-card: #141419; --mp-bg-card-hover: #1a1a22; --mp-border: rgba(255, 255, 255, 0.08); --mp-text: #e0e0e8; --mp-text-muted: #8a8a9a; --mp-gradient: linear-gradient(135deg, #e74c3c, #c0392b); font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; color: var(--mp-text); padding: 20px; max-width: 1400px; margin: 0 auto; } /* Header */ .mp-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; background: var(--mp-bg-card); border: 1px solid var(--mp-border); border-radius: 16px; margin-bottom: 20px; } .mp-logo { display: flex; align-items: center; gap: 12px; } .mp-logo-icon { width: 48px; height: 48px; background: var(--mp-gradient); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; } .mp-logo-text { font-size: 24px; font-weight: 700; color: #fff; } .mp-logo-text span { color: var(--mp-primary); } .mp-status-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 20px; font-size: 14px; font-weight: 500; } .mp-status-badge.running { background: rgba(39, 174, 96, 0.2); color: #27ae60; } .mp-status-badge.stopped { background: rgba(192, 57, 43, 0.2); color: #c0392b; } .mp-status-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 2s infinite; } @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } } /* Controls */ .mp-controls { display: flex; align-items: center; gap: 10px; padding: 16px 20px; background: var(--mp-bg-card); border: 1px solid var(--mp-border); border-radius: 12px; margin-bottom: 20px; flex-wrap: wrap; } .mp-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border: none; border-radius: 8px; font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.2s; background: rgba(255, 255, 255, 0.05); color: var(--mp-text); } .mp-btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); } .mp-btn:disabled { opacity: 0.5; cursor: not-allowed; } .mp-btn-success { background: var(--mp-success); color: white; } .mp-btn-danger { background: var(--mp-danger); color: white; } .mp-btn-primary { background: var(--mp-primary); color: white; } .mp-btn-secondary { background: var(--mp-secondary); color: white; } /* Quick Stats Grid */ .mp-quick-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 20px; } .mp-quick-stat { background: var(--mp-bg-card); border: 1px solid var(--mp-border); border-radius: 12px; padding: 20px; position: relative; overflow: hidden; } .mp-quick-stat::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--stat-gradient, var(--mp-gradient)); } .mp-quick-stat-header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; } .mp-quick-stat-icon { font-size: 20px; } .mp-quick-stat-label { font-size: 13px; color: var(--mp-text-muted); text-transform: uppercase; letter-spacing: 0.5px; } .mp-quick-stat-value { font-size: 28px; font-weight: 700; color: #fff; } .mp-quick-stat-sub { font-size: 12px; color: var(--mp-text-muted); margin-top: 4px; } /* Cards */ .mp-card { background: var(--mp-bg-card); border: 1px solid var(--mp-border); border-radius: 12px; margin-bottom: 20px; overflow: hidden; } .mp-card-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--mp-border); } .mp-card-title { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; color: #fff; } .mp-card-title-icon { font-size: 18px; } .mp-card-badge { background: rgba(255, 255, 255, 0.1); padding: 4px 12px; border-radius: 16px; font-size: 12px; color: var(--mp-text-muted); } .mp-card-body { padding: 20px; } /* Grid layouts */ .mp-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 20px; margin-bottom: 20px; } /* Host list */ .mp-hosts-list { display: flex; flex-direction: column; gap: 12px; } .mp-host-item { display: flex; align-items: center; gap: 12px; padding: 12px; background: rgba(255, 255, 255, 0.02); border-radius: 8px; transition: background 0.2s; } .mp-host-item:hover { background: rgba(255, 255, 255, 0.05); } .mp-host-icon { width: 36px; height: 36px; background: var(--mp-gradient); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; } .mp-host-info { flex: 1; min-width: 0; } .mp-host-name { font-size: 14px; font-weight: 500; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .mp-host-count { font-size: 12px; color: var(--mp-text-muted); } .mp-host-bar { width: 60px; height: 4px; background: rgba(255, 255, 255, 0.1); border-radius: 2px; overflow: hidden; } .mp-host-bar-fill { height: 100%; background: var(--mp-gradient); border-radius: 2px; transition: width 0.3s; } /* CA Certificate card */ .mp-ca-card { display: flex; align-items: center; gap: 16px; padding: 20px; background: rgba(255, 255, 255, 0.02); border-radius: 12px; } .mp-ca-icon { width: 56px; height: 56px; background: var(--mp-secondary); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 28px; } .mp-ca-info { flex: 1; } .mp-ca-title { font-size: 16px; font-weight: 600; color: #fff; margin-bottom: 4px; } .mp-ca-status { font-size: 13px; color: var(--mp-text-muted); } .mp-ca-status.installed { color: var(--mp-success); } .mp-ca-status.not-installed { color: var(--mp-warning); } /* Empty state */ .mp-empty { text-align: center; padding: 40px 20px; color: var(--mp-text-muted); } .mp-empty-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.5; } .mp-empty-text { font-size: 16px; font-weight: 500; margin-bottom: 8px; } /* Navigation */ .mp-app-nav { display: flex; gap: 8px; margin-bottom: 20px; padding: 12px 16px; background: var(--mp-bg-card); border: 1px solid var(--mp-border); border-radius: 12px; } .mp-app-nav a { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 8px; text-decoration: none; font-size: 14px; font-weight: 500; transition: all 0.2s; color: var(--mp-text-muted); background: transparent; } .mp-app-nav a:hover { background: rgba(255, 255, 255, 0.05); color: var(--mp-text); } .mp-app-nav a.active { background: var(--mp-gradient); color: white; } /* Value update animation */ .mp-value-updated { animation: valueFlash 0.5s ease-out; } @keyframes valueFlash { 0% { color: var(--mp-primary); transform: scale(1.05); } 100% { color: inherit; transform: scale(1); } } /* Responsive */ @media (max-width: 768px) { .mp-header { flex-direction: column; gap: 16px; text-align: center; } .mp-controls { justify-content: center; } .mp-grid-2 { grid-template-columns: 1fr; } .mp-quick-stats { grid-template-columns: repeat(2, 1fr); } }