/* Proxmox VE-inspired dark theme for VM Bench */ :root { --bg: #161616; --panel: #1e1e1e; --border: #3a3a3a; --text: #e0e0e0; --muted: #999; --accent: #f48024; /* Proxmox orange */ --accent-alt: #3892d5; /* blue accent */ --green: #54b948; --red: #e8524a; --yellow: #e5a72e; --radius: 4px; --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; } * { box-sizing: border-box; margin: 0; padding: 0; } body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 13px; line-height: 1.5; min-height: 100vh; display: flex; flex-direction: column; } header { background: var(--panel); border-bottom: 2px solid var(--accent); padding: 0.75rem 1.5rem; display: flex; align-items: baseline; gap: 1rem; } header .logo { font-size: 1.2rem; font-weight: 700; color: var(--accent); } header .sub { font-size: 0.8rem; color: var(--muted); } footer { margin-top: auto; padding: 0.5rem 1.5rem; font-size: 0.75rem; color: var(--muted); display: flex; justify-content: space-between; border-top: 1px solid var(--border); background: var(--panel); } .container { max-width: 760px; margin: 0 auto; padding: 2rem 1rem; width: 100%; } /* Panels */ .panel { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.5rem; } .panel h2 { font-size: 1rem; color: var(--accent); margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); } .poll-panel { text-align: center; } /* Forms */ .form-group { margin-bottom: 1rem; } label { display: block; margin-bottom: 0.25rem; font-size: 0.8rem; color: var(--muted); } input, select, button, textarea { width: 100%; padding: 0.5rem 0.75rem; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-family: inherit; font-size: 0.85rem; transition: border-color 0.15s; } input:focus, select:focus { border-color: var(--accent); outline: none; } .hint { display: block; font-size: 0.7rem; color: var(--muted); margin-top: 0.25rem; } .hidden { display: none !important; } .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; } @media (max-width: 520px) { .row { grid-template-columns: 1fr; } } /* Buttons */ button, .btn { display: inline-block; padding: 0.5rem 1.25rem; font-weight: 600; font-size: 0.85rem; cursor: pointer; text-decoration: none; border-radius: var(--radius); transition: opacity 0.15s; } button, .btn { background: var(--accent); color: #fff; border: none; } button:hover, .btn:hover { opacity: 0.85; } .btn-secondary, button.btn-secondary { background: var(--border); color: var(--text); } .btn-row { display: flex; gap: 0.75rem; margin-top: 1rem; } /* Tables */ table { width: 100%; border-collapse: collapse; margin: 0.75rem 0; } td { padding: 0.4rem 0.6rem; border-bottom: 1px solid var(--border); font-size: 0.85rem; } td:first-child { color: var(--muted); width: 35%; } td:last-child { font-weight: 500; } /* Progress bar */ .progress-bar { height: 1.25rem; background: var(--bg); border-radius: var(--radius); overflow: hidden; margin: 1rem 0; } .progress-fill { height: 100%; background: var(--accent); transition: width 0.4s ease; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700; color: #fff; min-width: 2.5rem; } /* Badges */ .badge { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 3px; font-size: 0.75rem; font-weight: 600; margin-bottom: 0.75rem; } .badge-queued { background: #3b3410; color: var(--yellow); } .badge-running { background: #1e3a5f; color: var(--accent-alt); } .badge-completed { background: #1a3a1a; color: var(--green); } .badge-failed { background: #3a1a1a; color: var(--red); } /* Spinner */ .spinner { display: inline-block; width: 0.85rem; height: 0.85rem; border: 2px solid var(--border); border-top-color: currentColor; border-radius: 50%; animation: spin 0.6s linear infinite; vertical-align: middle; margin-right: 0.25rem; } @keyframes spin { to { transform: rotate(360deg); } } /* Alerts */ .error { background: #3a1a1a; border: 1px solid var(--red); color: var(--red); padding: 0.6rem 0.75rem; border-radius: var(--radius); font-size: 0.85rem; } .success { background: #1a3a1a; border: 1px solid var(--green); color: var(--green); padding: 0.6rem 0.75rem; border-radius: var(--radius); } .error-panel h2 { color: var(--red); } /* Misc */ .dim { color: var(--muted); } .confirm-text { color: var(--muted); font-size: 0.85rem; margin: 0.75rem 0; } code { background: var(--bg); padding: 0.1rem 0.4rem; border-radius: 2px; font-size: 0.8rem; }