diff --git a/frontend/src/components/UsageBadge.css b/frontend/src/components/UsageBadge.css index 8675461..0ee296d 100644 --- a/frontend/src/components/UsageBadge.css +++ b/frontend/src/components/UsageBadge.css @@ -1,43 +1,53 @@ /** - * UsageBadge Styles + * UsageBadge Styles - Dezente Version * - * Small, visually distinct inline badge for usage indicators + * Sehr kleine, subtile Badge für Usage-Anzeige * Phase 3: Frontend Display */ .usage-badge { display: inline-block; - font-size: 0.75rem; + font-size: 0.65rem; font-weight: 500; - padding: 2px 6px; - border-radius: 4px; - margin-left: 6px; - opacity: 0.8; + padding: 2px 5px; + border-radius: 3px; + margin-left: 10px; + opacity: 0.6; font-variant-numeric: tabular-nums; white-space: nowrap; + transition: opacity 0.2s; +} + +.usage-badge:hover { + opacity: 0.9; } .usage-badge--ok { - color: var(--accent, #1D9E75); - background: rgba(29, 158, 117, 0.1); + color: var(--text3, #888); + background: rgba(136, 135, 128, 0.08); } .usage-badge--warning { color: #d97706; - background: rgba(217, 119, 6, 0.1); + background: rgba(217, 119, 6, 0.08); } .usage-badge--exceeded { color: var(--danger, #D85A30); background: rgba(216, 90, 48, 0.1); font-weight: 600; + opacity: 0.75; +} + +.usage-badge--exceeded:hover { + opacity: 1; } /* Responsive: Even smaller on mobile */ @media (max-width: 640px) { .usage-badge { - font-size: 0.7rem; + font-size: 0.6rem; padding: 1px 4px; - margin-left: 4px; + margin-left: 8px; } } diff --git a/frontend/src/pages/Analysis.jsx b/frontend/src/pages/Analysis.jsx index 6cf29aa..5e87962 100644 --- a/frontend/src/pages/Analysis.jsx +++ b/frontend/src/pages/Analysis.jsx @@ -240,8 +240,8 @@ export default function Analysis() {