/* --- Reset & base --- */ *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } :root { --bg: #0f1117; --surface: #1a1d27; --surface-hover: #222633; --border: #2a2e3d; --text: #e4e6ed; --text-muted: #8b8fa3; --accent: #5b8def; --green: #34d058; --red: #ea4a5a; --orange: #f9826c; --yellow: #e3b341; } body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; padding: 1rem; } /* --- Header --- */ header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; margin-bottom: 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; } header h1 { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.02em; } #status-bar { display: flex; align-items: center; gap: 0.75rem; font-size: 0.8rem; color: var(--text-muted); } /* --- Badges --- */ .badge { display: inline-block; padding: 0.2em 0.6em; border-radius: 4px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; } .badge-running { background: rgba(52,208,88,0.15); color: var(--green); } .badge-stopped, .badge-exited { background: rgba(234,74,90,0.15); color: var(--red); } .badge-paused { background: rgba(249,130,108,0.15); color: var(--orange); } .badge-created { background: rgba(227,179,65,0.15); color: var(--yellow); } .badge-unknown { background: rgba(139,143,163,0.15); color: var(--text-muted); } /* --- Sections --- */ section { margin-bottom: 2rem; } section h2 { font-size: 1rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.75rem; padding-left: 0.25rem; } /* --- Bannière d'erreur --- */ .error-banner { background: rgba(234,74,90,0.1); border: 1px solid rgba(234,74,90,0.3); color: var(--red); padding: 0.6rem 1rem; border-radius: 6px; font-size: 0.85rem; margin-bottom: 0.75rem; } .hidden { display: none; } /* --- Grille de cartes --- */ .card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0.75rem; } /* --- Carte --- */ .card { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 1rem 1.2rem; transition: background 0.15s; } .card:hover { background: var(--surface-hover); } .card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.6rem; } .card-name { font-weight: 600; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 70%; } .card-meta { font-size: 0.78rem; color: var(--text-muted); display: flex; flex-direction: column; gap: 0.3rem; } .card-meta span { display: flex; align-items: center; gap: 0.4rem; } /* --- Barres de progression --- */ .bar-container { display: flex; align-items: center; gap: 0.5rem; } .bar-label { font-size: 0.72rem; color: var(--text-muted); min-width: 28px; } .bar-track { flex: 1; height: 6px; background: rgba(255,255,255,0.06); border-radius: 3px; overflow: hidden; } .bar-fill { height: 100%; border-radius: 3px; transition: width 0.4s ease; } .bar-fill.cpu { background: var(--accent); } .bar-fill.ram { background: var(--green); } .bar-fill.high { background: var(--orange); } .bar-fill.critical { background: var(--red); } .bar-value { font-size: 0.72rem; color: var(--text-muted); min-width: 32px; text-align: right; } /* --- Stack tag (Docker) --- */ .stack-tag { font-size: 0.7rem; background: rgba(91,141,239,0.12); color: var(--accent); padding: 0.15em 0.5em; border-radius: 3px; font-weight: 500; } /* --- Loading --- */ .loading { color: var(--text-muted); font-size: 0.85rem; padding: 1rem; } /* --- Responsive --- */ @media (max-width: 600px) { body { padding: 0.5rem; } header { flex-direction: column; gap: 0.5rem; text-align: center; } .card-grid { grid-template-columns: 1fr; } }