/* Peyvand panel theme: local Persian font and small UI refinements.
   No external hosts (see docs/adr/0003). */
@font-face {
    font-family: "Vazirmatn";
    src: url("../fonts/vazirmatn/vazirmatn-variable.woff2") format("woff2-variations"),
         url("../fonts/vazirmatn/vazirmatn-variable.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --font-family: "Vazirmatn", Tahoma, system-ui, sans-serif;
}

body {
    font-feature-settings: "kern", "liga";
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* URLs, slugs and usernames are always left-to-right, even inside RTL UI. */
.pv-ltr,
.pv-ltr input {
    direction: ltr;
    unicode-bidi: plaintext;
    text-align: left;
    font-variant-numeric: tabular-nums;
}

.pv-short-url {
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* Cards and sections: softer, more breathing room. */
.fi-section,
.fi-ta-ctn,
.fi-wi-stats-overview-stat {
    border-radius: 1rem;
}

.fi-wi-stats-overview-stat-value {
    font-variant-numeric: tabular-nums;
}

/* QR preview: always on white, like paper. */
.pv-qr {
    display: grid;
    place-items: center;
    padding: 1rem;
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.06);
}

.pv-qr svg,
.pv-qr img {
    width: 100%;
    max-width: 240px;
    height: auto;
}

.pv-hero {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
}

.pv-hero__url {
    font-size: 1.5rem;
    line-height: 2rem;
}

.pv-muted {
    color: rgb(var(--gray-500, 107 114 128));
}

/* Brand */
.pv-brand { display: flex; align-items: center; gap: .5rem; white-space: nowrap; }
.pv-brand svg { width: 1.75rem; height: 1.75rem; flex-shrink: 0; }
.pv-brand span { font-size: 1.125rem; font-weight: 800; letter-spacing: -.01em; }

/* System status tiles */
.pv-tiles { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.pv-tile {
    display: flex; align-items: flex-start; gap: .75rem; padding: .875rem 1rem;
    border-radius: .875rem; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .06);
    background: rgb(0 0 0 / .015);
}
.dark .pv-tile { box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08); background: rgb(255 255 255 / .02); }
.pv-tile__title { font-size: .875rem; font-weight: 600; }
.pv-tile__meta { font-size: .75rem; margin-top: .125rem; color: rgb(107 114 128); }
.pv-dot { margin-top: .375rem; width: .625rem; height: .625rem; border-radius: 9999px; flex-shrink: 0; }
.pv-dot--ok { background: #22c55e; box-shadow: 0 0 0 4px rgb(34 197 94 / .15); }
.pv-dot--down { background: #ef4444; box-shadow: 0 0 0 4px rgb(239 68 68 / .15); }
.pv-tile__icon { width: 1.25rem; height: 1.25rem; color: rgb(99 102 241); flex-shrink: 0; margin-top: .125rem; }
.pv-small { font-size: .75rem; }
.pv-center { text-align: center; }
.pv-mt { margin-top: .75rem; }
