/* PM Central — design tokens layered on top of DaisyUI 'business' theme.
   Goal: dense, dark, technical look. Avoid Halloween palettes. */

:root {
    --pmc-radius: 10px;
    --pmc-shadow-card: 0 1px 0 rgba(255,255,255,0.04), 0 8px 24px rgba(0,0,0,0.35);
}

/* Override DaisyUI palette with our own dark theme: deep navy + slate. */
[data-theme="pmc-dark"] {
    --p: 222 90% 60%;     /* primary blue */
    --pc: 0 0% 100%;
    --s: 220 14% 28%;
    --sc: 0 0% 92%;
    --a: 192 80% 56%;
    --ac: 0 0% 100%;
    --n: 220 15% 18%;
    --nc: 0 0% 92%;
    --b1: 222 25% 10%;    /* base-100 */
    --b2: 222 25% 13%;    /* base-200 */
    --b3: 222 22% 17%;    /* base-300 */
    --bc: 0 0% 92%;
    --in: 198 80% 56%;
    --su: 145 70% 45%;    /* success */
    --wa: 39 95% 58%;     /* warning */
    --er: 357 84% 65%;    /* error */
    color-scheme: dark;
}

html, body {
    font-feature-settings: "ss01", "cv11";
    font-family: -apple-system, BlinkMacSystemFont, "Inter", system-ui, sans-serif;
}

/* Cards: tighter radius, subtle border, rich shadow */
.card { border-radius: var(--pmc-radius); border: 1px solid hsl(var(--b3)); box-shadow: var(--pmc-shadow-card); }

/* Tables: data-dense */
.table { font-size: 0.875rem; }
.table th { font-weight: 600; color: hsl(var(--bc) / 0.65); text-transform: none; letter-spacing: 0.01em; }

/* Sidebar links: subtle hover, clear active state */
.menu :where(li > *:not(ul):not(.menu-title):not(details)) { border-radius: 8px; transition: background 0.12s ease, color 0.12s ease; }
.menu :where(li > *:not(ul):not(.menu-title):not(details)):hover { background: hsl(var(--b3)); }
.menu .menu-active { background: hsl(var(--p) / 0.16) !important; color: hsl(var(--p)) !important; font-weight: 500; }

/* Subtle code/mono */
.font-mono { font-family: ui-monospace, "JetBrains Mono", SFMono-Regular, Menlo, Monaco, monospace; font-size: 0.85em; }

/* Buttons: less DaisyUI shoutiness */
.btn { font-weight: 500; }
.btn-primary { background: hsl(var(--p)); border: 1px solid hsl(var(--p)); }
.btn-primary:hover { background: hsl(var(--p) / 0.9); border-color: hsl(var(--p) / 0.9); }

/* Stats panels look better with thin borders */
.stats { border: 1px solid hsl(var(--b3)); }

/* Slick scrollbars (webkit) */
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: hsl(var(--b3)); border-radius: 8px; }
*::-webkit-scrollbar-thumb:hover { background: hsl(var(--bc) / 0.2); }

/* Drop zone */
.dropzone {
    border: 2px dashed hsl(var(--b3));
    border-radius: var(--pmc-radius);
    padding: 2.5rem;
    text-align: center;
    transition: border-color 0.12s ease, background 0.12s ease;
}
.dropzone:hover, .dropzone.drag {
    border-color: hsl(var(--p));
    background: hsl(var(--p) / 0.06);
}

/* Confidence pill (used on auto-classified artifacts) */
.confidence { font-variant-numeric: tabular-nums; padding: 2px 8px; border-radius: 999px; font-size: 0.7rem; font-weight: 600; }
.confidence.high { background: hsl(var(--su) / 0.14); color: hsl(var(--su)); }
.confidence.med  { background: hsl(var(--wa) / 0.14); color: hsl(var(--wa)); }
.confidence.low  { background: hsl(var(--er) / 0.14); color: hsl(var(--er)); }
