@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700&family=Noto+Serif+SC:wght@600;700&display=swap"); @tailwind base; @tailwind components; @tailwind utilities; @layer base { :root { --background: 0 0% 97%; --foreground: 0 0% 10%; --card: 0 0% 100%; --card-foreground: 0 0% 10%; --primary: 0 0% 10%; --primary-foreground: 0 0% 100%; --secondary: 0 0% 92%; --secondary-foreground: 0 0% 10%; --muted: 0 0% 92%; --muted-foreground: 0 0% 40%; --accent: 0 0% 90%; --accent-foreground: 0 0% 10%; --destructive: 0 70% 45%; --destructive-foreground: 0 0% 100%; --border: 0 0% 86%; --input: 0 0% 86%; --ring: 0 0% 10%; --radius: 1rem; } } @layer base { * { @apply border-border; } body { @apply bg-background text-foreground; font-family: "Noto Sans SC", "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; margin: 0; padding: 0; overflow-x: hidden; background-image: radial-gradient(900px circle at 10% -20%, rgba(0, 0, 0, 0.04), transparent 45%), radial-gradient(700px circle at 90% 0%, rgba(0, 0, 0, 0.05), transparent 40%), linear-gradient(180deg, hsl(var(--background)) 0%, hsl(var(--background)) 100%); } body::before { content: ""; position: fixed; inset: 0; background-image: linear-gradient(120deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0)); opacity: 0.5; pointer-events: none; z-index: -1; } h1, h2, h3 { font-family: "Noto Serif SC", "Georgia", serif; letter-spacing: -0.01em; } #app { min-height: 100vh; } } @layer components { .ui-btn { @apply inline-flex items-center justify-center rounded-full border border-border text-foreground transition-colors duration-150 ease-out; @apply disabled:cursor-not-allowed disabled:opacity-60; } .ui-btn-sm { @apply h-8 px-3 text-xs font-medium; } .ui-btn-xs { @apply h-7 px-2.5 text-[11px] font-medium; } .ui-btn-md { @apply h-8 px-3.5 text-xs font-medium; } .ui-btn-icon { @apply h-8 w-8 p-0; } .ui-btn-icon-sm { @apply h-7 w-7 p-0; } .ui-btn-outline { @apply bg-transparent hover:border-primary hover:text-primary; } .ui-btn-primary { @apply border-transparent bg-primary text-primary-foreground hover:opacity-90; } .ui-btn-danger { @apply border-destructive/40 text-destructive hover:border-destructive hover:bg-destructive/5; } .ui-pill { @apply inline-flex items-center rounded-full border px-3 py-1 text-xs; } .ui-chip { @apply inline-flex items-center rounded-full border border-border px-2.5 py-1 text-xs text-foreground; } .ui-badge { @apply inline-flex items-center rounded px-2 py-0.5 text-[10px] font-semibold; } .ui-input-sm { @apply h-8 rounded-full border border-input bg-background px-3 text-xs text-foreground transition-colors duration-150 ease-out; @apply placeholder:text-muted-foreground focus:border-primary focus:outline-none focus:ring-0; } .ui-input-md { @apply h-11 rounded-2xl border border-input bg-background px-4 text-sm text-foreground transition-colors duration-150 ease-out; @apply placeholder:text-muted-foreground focus:border-primary focus:outline-none focus:ring-0; } .ui-textarea-sm { @apply w-full rounded-2xl border border-input bg-background px-3 py-2 text-xs text-foreground transition-colors duration-150 ease-out; @apply placeholder:text-muted-foreground focus:border-primary focus:outline-none focus:ring-0; } .ui-field-label { @apply mb-1 block text-xs text-muted-foreground; } .ui-section-title { @apply text-base font-semibold text-foreground; } .ui-section-kicker { @apply text-xs uppercase tracking-[0.3em] text-muted-foreground; } .ui-subsection-title { @apply text-sm font-medium text-foreground; } .ui-segmented { @apply flex items-center gap-1 rounded-full border border-border bg-muted/30 p-1; } .ui-segmented-btn { @apply inline-flex items-center gap-1.5 rounded-full border border-transparent px-3 py-1.5 text-xs font-medium text-muted-foreground transition-all; @apply hover:bg-accent/50 hover:text-foreground; } .ui-segmented-btn-active { @apply border-border bg-accent/50 font-medium text-foreground shadow-none; } .ui-segmented-count { @apply inline-flex min-w-[1.2rem] items-center justify-center rounded-full bg-border/90 px-1.5 text-[10px] leading-4 text-muted-foreground; } .ui-segmented-btn-active .ui-segmented-count { @apply bg-border text-foreground; } .ui-panel { @apply rounded-3xl border border-border bg-card p-6; } .ui-card { @apply rounded-2xl border border-border bg-card p-4; } .ui-card-sm { @apply rounded-2xl border border-border bg-card px-4 py-3; } .ui-surface { @apply rounded-2xl border border-border bg-card; } .ui-overlay-panel { @apply rounded-3xl border border-border bg-card p-6 shadow-xl; } .ui-floating-panel { @apply rounded-2xl border border-border bg-card p-2 shadow-lg; } .ui-toast-card { @apply flex w-full items-center gap-3 rounded-2xl border border-border bg-card px-4 py-3 shadow-lg; } .ui-dialog-title { @apply text-sm font-semibold text-foreground; } .ui-dialog-body { @apply mt-2 text-sm text-muted-foreground; } .ui-menu-item { @apply flex h-8 w-full items-center justify-between rounded-full px-3 text-left text-xs transition-colors; @apply hover:bg-accent; } } html { font-size: 15px; } html, body { scrollbar-width: thin; scrollbar-color: rgba(0, 0, 0, 0.35) transparent; } * { scrollbar-width: thin; scrollbar-color: rgba(0, 0, 0, 0.35) transparent; } html::-webkit-scrollbar, body::-webkit-scrollbar, *::-webkit-scrollbar { width: 8px; height: 8px; } html::-webkit-scrollbar-track, body::-webkit-scrollbar-track, *::-webkit-scrollbar-track { background: transparent; } html::-webkit-scrollbar-thumb, body::-webkit-scrollbar-thumb, *::-webkit-scrollbar-thumb { background-color: rgba(0, 0, 0, 0.35); border-radius: 999px; border: 2px solid transparent; background-clip: content-box; } .scrollbar-slim { scrollbar-width: thin; scrollbar-color: rgba(0, 0, 0, 0.35) transparent; } .scrollbar-slim::-webkit-scrollbar { width: 8px; height: 8px; } .scrollbar-slim::-webkit-scrollbar-track { background: transparent; } .scrollbar-slim::-webkit-scrollbar-thumb { background-color: rgba(0, 0, 0, 0.35); border-radius: 999px; border: 2px solid transparent; background-clip: content-box; } .cv-auto { content-visibility: auto; contain-intrinsic-size: 0 44px; } .monitor-badge--up { background: #d1fae5; color: #065f46; } .monitor-badge--warn { background: #fef3c7; color: #b45309; } .monitor-badge--down { background: #fee2e2; color: #991b1b; } .monitor-badge--unknown { background: #f3f4f6; color: #6b7280; } .monitor-card { border-radius: 16px; padding: 0; background: hsl(var(--card)); box-shadow: none; } .monitor-card__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; } .monitor-card__name { font-size: 14px; font-weight: 600; color: hsl(var(--foreground)); } .monitor-card__badge { padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; } .monitor-card__stats { display: flex; flex-wrap: wrap; gap: 16px; font-size: 12px; color: hsl(var(--muted-foreground)); margin-bottom: 12px; } .monitor-card__value { margin-left: 4px; color: hsl(var(--foreground)); font-weight: 600; } .monitor-card__beats { display: flex; gap: 2px; height: 24px; align-items: flex-end; } .monitor-beat { flex: 1; min-width: 4px; max-width: 8px; border-radius: 2px; transition: all 0.2s; position: relative; } .monitor-beat:hover { opacity: 0.8; transform: scaleY(1.1); } .monitor-beat--up { background: #34c759; height: 100%; } .monitor-beat--warn { background: #f5c15b; height: 100%; } .monitor-beat--slow { background: #f5c15b; height: 100%; } .monitor-beat--down { background: #ff3b30; height: 100%; } .monitor-beat--empty { background: #e5e5ea; height: 40%; } .monitor-beat__tooltip { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); background: #1d1d1f; color: #fff; padding: 6px 10px; border-radius: 6px; font-size: 11px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.15s; margin-bottom: 6px; z-index: 10; } .monitor-beat__tooltip::after { content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 5px solid transparent; border-top-color: #1d1d1f; } .monitor-beat:hover .monitor-beat__tooltip { opacity: 1; } .help-dot { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 999px; border: 1px solid hsl(var(--border)); font-size: 10px; line-height: 1; color: hsl(var(--muted-foreground)); cursor: default; } @media (max-width: 768px) { .monitor-beat { min-width: 3px; max-width: 6px; } } @media (min-width: 1024px) { .dashboard-split { flex-direction: row; flex-wrap: nowrap; } .dashboard-split .dashboard-main { flex: 0 0 66.6667%; max-width: 66.6667%; } .dashboard-split .dashboard-side { flex: 0 0 33.3333%; max-width: 33.3333%; } } @keyframes logo-float { 0% { transform: translateY(0); } 25% { transform: translateY(6px); } 50% { transform: translateY(0); } 75% { transform: translateY(-6px); } 100% { transform: translateY(0); } } @keyframes logo-blink { 0%, 45%, 55%, 100% { transform: scaleY(1); opacity: 1; } 50% { transform: scaleY(0.1); opacity: 0.6; } } .logo-mark .logo-cat-wrapper { animation: logo-float 4s ease-in-out infinite; transform-origin: center; } .logo-mark { transform: translateY(2px); } .logo-mark .logo-eye { fill: #00bcd4; filter: drop-shadow(0 0 2px #00bcd4); animation: logo-blink 5s infinite; transform-box: fill-box; transform-origin: center; }