/* =============================================================================
   HHPG Design System — geteilte Tokens + Grundkomponenten
   Quelle: HHPG_Projectmanagement/public/assets/css/hhpg.css
   Verwendung: Intranet, Projektmanagement, KI-Anwendungen
   ============================================================================= */

/* ---------- Tokens ---------- */
:root {
    --bg:           #ffffff;
    --bg-soft:      #f8fafc;
    --bg-muted:     #f1f5f9;
    --fg:           #0f172a;
    --fg-muted:     #64748b;
    --fg-subtle:    #94a3b8;
    --border:       #e2e8f0;
    --border-strong:#cbd5e1;

    --brand:        #c01817;
    --brand-hover:  #7c0f0f;
    --brand-tint:   #c0181710;
    --brand-tint-2: #c0181720;
    --brand-fg:     #ffffff;

    --info:    #3b82f6;  --info-bg:    #3b82f61a;
    --success: #10b981;  --success-bg: #10b9811a;
    --warning: #f59e0b;  --warning-bg: #f59e0b1a;
    --error:   #ef4444;  --error-bg:   #ef44441a;

    --radius-sm: 6px;
    --radius:    8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    --shadow-xs: 0 1px 2px 0 rgb(15 23 42 / 0.05);
    --shadow-sm: 0 1px 3px 0 rgb(15 23 42 / 0.08), 0 1px 2px -1px rgb(15 23 42 / 0.04);
    --shadow:    0 4px 6px -1px rgb(15 23 42 / 0.08), 0 2px 4px -2px rgb(15 23 42 / 0.04);
    --shadow-lg: 0 10px 15px -3px rgb(15 23 42 / 0.10), 0 4px 6px -4px rgb(15 23 42 / 0.05);

    --header-h: 68px;
    --sidebar-w: 260px;

    --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset (1:1 PM) ---------- */
*, ::before, ::after { box-sizing: border-box; border-color: var(--border); }
html { -webkit-text-size-adjust: 100%; tab-size: 4; line-height: 1.5; }
body {
    margin: 0;
    background: var(--bg-soft);
    color: var(--fg);
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 600; letter-spacing: -0.01em; color: var(--fg); }
p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: inline-block; vertical-align: middle; max-width: 100%; height: auto; }
button { font-family: inherit; }
hr { border: 0; border-top: 1px solid var(--border); margin: 0; }

/* ---------- Buttons (1:1 PM) ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px;
    height: 36px;
    padding: 0 16px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    background: transparent;
    color: var(--fg);
    font-size: 14px; font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.btn:focus, .btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--brand-tint-2);
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn i { font-size: 13px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-block { width: 100%; }

.btn-primary {
    background: var(--brand);
    border-color: var(--brand);
    color: var(--brand-fg);
}
.btn-primary:hover, .btn-primary:focus-visible {
    background: var(--brand-hover);
    border-color: var(--brand-hover);
}

.btn-outline {
    background: var(--bg);
    border-color: var(--border-strong);
    color: var(--fg);
}
.btn-outline:hover, .btn-outline:focus-visible {
    background: var(--bg-muted);
    border-color: var(--border-strong);
}

.btn-ghost {
    background: transparent;
    border-color: transparent;
    color: var(--fg);
}
.btn-ghost:hover, .btn-ghost:focus-visible { background: var(--bg-muted); }

/* ---------- Cards (1:1 PM .card) ---------- */
.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: var(--shadow-xs);
}

/* ---------- Section-Pill-Header (schwarz) ---------- */
.section-pill {
    display: inline-flex; align-items: center;
    height: 38px; padding: 0 18px;
    background: #1e293b;
    color: #fff;
    border-radius: var(--radius);
    font-size: 14px; font-weight: 600;
    letter-spacing: 0.01em;
    margin: 0 0 18px;
}
.section-pill.is-brand { background: var(--brand); }

/* ---------- Section-Wrapper ---------- */
.section { margin-bottom: 40px; }
.section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

/* ---------- is-restricted (zugriffsbeschränkte Bereiche, z.B. Geschäftsleitung) ----------
   Pattern: durch Border-Top getrennt, Heading + Icon in Brand-Rot.
   Kombiniert mit beliebigen Headings (.sidebar-section-title, .section-header-title, …).
   ============================================================================== */
.is-restricted {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.is-restricted .sidebar-section-title,
.is-restricted .section-header-title { color: var(--brand); }
.is-restricted .sidebar-section-title i,
.is-restricted .section-header-title i { color: var(--brand); }

/* ---------- News-Card (Aktuelle Interne Nachrichten) ---------- */
.news-card {
    display: flex; flex-direction: column;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    transition: box-shadow .15s, transform .15s, border-color .15s;
}
.news-card:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--border-strong);
    transform: translateY(-1px);
}
.news-card-body { padding: 16px 18px 14px; flex: 1; }
.news-card-title { font-size: 15px; font-weight: 600; margin: 0 0 8px; color: var(--fg); line-height: 1.35; }
.news-card-excerpt { font-size: 13px; color: var(--fg-muted); line-height: 1.55; margin: 0 0 12px; }
.news-card-cta {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--brand); font-weight: 500; font-size: 13px;
}
.news-card-cta:hover { color: var(--brand-hover); }
.news-card-cta i { font-size: 10px; transition: transform .15s; }
.news-card-cta:hover i { transform: translateX(2px); }
.news-card-footer {
    padding: 10px 18px;
    font-size: 12px; color: var(--fg-subtle);
    border-top: 1px solid var(--border);
    background: var(--bg-soft);
    display: flex; align-items: center; gap: 8px;
}
.news-card-footer i { font-size: 10px; opacity: 0.7; }

/* ---------- App-Card (Intranet-Apps) ---------- */
.app-card {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    background: var(--bg-muted);
    border-radius: var(--radius);
    padding: 22px 18px 18px;
    transition: transform .15s, box-shadow .15s;
}
.app-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.app-card-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 56px; height: 56px;
    background: var(--brand);
    color: #fff;
    border-radius: var(--radius);
    font-size: 24px;
    margin-bottom: 14px;
}
.app-card-title { font-size: 15px; font-weight: 600; margin: 0 0 8px; }
.app-card-desc { font-size: 13px; color: var(--fg); line-height: 1.5; margin: 0 0 12px; }
.app-card-link {
    color: var(--brand); font-weight: 500; font-size: 13px;
    margin-top: auto;
}

/* ---------- External-Links (Zeile mit Pfeil-Icons) ---------- */
.external-links {
    display: flex; flex-wrap: wrap;
    background: var(--bg-muted);
    border-radius: var(--radius);
    padding: 12px 16px;
    gap: 4px 24px;
    align-items: center;
}
.external-link {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 4px 0;
    color: var(--fg);
    font-size: 13px;
    font-weight: 500;
}
.external-link i { color: var(--brand); font-size: 14px; }
.external-link:hover { color: var(--brand); }

/* ---------- Page-Title (rote Pill für Einzelseiten) ---------- */
.page-pill {
    display: inline-flex; align-items: center;
    height: 42px; padding: 0 20px;
    background: var(--brand);
    color: #fff;
    border-radius: var(--radius);
    font-size: 16px; font-weight: 600;
    margin: 0 0 22px;
}

/* ---------- Page-Header (1:1 wie PM) ---------- */
.page-header {
    display: flex; flex-wrap: wrap;
    align-items: flex-end; justify-content: space-between;
    gap: 16px;
    padding: 0 0 18px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
}
.page-header-main { min-width: 0; flex: 1; }
.page-header-eyebrow {
    font-size: 13px; font-weight: 500;
    color: var(--fg-muted);
    margin: 0 0 4px;
}
.page-header-title {
    font-size: 28px; font-weight: 700;
    letter-spacing: -0.025em; line-height: 1.15;
    color: var(--fg);
    margin: 0;
}
.page-header-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 2px; }
@media (max-width: 640px) { .page-header-title { font-size: 22px; } }

/* ---------- Section-Header (1:1 wie PM) ---------- */
.section-header {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}
.section-header-title {
    display: flex; align-items: center; gap: 12px;
    font-size: 17px; font-weight: 600;
    letter-spacing: -0.01em; line-height: 1.3;
    margin: 0;
}
.section-header-title > i {
    color: var(--fg-muted); font-size: 15px;
    flex-shrink: 0;
    width: 18px; text-align: center;
}
.section-header-count {
    font-size: 12px; font-weight: 600;
    color: var(--fg-muted);
    background: var(--bg-muted);
    padding: 3px 10px;
    border-radius: var(--radius-full);
}
.section-header-right { display: inline-flex; align-items: center; gap: 8px; }
.section-block { margin-top: 32px; }
.section-block:first-child { margin-top: 0; }
.section-block + .section-block,
.section-block ~ .section-block { margin-top: 40px; }

/* ---------- Alert (an PM-Pattern angelehnt) ---------- */
.alert {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius);
    background: var(--info-bg);
    border: 1px solid rgba(59,130,246,0.25);
    font-size: 13.5px; line-height: 1.55;
    color: var(--fg);
    margin: 0 0 24px;
}
.alert i { font-size: 16px; flex-shrink: 0; margin-top: 2px; color: var(--info); }
.alert a { color: var(--brand); font-weight: 500; }
.alert-brand { background: var(--brand-tint); border-color: rgba(192,24,23,0.22); }
.alert-brand i { color: var(--brand); }

/* ---------- Spotlight-Suche ---------- */
.spotlight-overlay {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(15,23,42,0.55);
    backdrop-filter: blur(6px);
    display: none;
    align-items: flex-start; justify-content: center;
    padding-top: 12vh;
}
.spotlight-overlay.is-open { display: flex; }
.spotlight {
    width: 100%; max-width: 640px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: spotlight-in .12s ease-out;
}
@keyframes spotlight-in { from { transform: translateY(-8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.spotlight-input-row {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}
.spotlight-input-row > i { color: var(--fg-muted); font-size: 14px; }
.spotlight-input {
    flex: 1;
    border: 0; outline: 0;
    background: transparent;
    font-size: 15px;
    font-family: inherit;
    color: var(--fg);
}
.spotlight-input::placeholder { color: var(--fg-subtle); }
.spotlight-esc {
    background: var(--bg-muted);
    color: var(--fg-muted);
    font-size: 10.5px; font-weight: 600;
    padding: 3px 6px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: inherit;
}
.spotlight-body {
    max-height: 60vh;
    overflow-y: auto;
    padding: 6px;
}
.spotlight-empty {
    text-align: center;
    color: var(--fg-subtle);
    font-size: 13px;
    padding: 24px;
    margin: 0;
}
.spotlight-group { margin-bottom: 4px; }
.spotlight-group-label {
    padding: 8px 12px 4px;
    font-size: 10.5px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--fg-subtle);
}
.spotlight-item {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: var(--fg);
    font-size: 13px;
    cursor: pointer;
    transition: background .12s;
}
.spotlight-item:hover, .spotlight-item.is-active { background: var(--bg-muted); }
.spotlight-item > i {
    width: 16px; padding-top: 3px;
    color: var(--brand); font-size: 12px;
    flex-shrink: 0;
}
.spotlight-item-body { flex: 1; min-width: 0; }
.spotlight-item-title { font-weight: 500; color: var(--fg); line-height: 1.4; }
.spotlight-item-snippet {
    font-size: 12px; color: var(--fg-muted);
    line-height: 1.45;
    margin-top: 2px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.spotlight-item-meta {
    font-size: 11px; color: var(--fg-subtle);
    margin-top: 3px;
}
.spotlight-item mark, .spotlight-item-snippet mark, .spotlight-item-title mark {
    background: var(--brand-tint);
    color: var(--brand);
    font-weight: 600;
    padding: 0 2px;
    border-radius: 3px;
}

/* ---------- Detail-Card (1:1 wie PM, für längere Text-Sections) ---------- */
.detail-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-xs);
}
.detail-card h2 {
    font-size: 16px; font-weight: 600;
    margin: 0 0 12px;
}
.detail-card p { font-size: 14px; line-height: 1.6; color: var(--fg); margin: 0 0 10px; }
.detail-card p:last-child { margin-bottom: 0; }

/* ---------- Card-Grid (für Stat-/Person-/Location-Karten, alle normaler .card) ---------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin: 0 0 24px;
}
.card-grid .card { padding: 14px 16px; }
.card-grid .card-label {
    font-size: 11.5px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--fg-muted);
    margin: 0 0 4px;
}
.card-grid .card-value {
    font-size: 20px; font-weight: 700;
    color: var(--fg);
    line-height: 1.1;
}
.card-grid .card-sub {
    font-size: 12px; color: var(--fg-subtle);
    margin-top: 2px;
}

/* Link-Card (horizontal: Icon links · Title+Sub mitte · Arrow rechts)
   Wiederverwendbar für Quick-Links, Tool-Links, Anwendungs-Shortcuts. */
.link-card {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 16px;
    color: var(--fg);
    text-decoration: none;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.link-card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
    color: var(--fg);
}
.link-card-icon {
    width: 40px; height: 40px;
    border-radius: var(--radius);
    background: var(--brand-tint);
    color: var(--brand);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.link-card-body { flex: 1; min-width: 0; }
.link-card-title { font-size: 14px; font-weight: 600; color: var(--fg); line-height: 1.3; }
.link-card-sub { font-size: 12.5px; color: var(--fg-muted); margin-top: 2px; line-height: 1.4; }
.link-card-arrow {
    width: 14px; color: var(--fg-subtle);
    transition: transform .15s, color .15s;
    flex-shrink: 0;
}
.link-card:hover .link-card-arrow {
    color: var(--brand);
    transform: translateX(2px);
}

/* People-Card (Initialen + Name + Rolle) */
.people-card {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    text-align: center;
}
.people-initials {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--brand-tint);
    color: var(--brand);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 4px;
}
.people-card strong { font-size: 14px; }

/* Location-Card (Icon + Name + Sub) */
.location-card {
    display: flex; align-items: center; gap: 14px;
}
.location-card > i {
    width: 40px; height: 40px;
    border-radius: var(--radius);
    background: var(--brand-tint);
    color: var(--brand);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.location-card strong { display: block; font-size: 14px; }

/* Häkchen-Liste (in einer detail-card) */
.check-list {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 6px 16px;
    margin: 8px 0 0;
}
.check-list li { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.check-list li i { color: var(--success); font-size: 11px; }

/* ---------- Auth (Login-Seite) ---------- */
.auth-shell {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
    background: var(--brand);
}
.auth-brand {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    margin-bottom: 24px;
}
.auth-brand img {
    height: 40px; width: auto; object-fit: contain;
    filter: drop-shadow(0 1px 2px rgb(0 0 0 / 0.25));
}
.auth-brand-title { font-size: 22px; font-weight: 700; color: #fff; letter-spacing: -0.02em; line-height: 1; }
.auth-card {
    width: 100%; max-width: 420px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 32px;
}
.auth-title { font-size: 20px; font-weight: 600; text-align: center; letter-spacing: -0.01em; margin: 0; }
.auth-subtitle { font-size: 14px; color: var(--fg-muted); text-align: center; margin: 4px 0 24px; }

.form-grid { display: grid; gap: 16px; }
.form-control { display: flex; flex-direction: column; }
.form-label {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 14px; font-weight: 500; color: var(--fg);
    margin-bottom: 6px;
    line-height: 1.5;
}
.input {
    display: block; width: 100%;
    height: 3rem;          /* 48px – wie PM */
    padding: 0 16px;
    background: var(--bg);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    color: var(--fg);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    transition: border-color .15s, outline-color .15s;
}
.input:focus {
    outline: 2px solid var(--brand-tint-2);
    outline-offset: 2px;
    border-color: var(--brand);
}
.input::placeholder { color: var(--fg-subtle); }
.input.is-error { border-color: var(--error); }
.input.is-error:focus { outline-color: var(--error-bg); }

/* Auth-Alert (Validation/Status) */
.auth-alert {
    padding: 10px 14px;
    border-radius: var(--radius);
    font-size: 13px;
    background: var(--error-bg);
    border: 1px solid rgba(239,68,68,0.3);
    color: var(--fg);
    margin-bottom: 14px;
}
.auth-alert ul { margin: 4px 0 0; padding-left: 18px; list-style: disc; }

/* Demo-Login (Dev-Helfer) */
.auth-demo {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px dashed var(--border);
    display: flex; flex-direction: column; gap: 6px; align-items: center;
}
.auth-demo-hint { font-size: 11px; color: var(--fg-subtle); }

/* ---------- Figure (Bild + Caption) ---------- */
.figure-block { margin: 4px 0 0; }
.figure-placeholder {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 8px;
    aspect-ratio: 16 / 7;
    background: var(--bg-muted);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-lg);
    color: var(--fg-subtle);
    font-size: 13px;
}
.figure-placeholder i { font-size: 28px; }
.figure-caption {
    font-size: 13px;
    color: var(--fg-muted);
    margin: 10px 0 0;
    font-style: italic;
}

/* ---------- Inline-Tabellen / Listen ---------- */
.divider { height: 1px; background: var(--border); margin: 22px 0; }
.text-muted { color: var(--fg-muted); }
.text-subtle { color: var(--fg-subtle); }


/* =============================================================================
   Utility-Subset (nur was Views tatsächlich brauchen)
   ============================================================================= */

/* Layout */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.block { display: block; }
.inline { display: inline; }
.hidden { display: none; }
.contents { display: contents; }
.flex-1 { flex: 1 1 0%; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.items-baseline { align-items: baseline; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.justify-start { justify-content: flex-start; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.cursor-pointer { cursor: pointer; }
.pointer-events-none { pointer-events: none; }
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }

/* Gap */
.gap-0 { gap: 0; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-5 { gap: 20px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }

/* Spacing (Padding) */
.p-0 { padding: 0; }
.p-2 { padding: 8px; }
.p-3 { padding: 12px; }
.p-4 { padding: 16px; }
.p-5 { padding: 20px; }
.p-6 { padding: 24px; }
.px-2 { padding-left: 8px; padding-right: 8px; }
.px-3 { padding-left: 12px; padding-right: 12px; }
.px-4 { padding-left: 16px; padding-right: 16px; }
.px-6 { padding-left: 24px; padding-right: 24px; }
.py-1 { padding-top: 4px; padding-bottom: 4px; }
.py-2 { padding-top: 8px; padding-bottom: 8px; }
.py-3 { padding-top: 12px; padding-bottom: 12px; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }
.py-6 { padding-top: 24px; padding-bottom: 24px; }
.py-8 { padding-top: 32px; padding-bottom: 32px; }
.pt-1 { padding-top: 4px; } .pt-2 { padding-top: 8px; } .pt-3 { padding-top: 12px; } .pt-4 { padding-top: 16px; } .pt-6 { padding-top: 24px; }
.pb-1 { padding-bottom: 4px; } .pb-2 { padding-bottom: 8px; } .pb-3 { padding-bottom: 12px; } .pb-4 { padding-bottom: 16px; } .pb-6 { padding-bottom: 24px; }

/* Spacing (Margin) */
.m-0 { margin: 0; }
.m-auto { margin: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; } .mt-10 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 4px; } .mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; } .mb-8 { margin-bottom: 32px; }
.ml-auto { margin-left: auto; }
.mr-2 { margin-right: 8px; }

/* Sizing */
.w-full { width: 100%; }
.w-auto { width: auto; }
.w-6 { width: 24px; }
.w-8 { width: 32px; }
.h-full { height: 100%; }
.min-w-0 { min-width: 0; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-md { max-width: 28rem; }

/* Typography */
.text-xs { font-size: 12px; line-height: 16px; }
.text-sm { font-size: 14px; line-height: 20px; }
.text-base { font-size: 16px; line-height: 24px; }
.text-lg { font-size: 18px; line-height: 28px; }
.text-xl { font-size: 20px; line-height: 28px; }
.text-2xl { font-size: 24px; line-height: 32px; }
.text-3xl { font-size: 30px; line-height: 36px; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.tracking-tight { letter-spacing: -0.025em; }
.tabular-nums { font-variant-numeric: tabular-nums; }
.italic { font-style: italic; }
.whitespace-pre-line { white-space: pre-line; }
.whitespace-nowrap { white-space: nowrap; }
.line-through { text-decoration: line-through; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.break-words { word-wrap: break-word; }

/* Color helpers */
.text-fg { color: var(--fg); }
.text-muted { color: var(--fg-muted); }
.text-subtle { color: var(--fg-subtle); }
.text-brand { color: var(--brand); }
.text-error { color: var(--error); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-info { color: var(--info); }
.text-white { color: #fff; }

.bg-bg { background: var(--bg); }
.bg-soft { background: var(--bg-soft); }
.bg-muted { background: var(--bg-muted); }
.bg-brand { background: var(--brand); }

/* Border + Radius */
.rounded { border-radius: var(--radius); }
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }
.border { border: 1px solid var(--border); }
.border-b { border-bottom: 1px solid var(--border); }
.border-t { border-top: 1px solid var(--border); }
.border-l { border-left: 1px solid var(--border); }
.border-r { border-right: 1px solid var(--border); }
.border-strong { border-color: var(--border-strong); }
.border-none { border: 0; }

/* Shadow */
.shadow-xs { box-shadow: var(--shadow-xs); }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow { box-shadow: var(--shadow); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-none { box-shadow: none; }

/* Grid */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.col-span-3  { grid-column: span 3 / span 3; }
.col-span-4  { grid-column: span 4 / span 4; }
.col-span-6  { grid-column: span 6 / span 6; }
.col-span-8  { grid-column: span 8 / span 8; }
.col-span-12 { grid-column: span 12 / span 12; }

@media (min-width: 640px) {
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sm\:col-span-3  { grid-column: span 3 / span 3; }
    .sm\:col-span-4  { grid-column: span 4 / span 4; }
    .sm\:col-span-6  { grid-column: span 6 / span 6; }
    .sm\:col-span-8  { grid-column: span 8 / span 8; }
    .sm\:inline { display: inline; }
}
@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:inline { display: inline; }
}
@media (min-width: 1024px) {
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lg\:col-span-5  { grid-column: span 5 / span 5; }
    .lg\:col-span-7  { grid-column: span 7 / span 7; }
    .lg\:col-span-12 { grid-column: span 12 / span 12; }
}

/* z-index helpers */
.z-10 { z-index: 10; }
.z-30 { z-index: 30; }
.z-50 { z-index: 50; }

/* Group hover hooks (used in cards) */
.group:hover .group-hover\:text-brand { color: var(--brand); }

/* Transitions */
.transition { transition: all .15s; }
.transition-colors { transition: background-color .15s, border-color .15s, color .15s; }

/* Misc */
.no-underline { text-decoration: none; }
.list-disc { list-style-type: disc; }
.list-inside { list-style-position: inside; }
.opacity-75 { opacity: 0.75; }
.opacity-85 { opacity: 0.85; }
.opacity-90 { opacity: 0.90; }
