/** * Packvault admin UI — by Khalid Bin Ahsan. */ .packvault-wrap { margin: 0 0 0 -20px; @media (max-width: 782px) { margin-left: -10px; } } .packvault-boot { padding: 40px; color: #64748b; } .sa-app { --sa-ink: #0f172a; --sa-text: #334155; --sa-muted: #64748b; --sa-line: #e2e8f0; --sa-bg: #f5f7fb; --sa-card: #fff; --sa-primary: #4f46e5; --sa-primary-600: #4338ca; --sa-violet: #7c3aed; --sa-teal: #0d9488; --sa-amber: #d97706; --sa-red: #dc2626; --sa-green: #16a34a; --sa-radius: 16px; --sa-shadow: 0 1px 2px rgb(15 23 42 / 4%), 0 4px 16px rgb(15 23 42 / 5%); --sa-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #c026d3 100%); min-height: calc(100vh - 32px); background: var(--sa-bg); color: var(--sa-text); font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: 14px; line-height: 1.55; -webkit-font-smoothing: antialiased; *, *::before, *::after { box-sizing: border-box; } h1, h2, h3 { color: var(--sa-ink); margin: 0; line-height: 1.25; font-weight: 700; } h1 { font-size: 26px; letter-spacing: -0.02em; } h2 { font-size: 16px; } h3 { font-size: 15px; } p { margin: 0; font-size: 14px; } code { background: #eef2ff; color: #3730a3; padding: 1px 6px; border-radius: 6px; font-size: 12px; } a { color: var(--sa-primary); } } .sa-icon { flex-shrink: 0; &.is-spinning { animation: sa-spin 0.8s linear infinite; } } @keyframes sa-spin { to { transform: rotate(360deg); } } /* ---------- Header ---------- */ .sa-header { background: #0b1023; background-image: radial-gradient(800px 200px at 10% -40%, rgb(124 58 237 / 45%), transparent), radial-gradient(600px 220px at 90% -60%, rgb(79 70 229 / 55%), transparent); color: #fff; padding: 20px 32px 0; position: sticky; top: 32px; z-index: 20; @media (max-width: 782px) { position: static; padding: 16px 16px 0; } } .sa-header__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1200px; margin: 0 auto; } .sa-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff !important; &:focus { box-shadow: none; } } .sa-logo { display: inline-grid; place-items: center; border-radius: 12px; background: var(--sa-gradient); color: #fff; box-shadow: 0 6px 18px rgb(124 58 237 / 40%); } .sa-brand__text { display: flex; flex-direction: column; } .sa-brand__name { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; display: flex; align-items: center; gap: 8px; } .sa-brand__tag { font-size: 12px; color: #a5b4fc; } .sa-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: rgb(255 255 255 / 12%); color: #e0e7ff; &--soft { background: #eef2ff; color: var(--sa-primary-600); padding: 4px 12px; } } .sa-byline { color: #c7d2fe !important; text-decoration: none; font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgb(255 255 255 / 14%); transition: background 0.15s; strong { color: #fff; } &:hover { background: rgb(255 255 255 / 8%); } @media (max-width: 600px) { display: none; } } .sa-nav { display: flex; gap: 4px; max-width: 1200px; margin: 18px auto 0; overflow-x: auto; scrollbar-width: none; } .sa-nav__item { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px 12px; color: #a5b4fc !important; text-decoration: none; font-weight: 600; font-size: 13px; border-radius: 10px 10px 0 0; white-space: nowrap; transition: color 0.15s, background 0.15s; &:hover { color: #fff !important; background: rgb(255 255 255 / 6%); } &:focus { box-shadow: none; outline: 2px solid #a5b4fc; outline-offset: -2px; } &.is-active { color: var(--sa-ink) !important; background: var(--sa-bg); } } /* ---------- Layout ---------- */ .sa-main { max-width: 1200px; margin: 0 auto; padding: 28px 32px 48px; @media (max-width: 782px) { padding: 20px 16px 40px; } } .sa-page { display: flex; flex-direction: column; gap: 20px; animation: sa-fade 0.25s ease; } @keyframes sa-fade { from { opacity: 0; transform: translateY(4px); } } .sa-page__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; .sa-muted { margin-top: 4px; } } .sa-muted { color: var(--sa-muted); font-size: 13px; } .sa-text-accent { color: var(--sa-violet); font-weight: 600; } .sa-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; &--end { justify-content: flex-end; } &--center { justify-content: center; } } .sa-spacer { flex: 1; } .sa-grid { display: grid; gap: 16px; &--3 { grid-template-columns: repeat(3, 1fr); @media (max-width: 960px) { grid-template-columns: 1fr; } } } .sa-card { background: var(--sa-card); border: 1px solid var(--sa-line); border-radius: var(--sa-radius); box-shadow: var(--sa-shadow); padding: 22px; display: flex; flex-direction: column; gap: 16px; &--accent { border-color: #c7d2fe; background: linear-gradient(180deg, #f8faff, #fff); } } .sa-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; } .sa-error-card { border-color: #fecaca; p { color: var(--sa-red); } } .sa-skeleton { height: 260px; border-radius: var(--sa-radius); background: linear-gradient(90deg, #eef1f6 25%, #f8fafc 50%, #eef1f6 75%); background-size: 200% 100%; animation: sa-shimmer 1.2s infinite; } @keyframes sa-shimmer { to { background-position: -200% 0; } } /* ---------- Buttons ---------- */ .sa-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--sa-line); background: #fff; color: var(--sa-ink) !important; font-weight: 600; font-size: 13px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform 0.12s, box-shadow 0.15s, background 0.15s, border-color 0.15s; &:hover:not(:disabled) { border-color: #cbd5e1; box-shadow: 0 2px 8px rgb(15 23 42 / 8%); } &:active:not(:disabled) { transform: translateY(1px); } &:focus-visible { outline: 3px solid #c7d2fe; outline-offset: 1px; } &:disabled { opacity: 0.55; cursor: not-allowed; } &--sm { height: 34px; padding: 0 12px; font-size: 12px; } &--lg { height: 48px; padding: 0 22px; font-size: 14px; border-radius: 12px; } &--primary { background: var(--sa-gradient); border-color: transparent; color: #fff !important; box-shadow: 0 6px 16px rgb(79 70 229 / 30%); &:hover:not(:disabled) { border-color: transparent; box-shadow: 0 8px 22px rgb(79 70 229 / 40%); } } &--soft { background: #eef2ff; border-color: #e0e7ff; color: var(--sa-primary-600) !important; } &--danger { background: var(--sa-red); border-color: var(--sa-red); color: #fff !important; } &--ghost { background: transparent; border-color: transparent; color: var(--sa-muted) !important; } &--light { background: #fff; border-color: #fff; color: var(--sa-primary-600) !important; box-shadow: 0 8px 24px rgb(15 23 42 / 25%); } &--glass { background: rgb(255 255 255 / 14%); border-color: rgb(255 255 255 / 25%); color: #fff !important; backdrop-filter: blur(6px); &:hover:not(:disabled) { background: rgb(255 255 255 / 22%); border-color: rgb(255 255 255 / 35%); } } } .sa-icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--sa-line); background: #fff; color: var(--sa-muted); cursor: pointer; transition: all 0.15s; &:hover:not(:disabled) { color: var(--sa-ink); border-color: #cbd5e1; } &.is-danger:hover:not(:disabled) { color: var(--sa-red); border-color: #fecaca; background: #fef2f2; } &:disabled { opacity: 0.5; } } .sa-link { background: none; border: 0; padding: 0; color: var(--sa-primary); font-weight: 600; font-size: 13px; cursor: pointer; &:hover { text-decoration: underline; } &--light { color: #e0e7ff; } } /* ---------- Hero ---------- */ .sa-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 36px; border-radius: 20px; background: var(--sa-gradient); color: #fff; box-shadow: 0 18px 40px rgb(79 70 229 / 25%); &::after { content: ""; position: absolute; inset: auto -80px -140px auto; width: 360px; height: 360px; border-radius: 50%; background: rgb(255 255 255 / 10%); } h1 { color: #fff; font-size: 30px; max-width: 560px; margin: 6px 0 10px; } p { color: #e0e7ff; max-width: 580px; font-size: 15px; } @media (max-width: 782px) { grid-template-columns: 1fr; padding: 24px; h1 { font-size: 24px; } } } .sa-hero__content { position: relative; z-index: 1; } .sa-hero__actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 22px; } .sa-eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 11px; font-weight: 700; opacity: 0.85; } .sa-hero__art { position: relative; z-index: 1; padding-right: 12px; @media (max-width: 782px) { display: none; } } .sa-hero__file { width: 150px; height: 180px; border-radius: 18px; background: rgb(255 255 255 / 16%); border: 1px solid rgb(255 255 255 / 30%); backdrop-filter: blur(8px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; font-weight: 800; font-size: 18px; letter-spacing: -0.01em; transform: rotate(6deg); box-shadow: 0 20px 40px rgb(15 23 42 / 25%); animation: sa-float 5s ease-in-out infinite; } @keyframes sa-float { 50% { transform: rotate(3deg) translateY(-8px); } } /* ---------- Stats ---------- */ .sa-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; @media (max-width: 1100px) { grid-template-columns: repeat(2, 1fr); } @media (max-width: 600px) { grid-template-columns: 1fr; } } .sa-stat { --tone: var(--sa-primary); --tone-bg: #eef2ff; display: flex; gap: 14px; align-items: flex-start; text-align: left; padding: 18px; background: #fff; border: 1px solid var(--sa-line); border-radius: var(--sa-radius); box-shadow: var(--sa-shadow); font: inherit; color: inherit; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s; &:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 10px 24px rgb(15 23 42 / 8%); } &:disabled { cursor: default; } &.is-teal { --tone: var(--sa-teal); --tone-bg: #ccfbf1; } &.is-violet { --tone: var(--sa-violet); --tone-bg: #ede9fe; } &.is-amber { --tone: var(--sa-amber); --tone-bg: #fef3c7; } } .sa-stat__icon { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--tone-bg, #eef2ff); color: var(--tone, var(--sa-primary)); flex-shrink: 0; } .sa-stat__body { display: flex; flex-direction: column; min-width: 0; } .sa-stat__label { font-size: 12px; color: var(--sa-muted); font-weight: 600; } .sa-stat__value { font-size: 22px; font-weight: 800; color: var(--sa-ink); letter-spacing: -0.02em; line-height: 1.3; } .sa-stat__hint { font-size: 12px; color: var(--sa-muted); } /* ---------- Backups list ---------- */ .sa-backups { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; } .sa-backup { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin: 0; border: 1px solid var(--sa-line); border-radius: 14px; transition: border-color 0.15s, background 0.15s; &:hover { border-color: #c7d2fe; background: #fafbff; } @media (max-width: 782px) { flex-wrap: wrap; } } .sa-backup__icon { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, #eef2ff, #f5f3ff); color: var(--sa-primary); flex-shrink: 0; } .sa-backup__info { flex: 1; min-width: 0; } .sa-backup__title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .sa-backup__name { font-weight: 700; color: var(--sa-ink); font-size: 14px; } .sa-backup__meta { display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; font-size: 12px; color: var(--sa-muted); margin-top: 3px; > span { display: inline-flex; align-items: center; gap: 4px; } } .sa-backup__file { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; color: #94a3b8; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .sa-backup__actions { display: flex; gap: 8px; align-items: center; @media (max-width: 782px) { width: 100%; justify-content: flex-end; } } .sa-badge { display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #f1f5f9; color: #475569; &.is-manual { background: #eef2ff; color: var(--sa-primary-600); } &.is-schedule { background: #dcfce7; color: #15803d; } &.is-upload { background: #fae8ff; color: #a21caf; } &.is-error { background: #fee2e2; color: #b91c1c; } } .sa-chips { display: inline-flex; gap: 4px; flex-wrap: wrap; } .sa-chip { display: inline-flex; align-items: center; gap: 3px; font-size: 10px; font-weight: 600; padding: 1px 6px; border-radius: 6px; background: #f1f5f9; color: #475569; &.is-off { text-decoration: line-through; opacity: 0.5; } } .sa-empty { text-align: center; padding: 36px 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; p { color: var(--sa-muted); margin-bottom: 10px; } } .sa-empty__icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: linear-gradient(135deg, #eef2ff, #fae8ff); color: var(--sa-violet); margin-bottom: 6px; } .sa-search { display: flex; align-items: center; gap: 8px; flex: 1; max-width: 360px; height: 38px; padding: 0 12px; border: 1px solid var(--sa-line); border-radius: 10px; color: var(--sa-muted); input { border: 0 !important; box-shadow: none !important; background: transparent; flex: 1; padding: 0; min-height: 0; outline: none; } &:focus-within { border-color: var(--sa-primary); box-shadow: 0 0 0 3px #e0e7ff; } } .sa-footnote { display: flex; align-items: center; gap: 6px; color: var(--sa-muted); font-size: 12px !important; justify-content: center; } /* ---------- Forms ---------- */ .sa-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; @media (max-width: 782px) { grid-template-columns: 1fr; } } .sa-toggle { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--sa-line); border-radius: 12px; cursor: pointer; position: relative; transition: border-color 0.15s, background 0.15s; &:hover { border-color: #c7d2fe; } input { position: absolute; opacity: 0; pointer-events: none; } &.is-disabled { opacity: 0.6; cursor: not-allowed; } } .sa-toggle__icon { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #f1f5f9; color: var(--sa-muted); transition: all 0.15s; } .sa-toggle:has(input:checked) .sa-toggle__icon { background: #eef2ff; color: var(--sa-primary); } .sa-toggle__text { display: flex; flex-direction: column; flex: 1; min-width: 0; } .sa-toggle__label { font-weight: 600; color: var(--sa-ink); } .sa-toggle__help { font-size: 12px; color: var(--sa-muted); } .sa-switch { width: 40px; height: 22px; border-radius: 999px; background: #cbd5e1; position: relative; flex-shrink: 0; transition: background 0.2s; &::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 20%); transition: transform 0.2s; } } .sa-toggle input:checked + .sa-switch { background: var(--sa-primary); &::after { transform: translateX(18px); } } .sa-toggle input:focus-visible + .sa-switch { outline: 3px solid #c7d2fe; } .sa-form { display: flex; flex-direction: column; gap: 18px; transition: opacity 0.2s; &.is-muted { opacity: 0.55; } } .sa-form__row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; @media (max-width: 782px) { grid-template-columns: 1fr; } } .sa-field { display: flex; flex-direction: column; gap: 6px; } .sa-field__label { font-weight: 600; color: var(--sa-ink); font-size: 13px; } .sa-field__help { font-size: 12px; color: var(--sa-muted); } .sa-app .sa-input { width: 100%; min-height: 40px; padding: 8px 12px; border: 1px solid var(--sa-line); border-radius: 10px; background: #fff; color: var(--sa-ink); font-size: 14px; box-shadow: none; transition: border-color 0.15s, box-shadow 0.15s; &:focus { border-color: var(--sa-primary); box-shadow: 0 0 0 3px #e0e7ff; outline: none; } &--mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; } } .sa-input-group { display: flex; align-items: center; gap: 10px; .sa-input { max-width: 120px; } span { color: var(--sa-muted); } } .sa-segment { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: #f1f5f9; border-radius: 12px; align-self: flex-start; button { border: 0; background: transparent; padding: 8px 16px; border-radius: 9px; font-weight: 600; font-size: 13px; color: var(--sa-muted); cursor: pointer; &.is-active { background: #fff; color: var(--sa-primary-600); box-shadow: 0 1px 4px rgb(15 23 42 / 10%); } &:disabled { cursor: not-allowed; } } } .sa-range { width: 100%; max-width: 420px; accent-color: var(--sa-primary); } .sa-table { width: 100%; border-collapse: collapse; th, td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--sa-line); font-size: 13px; vertical-align: top; } th { width: 40%; color: var(--sa-muted); font-weight: 600; } td code { word-break: break-all; } tr:last-child th, tr:last-child td { border-bottom: 0; } } /* ---------- Callouts ---------- */ .sa-callout { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; border: 1px solid; > .sa-icon { margin-top: 2px; } strong { color: var(--sa-ink); } p, ul { margin: 4px 0 0; font-size: 13px; } ul { padding-left: 18px; list-style: disc; } li { margin: 2px 0; } .sa-row { margin-top: 12px; } .sa-btn--sm { margin-top: 10px; } &.is-warning { background: #fffbeb; border-color: #fde68a; color: #92400e; } &.is-info { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; } &.is-error { background: #fef2f2; border-color: #fecaca; color: #991b1b; } &.is-success { background: #f0fdf4; border-color: #bbf7d0; color: #166534; } } /* ---------- Modal ---------- */ .sa-modal-backdrop { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; padding: 16px; background: rgb(15 23 42 / 55%); backdrop-filter: blur(4px); animation: sa-fade 0.2s ease; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: #334155; *, *::before, *::after { box-sizing: border-box; } h2 { margin: 0; font-size: 18px; color: #0f172a; } code { background: #eef2ff; color: #3730a3; padding: 1px 6px; border-radius: 6px; } } .sa-modal { --sa-ink: #0f172a; --sa-muted: #64748b; --sa-line: #e2e8f0; --sa-primary: #4f46e5; --sa-primary-600: #4338ca; --sa-violet: #7c3aed; --sa-red: #dc2626; --sa-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #c026d3 100%); width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: 20px; box-shadow: 0 30px 80px rgb(15 23 42 / 35%); &--lg { max-width: 760px; } } .sa-modal__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px 0; } .sa-modal__body { padding: 20px 24px 24px; } .sa-confirm { display: flex; flex-direction: column; gap: 16px; } .sa-confirm__file { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: #f8fafc; color: var(--sa-primary); div { display: flex; flex-direction: column; min-width: 0; } strong { color: var(--sa-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } span { font-size: 12px; color: var(--sa-muted); } } /* ---------- Job ---------- */ .sa-job { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; } .sa-ring { position: relative; width: 140px; height: 140px; margin: 4px 0 6px; // Direct child only: the progress circle. Must not hit the status icon // inside .sa-ring__label (it would get stretched and rotated). > svg { width: 100%; height: 100%; transform: rotate(-90deg); } circle { fill: none; stroke-width: 10; } } .sa-ring__track { stroke: #eef2ff; } .sa-ring__bar { stroke: var(--sa-primary); stroke-linecap: round; transition: stroke-dashoffset 0.5s ease, stroke 0.3s; } // Light arc that orbits continuously while a job runs, so the ring never // looks frozen during long steps. .sa-ring__sweep { transform-box: view-box; transform-origin: 60px 60px; animation: sa-orbit 1.6s linear infinite; circle { stroke: rgb(255 255 255 / 75%); stroke-linecap: round; stroke-width: 6; } } .sa-ring.is-running { border-radius: 50%; animation: sa-breathe 2.4s ease-in-out infinite; .sa-ring__track { stroke: #e0e7ff; } } @keyframes sa-orbit { to { transform: rotate(360deg); } } @keyframes sa-breathe { 0%, 100% { box-shadow: 0 0 0 0 rgb(79 70 229 / 0%); } 50% { box-shadow: 0 0 0 10px rgb(79 70 229 / 10%); } } .sa-ring.is-done .sa-ring__bar { stroke: #16a34a; } .sa-ring.is-failed .sa-ring__bar, .sa-ring.is-cancelled .sa-ring__bar { stroke: #dc2626; } .sa-ring__label { position: absolute; inset: 0; display: grid; place-items: center; font-size: 28px; font-weight: 800; color: var(--sa-ink); letter-spacing: -0.02em; } .sa-ring.is-done .sa-ring__label { color: #16a34a; } .sa-ring.is-failed .sa-ring__label, .sa-ring.is-cancelled .sa-ring__label { color: #dc2626; } .sa-job__message { font-weight: 600; color: var(--sa-ink); font-size: 15px !important; } .sa-job__meta { display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 0 4px; font-size: 12px !important; color: var(--sa-muted); } // Blinking "live" dot next to the elapsed timer. .sa-live { width: 8px; height: 8px; margin-right: 4px; border-radius: 50%; background: var(--sa-green); animation: sa-live 1.2s ease-in-out infinite; } @keyframes sa-live { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgb(22 163 74 / 45%); } 50% { opacity: 0.55; box-shadow: 0 0 0 4px rgb(22 163 74 / 0%); } } .sa-job__warning { font-size: 12px !important; color: #b45309; } .sa-steps { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 8px 0 4px; padding: 0; } .sa-steps__item { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 12px; font-weight: 600; color: #94a3b8; padding: 4px 10px 4px 4px; border-radius: 999px; background: #f8fafc; &.is-current { color: var(--sa-primary-600); background: #eef2ff; .sa-steps__dot { background: var(--sa-primary); animation: sa-pulse 1.2s infinite; .sa-icon { opacity: 0; } } } &.is-done { color: #15803d; background: #f0fdf4; .sa-steps__dot { background: #16a34a; color: #fff; } } } .sa-steps__dot { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #e2e8f0; color: transparent; } @keyframes sa-pulse { 50% { box-shadow: 0 0 0 5px rgb(79 70 229 / 18%); } } .sa-job__result { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; border-radius: 12px; background: #f0fdf4; text-align: left; margin-top: 6px; div { display: flex; flex-direction: column; min-width: 0; } strong { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--sa-ink); } span { font-size: 12px; color: #15803d; } &.is-restore { flex-direction: column; text-align: center; p { color: #166534; } } } .sa-job__actions { width: 100%; display: flex; align-items: center; gap: 10px; margin-top: 10px; } .sa-log { width: 100%; max-height: 200px; overflow: auto; text-align: left; background: #0f172a; color: #cbd5e1; border-radius: 12px; padding: 12px 14px; font-size: 11px; line-height: 1.6; white-space: pre-wrap; margin: 0; scroll-behavior: smooth; } .sa-log__cursor { display: inline-block; width: 7px; height: 12px; margin-left: 4px; vertical-align: -2px; background: #818cf8; animation: sa-blink 1s steps(1) infinite; } @keyframes sa-blink { 50% { opacity: 0; } } @media (prefers-reduced-motion: reduce) { .sa-ring__sweep, .sa-ring.is-running, .sa-live, .sa-log__cursor { animation: none; } } /* ---------- Upload ---------- */ .sa-dropzone { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 56px 24px; border: 2px dashed #c7d2fe; border-radius: 20px; background: linear-gradient(180deg, #fafbff, #fff); cursor: pointer; transition: all 0.2s; p { color: var(--sa-muted); margin-bottom: 8px; } &:hover, &:focus-visible, &.is-drag { border-color: var(--sa-primary); background: #eef2ff; outline: none; } &.is-drag { transform: scale(1.01); } } .sa-dropzone__icon { display: inline-grid; place-items: center; width: 76px; height: 76px; border-radius: 22px; background: var(--sa-gradient); color: #fff; margin-bottom: 8px; box-shadow: 0 12px 28px rgb(124 58 237 / 30%); } .sa-upload__head { display: flex; align-items: center; gap: 14px; } .sa-upload__info { display: flex; flex-direction: column; flex: 1; min-width: 0; strong { color: var(--sa-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } } .sa-upload__percent { font-size: 24px; font-weight: 800; color: var(--sa-ink); } .sa-progress { height: 10px; border-radius: 999px; background: #eef2ff; overflow: hidden; span { display: block; height: 100%; border-radius: inherit; background: var(--sa-gradient); transition: width 0.3s ease; } &.is-paused span { background: #f59e0b; } &.is-error span { background: var(--sa-red); } &.is-done span { background: var(--sa-green); } } /* ---------- Features / providers / author ---------- */ .sa-feature { display: flex; flex-direction: column; gap: 8px; padding: 20px; background: #fff; border: 1px solid var(--sa-line); border-radius: var(--sa-radius); color: var(--sa-primary); text-decoration: none; box-shadow: var(--sa-shadow); transition: transform 0.15s, box-shadow 0.15s; p { color: var(--sa-muted); font-size: 13px; } &.is-link:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgb(15 23 42 / 8%); } } .sa-provider { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px; background: #fff; border: 1px solid var(--sa-line); border-radius: var(--sa-radius); box-shadow: var(--sa-shadow); } .sa-provider__logo { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: #fff; font-weight: 800; font-size: 13px; } .sa-remote-local { display: flex; align-items: center; gap: 14px; > div { flex: 1; } } .sa-author { display: flex; gap: 28px; align-items: center; padding: 36px; border-radius: 20px; background: #0b1023; background-image: radial-gradient(500px 260px at 0% 0%, rgb(124 58 237 / 45%), transparent), radial-gradient(500px 260px at 100% 100%, rgb(79 70 229 / 40%), transparent); color: #fff; h1 { color: #fff; font-size: 32px; margin: 4px 0 8px; } p { color: #c7d2fe; max-width: 620px; margin-bottom: 18px; } .sa-eyebrow { color: #a5b4fc; } @media (max-width: 782px) { flex-direction: column; align-items: flex-start; padding: 24px; } } .sa-author__avatar { width: 112px; height: 112px; border-radius: 30px; display: grid; place-items: center; flex-shrink: 0; background: var(--sa-gradient); font-size: 38px; font-weight: 800; letter-spacing: -0.03em; box-shadow: 0 16px 40px rgb(124 58 237 / 45%); } .sa-how { margin: 0; padding: 0; list-style: none; counter-reset: how; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; li { counter-increment: how; margin: 0; display: flex; flex-direction: column; gap: 4px; color: var(--sa-muted); font-size: 13px; &::before { content: counter(how); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #eef2ff; color: var(--sa-primary); font-weight: 800; margin-bottom: 6px; } strong { color: var(--sa-ink); font-size: 14px; } } @media (max-width: 782px) { grid-template-columns: 1fr; } } /* ---------- Toasts ---------- */ .sa-toasts { position: fixed; right: 24px; bottom: 24px; z-index: 100001; display: flex; flex-direction: column; gap: 8px; } .sa-toast { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; background: #0f172a; color: #fff; font-size: 13px; font-weight: 500; box-shadow: 0 12px 30px rgb(15 23 42 / 30%); animation: sa-fade 0.2s ease; max-width: 380px; .sa-icon { color: #4ade80; } &.is-error .sa-icon { color: #f87171; } }