/* Nukumizu Console — shared UI primitives. Components may add scoped styles, but everything reusable lives here. */ * { margin: 0; padding: 0; box-sizing: border-box; } html, body { height: 100%; } body { font-family: var(--font-ui); font-size: 14px; line-height: 1.5; letter-spacing: -0.01em; color: var(--text); background: var(--bg-grad) fixed; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; transition: background 0.25s ease, color 0.25s ease; } #app { min-height: 100vh; } ::selection { background: var(--accent-soft); } a { color: var(--accent); text-decoration: none; } button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; } input, select, textarea { font: inherit; color: inherit; } h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; color: var(--text); } ::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 999px; border: 3px solid transparent; background-clip: content-box; } ::-webkit-scrollbar-thumb:hover { background: var(--muted); background-clip: content-box; border: 3px solid transparent; } ::-webkit-scrollbar-track { background: transparent; } /* --- Page scaffolding --------------------------------------------------- */ .page { padding: 34px 40px 60px; max-width: 1180px; margin: 0 auto; } .page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; } .page-head .eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; } .page-head h1 { font-size: 30px; line-height: 1.12; } .page-head .lead { margin-top: 6px; color: var(--text-2); font-size: 14px; max-width: 620px; } .head-actions { display: flex; gap: 10px; align-items: center; flex: none; } .section-title { font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: var(--text-2); margin: 26px 0 12px; } .mono { font-family: var(--font-mono); font-size: 0.92em; } /* --- Buttons ------------------------------------------------------------ */ .btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 15px; border-radius: var(--r-m); font-size: 14px; font-weight: 500; line-height: 1.2; border: 1px solid transparent; background: var(--surface-3); color: var(--text); transition: background 0.15s ease, border-color 0.15s ease, transform 0.08s ease, opacity 0.15s ease, box-shadow 0.15s ease; white-space: nowrap; user-select: none; } .btn:hover { background: var(--surface-hover); } .btn:active { transform: translateY(1px); } .btn:disabled { opacity: 0.45; cursor: not-allowed; } .btn-primary { background: var(--accent); color: var(--accent-contrast); } .btn-primary:hover { background: var(--accent-strong); } .btn-danger { background: var(--bad-soft); color: var(--bad); } .btn-danger:hover { background: color-mix(in srgb, var(--bad) 16%, transparent); } .btn-ghost { background: transparent; color: var(--text-2); border-color: var(--line); } .btn-ghost:hover { background: var(--surface-3); color: var(--text); } .btn-sm { padding: 5px 11px; font-size: 13px; border-radius: var(--r-s); } .btn-icon { width: 34px; height: 34px; padding: 0; border-radius: 50%; } .icon-btn { width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 50%; color: var(--text-2); font-size: 15px; transition: background 0.15s ease, color 0.15s ease; } .icon-btn:hover { background: var(--surface-3); color: var(--text); } .icon-btn.danger:hover { background: var(--bad-soft); color: var(--bad); } /* --- Cards -------------------------------------------------------------- */ .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow-1); } .card + .card { margin-top: 18px; } /* Cards inside a grid are spaced by `gap`. Without this the stacked-card rule above would inset every card but the first, leaving the first one sticking up by 18px. */ .grid-2 > .card, .grid-3 > .card { margin-top: 0; } .card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); } .card-head h3 { font-size: 16px; } .card-head .hint { color: var(--text-3); font-size: 12.5px; margin-top: 2px; } .card-body { padding: 20px; } /* --- Forms -------------------------------------------------------------- */ .field { display: flex; flex-direction: column; gap: 6px; min-width: 0; } .field > label { font-size: 12.5px; font-weight: 600; letter-spacing: 0.01em; color: var(--text-2); } .field > label .required { color: var(--bad); margin-left: 2px; } .field .help { font-size: 12px; color: var(--text-3); } .input, .select, .textarea { width: 100%; padding: 9px 12px; background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: var(--r-s); color: var(--text); transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease; } .input:hover, .select:hover, .textarea:hover { border-color: var(--muted); } .input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: var(--surface); } .textarea { resize: vertical; min-height: 84px; line-height: 1.55; font-family: var(--font-mono); font-size: 13px; tab-size: 4; } .select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%); background-position: calc(100% - 17px) 55%, calc(100% - 12px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 30px; cursor: pointer; } .field input[type="color"] { padding: 2px; height: 38px; } .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; } .form-grid .span-2 { grid-column: span 2; } .form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; } /* --- Switch ------------------------------------------------------------- */ .switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; } .switch input { position: absolute; opacity: 0; width: 0; height: 0; } .switch .track { width: 40px; height: 24px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--line-strong); position: relative; transition: background 0.18s ease, border-color 0.18s ease; flex: none; } .switch .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform 0.18s ease; } .switch input:checked + .track { background: var(--accent); border-color: var(--accent); } .switch input:checked + .track::after { transform: translateX(16px); } .switch input:focus-visible + .track { box-shadow: 0 0 0 3px var(--accent-soft); } .switch .switch-label { font-size: 13px; color: var(--text-2); } .switch input:checked ~ .switch-label { color: var(--text); } /* --- Badges / dots ------------------------------------------------------- */ .badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--r-pill); font-size: 12px; font-weight: 600; line-height: 1.4; white-space: nowrap; } .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--muted); } .badge-online, .b-online .dot { background: var(--ok-soft); color: var(--ok); } .badge-online .dot { background: var(--ok); } .badge-offline, .b-offline .dot { background: var(--surface-3); color: var(--text-3); } .badge-offline .dot { background: var(--muted); } .badge-warn { background: var(--warn-soft); color: var(--warn); } .badge-danger { background: var(--bad-soft); color: var(--bad); } .badge-accent { background: var(--accent-soft); color: var(--accent); } /* --- Stat / metric ------------------------------------------------------- */ .metric { display: flex; flex-direction: column; gap: 2px; } .metric .m-label { font-size: 12px; color: var(--text-3); font-weight: 500; } .metric .m-value { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; } .metric .m-value small { font-size: 12px; font-weight: 500; color: var(--text-3); } /* --- Meter (soft progress) ----------------------------------------------- */ .meter { height: 5px; border-radius: 999px; background: var(--surface-3); overflow: hidden; } .meter > i { display: block; height: 100%; border-radius: 999px; background: var(--accent); transition: width 0.3s ease; } .meter > i.warn { background: var(--warn); } .meter > i.bad { background: var(--bad); } .meter > i.ok { background: var(--ok); } /* --- Server list --------------------------------------------------------- */ .grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } .grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } @media (max-width: 980px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form-grid { grid-template-columns: 1fr; } } @media (max-width: 720px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } } .server-card { display: flex; flex-direction: column; gap: 14px; padding: 18px 18px 16px; cursor: default; } .server-card .row-1 { display: flex; align-items: flex-start; gap: 12px; } .server-card .row-2 { display: flex; justify-content: space-between; gap: 10px; } .server-card .sv-name { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .server-card .sv-uuid { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-3); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; } .server-card .row-3 { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; } /* --- Members / options list ---------------------------------------------- */ .opt-list { display: flex; flex-direction: column; } .opt-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; border-bottom: 1px solid var(--line); } .opt-row:last-child { border-bottom: 0; } .opt-row .who { display: flex; flex-direction: column; min-width: 0; } .opt-row .who .id { font-family: var(--font-mono); font-size: 14px; font-weight: 600; } .opt-row .who .sub { font-size: 12px; color: var(--text-3); margin-top: 2px; } .opt-row .toggles { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; } .chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: var(--r-pill); font-size: 11.5px; font-weight: 600; background: var(--surface-3); color: var(--text-2); letter-spacing: 0.02em; text-transform: uppercase; } /* --- Empty / skeleton ----------------------------------------------------- */ .empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 48px 20px; color: var(--text-3); text-align: center; } .empty .e-icon { font-size: 30px; opacity: 0.5; } /* --- Toolbar --------------------------------------------------------------- */ .toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; } .toolbar .spacer { flex: 1; } .search { position: relative; flex: 1; min-width: 200px; max-width: 340px; } .search .icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; font-size: 13px; } .search input { width: 100%; padding: 8px 12px 8px 32px; background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: var(--r-pill); transition: border-color 0.15s ease, box-shadow 0.15s ease; } .search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); } /* --- Modal ------------------------------------------------------------------ */ .modal-mask { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-start; justify-content: center; padding: 10vh 20px 40px; background: rgba(12, 14, 18, 0.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade-in 0.18s ease; overflow-y: auto; } .modal { width: 100%; max-width: 480px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow-3); animation: rise 0.22s cubic-bezier(0.2, 0.9, 0.3, 1); } .modal.wide { max-width: 640px; } .modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 14px; } .modal-head h3 { font-size: 17px; } .modal-body { padding: 4px 20px 8px; } .modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 20px 18px; } /* --- Toasts ------------------------------------------------------------------ */ .toasts { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 120; display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: none; width: min(420px, calc(100vw - 32px)); } .toast { pointer-events: auto; display: flex; align-items: flex-start; gap: 11px; width: 100%; padding: 12px 15px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-3); font-size: 13.5px; animation: toast-in 0.28s cubic-bezier(0.2, 0.9, 0.3, 1); } .toast .t-icon { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; color: #fff; background: var(--muted); } .toast.success .t-icon { background: var(--ok); } .toast.error .t-icon { background: var(--bad); } .toast.info .t-icon { background: var(--accent); } .toast.warn .t-icon { background: var(--warn); } .toast .t-msg { flex: 1; line-height: 1.45; padding-top: 2px; word-break: break-word; } .toast.leaving { animation: toast-out 0.25s ease forwards; } /* --- Animations -------------------------------------------------------------- */ @keyframes fade-in { from { opacity: 0; } to { opacity: 1; } } @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } } @keyframes toast-in { from { opacity: 0; transform: translateY(-16px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } } @keyframes toast-out { to { opacity: 0; transform: translateY(-14px) scale(0.97); } } @keyframes spin { to { transform: rotate(360deg); } } .spinner { display: inline-block; width: 18px; height: 18px; border: 2px solid var(--line-strong); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.7s linear infinite; } /* route transition */ .fade-switch-enter-active, .fade-switch-leave-active { transition: opacity 0.16s ease, transform 0.16s ease; } .fade-switch-enter-from { opacity: 0; transform: translateY(6px); } .fade-switch-leave-to { opacity: 0; }