/* ============================================================================
   Inline Extracts — Utility classes extracted from inline style= attributes
   Purpose: Replace repeated inline styles across all Blade views
   ============================================================================ */

/* ── Font sizes ── */
.cs-fs-10 { font-size: 10px; }
.cs-fs-11 { font-size: 11px; }
.cs-fs-12 { font-size: 12px; }
.cs-fs-13 { font-size: 13px; }
.cs-fs-14 { font-size: 14px; }
.cs-fs-15 { font-size: 15px; }
.cs-fs-16 { font-size: 16px; }
.cs-fs-18 { font-size: 18px; }
.cs-fs-20 { font-size: 20px; }
.cs-fs-22 { font-size: 22px; }
.cs-fs-24 { font-size: 24px; }
.cs-fs-3rem { font-size: 3rem; }
.cs-fs-4rem { font-size: 4rem; }
.cs-fs-075rem { font-size: 0.75rem; }
.cs-fs-08rem  { font-size: 0.8rem; }
.cs-fs-085rem { font-size: 0.85rem; }

/* ── Font weights ── */
.cs-fw-600 { font-weight: 600; }
.cs-fw-700 { font-weight: 700; }

/* ── Colors (brand tokens) ── */
.cs-color-muted { color: var(--brand-muted); }
.cs-color-fg { color: var(--brand-fg); }
.cs-color-green { color: #22c55e; }
.cs-color-red { color: #ef4444; }
.cs-color-amber { color: #f59e0b; }
.cs-color-indigo { color: #818cf8; }
.cs-color-purple { color: #6366f1; }

/* ── Max/min width constraints ── */
.cs-max-w-100 { max-width: 100px; }
.cs-max-w-120 { max-width: 120px; }
.cs-max-w-140 { max-width: 140px; }
.cs-max-w-160 { max-width: 160px; }
.cs-max-w-200 { max-width: 200px; }
.cs-max-w-250 { max-width: 250px; }
.cs-max-w-300 { max-width: 300px; }
.cs-min-w-90 { min-width: 90px; }
.cs-min-w-280 { min-width: 280px; }
.cs-min-w-450 { min-width: 450px; }
.cs-w-auto { width: auto; }

/* ── Scrollable containers ── */
.cs-scroll-280 { max-height: 280px; overflow-y: auto; }
.cs-scroll-400 { max-height: 400px; overflow-y: auto; }
.cs-scroll-600 { max-height: 600px; overflow-y: auto; }

/* ── Cursor/pointer for interactive items ── */
.cs-pointer { cursor: pointer; }
.cs-pointer-transition { cursor: pointer; transition: background-color 0.15s ease; }

/* ── Text utilities ── */
.cs-capitalize { text-transform: capitalize; }
.cs-uppercase { text-transform: uppercase; }
.cs-letter-03 { letter-spacing: .3px; }
.cs-letter-04 { letter-spacing: .4px; }
.cs-letter-05 { letter-spacing: .5px; }

/* ── Filter sidebar: search icon positioning ── */
.cs-filter-search-icon {
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--brand-muted);
    font-size: 14px;
}

/* ── Filter sidebar: search input with icon ── */
.cs-filter-search-input {
    padding-left: 32px;
    border: 1px solid var(--brand-border);
    border-radius: 4px;
    font-size: 13px;
}

/* ── Flag images ── */
.cs-flag-icon { width: 16px; height: 12px; }

/* ── Flex utilities (not covered by Bootstrap) ── */
.cs-flex-center { display: flex; align-items: center; justify-content: center; }
.cs-flex-between { display: flex; align-items: center; justify-content: space-between; }
.cs-gap-4 { gap: 4px; }
.cs-gap-6 { gap: 6px; }
.cs-gap-8 { gap: 8px; }
.cs-gap-12 { gap: 12px; }

/* ── Spacing ── */
.cs-mb-4 { margin-bottom: 4px; }
.cs-mb-6 { margin-bottom: 6px; }
.cs-mb-8 { margin-bottom: 8px; }
.cs-mb-14 { margin-bottom: 14px; }
.cs-mt-6 { margin-top: 6px; }
.cs-mt-12 { margin-top: 12px; }
.cs-mt-16 { margin-top: 16px; }
.cs-mt-20 { margin-top: 20px; }
.cs-pt-16 { padding-top: 16px; }
.cs-pt-100 { padding-top: 100px; }
.cs-p-12 { padding: 12px; }

/* ── Borders ── */
.cs-border-top-subtle { border-top: 1px solid rgba(148,163,184,.1); }
.cs-border-subtle { border: 1px solid rgba(148,163,184,.1); }

/* ── Width/height for small icons in workflow ── */
.cs-icon-sm { width: 20px; height: 20px; font-size: 10px; border-radius: 5px; }
.cs-icon-md { width: 28px; height: 28px; font-size: 12px; border-radius: 7px; }
.cs-icon-panel { width: 28px; height: 28px; font-size: 13px; border-radius: 7px; }

/* ── Spinner small override ── */
.cs-spinner-sm { width: 14px; height: 14px; }

/* ── Workflow-specific utilities ── */
.cs-wf-divider { width: 1px; height: 24px; background: rgba(148,163,184,.12); }
.cs-wf-toolbar-label { display: flex; align-items: center; gap: 6px; cursor: pointer; margin: 0; }
.cs-wf-toolbar-switch { margin: 0; padding: 0; }
.cs-wf-toolbar-checkbox { margin: 0; cursor: pointer; }

/* ── Keyword selected card ── */
.cs-selected-card {
    margin-top: 12px;
    padding: 12px;
    background: rgba(99,102,241,.06);
    border-radius: 10px;
    border: 1px solid rgba(99,102,241,.12);
}

/* ── Branch label styles ── */
.cs-branch-true { font-size: 11px; font-weight: 700; color: #22c55e; padding: 4px 8px; letter-spacing: .3px; }
.cs-branch-false { font-size: 11px; font-weight: 700; color: #ef4444; padding: 4px 8px; letter-spacing: .3px; }

/* ── Port badge (true/false) ── */
.cs-port-true { background: rgba(34,197,94,.12); color: #22c55e; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 4px; }
.cs-port-false { background: rgba(239,68,68,.12); color: #ef4444; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 4px; }

/* ── Connection list item ── */
.cs-conn-row { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 12px; color: var(--brand-fg); }
.cs-conn-empty { font-size: 12px; color: var(--brand-muted); padding: 8px 0; }

/* ── Add menu item description ── */
.cs-menu-title { font-weight: 600; font-size: 13px; }
.cs-menu-sub { font-size: 11px; color: var(--brand-muted); }

/* ── Section field label (IF panel) ── */
.cs-section-label { font-size: 11px; font-weight: 600; color: var(--brand-muted); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 8px; }

/* ── Condition node port colors ── */
.cs-port-out-true { top: 30%; background: #22c55e; border-color: #22c55e; }
.cs-port-out-false { top: 70%; background: #ef4444; border-color: #ef4444; }

/* ── Node add button positioning ── */
.cs-node-add-true { top: 30%; transform: translateY(-50%); }
.cs-node-add-false { top: 70%; transform: translateY(-50%); }

/* ── Ready workflow button gradient ── */
.cs-btn-ready { background: linear-gradient(135deg, #f59e0b, #d97706); }

/* ── Threat page: logo image (round) ── */
.cs-logo-round { border-radius: 50%; margin-right: 5px; }

/* ── Threat page: empty-state icon ── */
.cs-empty-icon { font-size: 3rem; color: var(--brand-muted); }

/* ── Threat page: "None" tag placeholder ── */
.cs-tag-none { color: var(--brand-text-secondary); font-style: italic; font-size: 10px; }

/* ── Opacity utilities ── */
.cs-opacity-50 { opacity: 0.5; }
.cs-opacity-60 { opacity: 0.6; }
.cs-opacity-75 { opacity: 0.75; }
.cs-opacity-80 { opacity: 0.8; }
.cs-opacity-85 { opacity: 0.85; }
