/*
 * Panel Master · custom styles
 * Las utility classes de Tailwind (flex, gap, text-*, etc.) las provee el
 * script CDN incluido en los layouts. Aquí solo las clases custom propias.
 *
 * Cuando ejecutes bin/setup.sh && bin/build-css.sh, este archivo se reemplaza
 * por uno compilado (con tree-shaking) y puedes quitar el CDN de los layouts.
 */

:root {
    --color-bg: 248 250 252;        /* slate-50 */
    --color-surface: 255 255 255;
    --color-border: 226 232 240;    /* slate-200 */
    --color-text: 15 23 42;         /* slate-900 */
    --color-text-muted: 100 116 139;/* slate-500 */
    --color-accent: 8 145 178;      /* cyan-600 */
    --color-ok: 16 185 129;         /* emerald-500 */
    --color-warn: 245 158 11;       /* amber-500 */
    --color-err: 244 63 94;         /* rose-500 */
}

html {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-feature-settings: 'cv11', 'ss01', 'ss03';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: rgb(var(--color-bg));
    color: rgb(var(--color-text));
}

.font-mono,
code {
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
    font-feature-settings: 'zero', 'ss01';
}

/* === Status LED indicator (signature element) === */
.led {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    flex-shrink: 0;
}
.led::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 9999px;
    opacity: 0.4;
    filter: blur(4px);
}
.led-ok { background-color: rgb(var(--color-ok)); }
.led-ok::after { background-color: rgb(var(--color-ok)); }
.led-warn { background-color: rgb(var(--color-warn)); }
.led-warn::after { background-color: rgb(var(--color-warn)); }
.led-err { background-color: rgb(var(--color-err)); }
.led-err::after { background-color: rgb(var(--color-err)); }
.led-idle { background-color: rgb(148 163 184); }
.led-idle::after { display: none; }

/* === Card === */
.card {
    background-color: rgb(var(--color-surface));
    border: 1px solid rgb(var(--color-border));
    border-radius: 4px;
}

/* === Eyebrow label === */
.eyebrow {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgb(var(--color-text-muted));
    font-weight: 500;
}

/* === Sidebar nav item === */
.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    font-size: 13px;
    color: rgb(203 213 225);
    border-left: 2px solid transparent;
    transition: all 0.12s ease;
    text-decoration: none;
}
.nav-item:hover {
    color: rgb(248 250 252);
    background-color: rgb(30 41 59);
}
.nav-item.active {
    color: rgb(248 250 252);
    background-color: rgb(30 41 59);
    border-left-color: rgb(var(--color-accent));
}
.nav-item .nav-icon { opacity: 0.6; }
.nav-item.active .nav-icon,
.nav-item:hover .nav-icon { opacity: 1; }

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 13px;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.12s ease;
    cursor: pointer;
    border: 1px solid transparent;
}
.btn-primary {
    background-color: rgb(var(--color-accent));
    color: white;
    border-color: rgb(var(--color-accent));
}
.btn-primary:hover {
    background-color: rgb(14 116 144);
}
.btn-secondary {
    background-color: rgb(var(--color-surface));
    color: rgb(var(--color-text));
    border-color: rgb(var(--color-border));
}
.btn-secondary:hover {
    background-color: rgb(241 245 249);
}

/* === Input === */
.input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 13px;
    background-color: rgb(var(--color-surface));
    border: 1px solid rgb(var(--color-border));
    border-radius: 4px;
    transition: border-color 0.12s ease;
    font-family: inherit;
}
.input:focus {
    outline: none;
    border-color: rgb(var(--color-accent));
    box-shadow: 0 0 0 3px rgb(8 145 178 / 0.1);
}
