/* =================================================================
   Theme CSS: Parchment & Warm Dark Palette
   ================================================================ */

:root {
    /* --- Light Mode (Default) --- */
    --bg-canvas: #F7E6CA;
    --accent-flash: #fee440;

    /* Neutrals (High Contrast WCAG AA/AAA Compliant) */
    --neutral-main: #2C2621;
    --neutral-muted: #544C42;

    /* Surfaces & Borders */
    --surface-card: #FFF8EE;
    --surface-card-hover: #EFE0C7;
    --border-subtle: #BBA88F;
    --color-border: var(--border-subtle);

    /* Headers & Nav */
    --color-level1-bg: #2C2621;
    --color-level1-text: #F7E6CA;
    --color-level1-active: #fee440;

    --color-level2-bg: #EBD8BA;
    --color-level2-text: #2C2621;
    /* --color-level2-active-bg: #F7E6CA; */
    --color-level2-active-bg: var(--surface-card);
    --color-level2-active-text: #2C2621;


    /* Semantic States (Text + Soft Surface Tint) */
    --color-success: #1b472c;
    --bg-success-tint: #D9E6DC;

    --color-warning: #733F05;
    --bg-warning-tint: #F2DEC2;

    --color-danger: #8B2626;
    --bg-danger-tint: #F2D5D5;

    --color-info: #1D4ED8;
    --bg-info-tint: #D9E4F5;

    /* Core Layout Mapping */
    --color-body-bg: var(--bg-canvas);
    --color-body-text: var(--neutral-main);
    --color-text-heading: var(--neutral-main);
    --color-text-muted: var(--neutral-muted);
    --color-card-bg: var(--surface-card);
    --color-card-border: var(--border-subtle);
    --color-card-hover-bg: var(--surface-card-hover);
    --color-primary: #1D4ED8;
    --color-primary-hover: #1e40af;
    --color-emerald: #1b472c;
    --color-emerald-hover: #12331f;
    --color-danger-hover: #691c1c;

    --font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --jail-max-width: 1050px;
}

/* --- Dark Mode Overrides --- */
:root[data-theme="dark"] {
    --bg-canvas: #1E1A16;
    --accent-flash: #fee440;

    /* Neutrals */
    --neutral-main: #F7E6CA;
    --neutral-muted: #C8BAA8;

    /* Surfaces & Borders */
    --surface-card: #28231D;
    --surface-card-hover: #332C24;
    --border-subtle: #54483B;
    --color-border: var(--border-subtle);

    /* Headers & Nav */
    --color-level1-bg: #161310;
    --color-level1-text: #F7E6CA;
    --color-level1-active: #fee440;

    --color-level2-bg: #26211C;
    --color-level2-text: #EBD8BA;
    --color-level2-active-bg: #1E1A16;
    --color-level2-active-text: #F7E6CA;

    /* Semantic States (Text + Soft Surface Tint) */
    --color-success: #4ADE80;
    --bg-success-tint: #062E1B;

    --color-warning: #FBBF24;
    --bg-warning-tint: #331E05;

    --color-danger: #F87171;
    --bg-danger-tint: #330C0C;

    --color-info: #93C5FD;
    --bg-info-tint: #0C2244;

    --color-primary: #60A5FA;
    --color-primary-hover: #93c5fd;
    --color-emerald: #4ADE80;
    --color-emerald-hover: #86efac;
}

html,
body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family);
    background-color: var(--color-body-bg);
    color: var(--color-body-text);
    line-height: 1.5;
    transition: background-color 0.2s ease, color 0.2s ease;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

/* Overall Page Layout Structure */
.page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.jail {
    max-width: var(--jail-max-width);
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

/* Misc */
.h3 {
    font-size: 1.17em;
    font-weight: bold;
}

/* Header Level 1 (Global Nav Header) */
.level-1 {
    background-color: var(--color-level1-bg);
    color: var(--color-level1-text);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.level-1-inner {
    display: flex;
    flex-direction: column;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 0;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: var(--color-level1-text);
    text-decoration: none;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.logo-badge {
    background: var(--accent-flash);
    color: #2C2621;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.level-1 a {
    display: flex;
    align-items: center;
    padding: 1.25rem 1rem;
    color: var(--color-level1-text);
    opacity: 0.85;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.15s ease;
}

.level-1 a:hover:not(.active) {
    opacity: 1;
    text-decoration: none;
}

.level-1 a.active {
    color: var(--color-level1-active);
    opacity: 1;
    font-weight: 700;
    text-decoration: none;
    border-top: 3px solid var(--color-level1-active);
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-level1-text);
    border-radius: 9999px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    margin-left: 0.75rem;
}

.theme-toggle-btn:hover {
    background: var(--accent-flash);
    color: #2C2621;
    border-color: var(--accent-flash);
    transform: scale(1.05);
}

.auth-nav-btn {
    margin-left: auto;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
    border-radius: 6px;
    padding: 0.5rem 1rem !important;
    border-bottom: none !important;
    transition: background-color 0.15s ease;
}

.auth-nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Header Level 2 (Sub-Navigation Header) */
.level-2 {
    background-color: var(--color-level2-bg);
    border-bottom: 1px solid var(--border-subtle);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.level-2-inner {
    display: flex;
    flex-direction: column;
}

.workspace-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--neutral-muted);
}

.workspace-select {
    margin-left: 0.5rem;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    border: 1px solid var(--border-subtle);
    background-color: var(--surface-card);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--neutral-main);
    cursor: pointer;
}

.workspace-select:focus {
    outline: none;
    border-color: var(--color-primary);
}

.subnav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.level-2 a {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.875rem 1.25rem;
    color: var(--color-level2-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.15s ease;
    border-top: 3px solid transparent;
}

.level-2 a.active {
    background-color: var(--color-level2-active-bg);
    color: var(--color-level2-active-text);
    font-weight: 700;
}

.level-2 a:hover:not(.active) {
    background-color: var(--surface-card-hover);
    color: var(--neutral-main);
}

/* Responsive Header Layout Breakpoints */
@media (min-width: 650px) {
    .level-1-inner {
        flex-direction: row;
        justify-content: space-between;
    }

    .logo-wrapper {
        padding: 0;
    }

    .level-2-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .workspace-wrapper {
        padding: 0;
    }

    .subnav {
        justify-content: flex-start;
    }
}

/* Main Content Area */
main {
    flex: 1;
    padding: 2.5rem 0;
}

main h1 {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--neutral-main);
    margin-top: 0;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

main h1 a {
    color: inherit;
    text-decoration: none;
}

main h1 a:hover {
    text-decoration: underline;
}

main p.page-desc {
    color: var(--neutral-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

/* Accordion Accord / Details Component */
.basic-cord {
    margin-bottom: 1.5rem;
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.basic-cord summary {
    font-size: 1.35rem;
    font-weight: 700;
    cursor: pointer;
    color: var(--neutral-main);
    outline: none;
    user-select: none;
}

.basic-cord summary:hover {
    color: var(--color-primary);
}

.basic-cord-content-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 1rem;
}

/* Cards & Card Cord Components */
.card {
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-subtle);
    position: relative;
    padding: 1rem 1.25rem;
    background-color: var(--surface-card);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
    cursor: pointer;
}

.card:hover {
    background-color: var(--surface-card-hover);
    border-color: var(--neutral-muted);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.card .card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.card .card-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

/* Ensure action buttons sit above stretched card link overlay */
.card button,
.card .table-actions button,
.card .card-actions button {
    position: relative;
    z-index: 2;
}

.card-cord .card-cord__title-pill-wrapper {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.card-cord .card-cord__title {
    font-size: 1.1rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    color: var(--neutral-main);
}

.card-cord .card-cord__desc {
    font-size: 0.875rem;
    color: var(--neutral-muted);
    margin: 0.375rem 0 0 0;
}

/* Pill / Badge Component */
.pill {
    border-radius: 9999px;
    border: 1px solid var(--border-subtle);
    padding: 3px 10px;
    background-color: var(--surface-card-hover);
    font-size: 0.775rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    line-height: 1.2;
    white-space: nowrap;
    color: var(--neutral-main);
}

.pill-success {
    background-color: var(--bg-success-tint);
    border-color: var(--color-success);
    color: var(--color-success);
}

.pill-warning {
    background-color: var(--bg-warning-tint);
    border-color: var(--color-warning);
    color: var(--color-warning);
}

.pill-danger {
    background-color: var(--bg-danger-tint);
    border-color: var(--color-danger);
    color: var(--color-danger);
}

.pill-info {
    background-color: var(--bg-info-tint);
    border-color: var(--color-info);
    color: var(--color-info);
}

.pill-neutral {
    background-color: var(--surface-card-hover);
    border-color: var(--border-subtle);
    color: var(--neutral-main);
}

/* Panel Layout Grids */
.panel-layout-grid-42 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.panel-layout-grid-50 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.panel-layout-grid-1 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .panel-layout-grid-42 {
        grid-template-columns: 2fr 1fr;
    }
    .panel-layout-grid-50 {
        grid-template-columns: 1fr 1fr;
    }
}

.panel {
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 1.5rem;
    background: var(--surface-card);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.panel h2 {
    margin-top: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--neutral-main);
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Forms & Buttons */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--neutral-muted);
    margin-bottom: 0.375rem;
}

.form-control {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    font-size: 0.875rem;
    color: var(--neutral-main);
    background-color: var(--surface-card);
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
    text-wrap: nowrap;
}

.btn-icon-only {
    padding: 0.25rem 0.5rem;
}

.table-responsive {
    overflow-x: auto;
}

.table-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-end;
    white-space: nowrap;
}

.mono-text {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.text-sm-muted {
    font-size: 0.775rem;
    color: var(--neutral-muted);
}

.text-nowrap {
    white-space: nowrap;
    text-wrap: nowrap;
}

.header-action-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 1rem;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    color: #ffffff;
}

.btn-emerald {
    background-color: var(--color-emerald);
    color: #ffffff;
    border-color: var(--color-emerald);
}

.btn-emerald:hover {
    background-color: var(--color-emerald-hover);
    color: #ffffff;
}

.btn-secondary {
    background-color: var(--neutral-muted);
    color: #ffffff;
    border-color: var(--neutral-muted);
}

.btn-secondary:hover {
    opacity: 0.9;
}

.btn-outline {
    background-color: transparent;
    color: var(--neutral-main);
    border-color: var(--border-subtle);
}

.btn-outline:hover {
    background-color: var(--surface-card-hover);
    border-color: var(--neutral-muted);
}

.btn-danger {
    background-color: var(--color-danger);
    color: #ffffff;
    border-color: var(--color-danger);
}

.btn-danger:hover {
    background-color: var(--color-danger-hover);
}

.btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.775rem;
}

.btn-block {
    width: 100%;
}

/* Custom Table Component */
.table-custom {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.table-custom th,
.table-custom td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.875rem;
}

.table-custom th {
    background-color: #f8fafc;
    font-weight: 700;
    color: #475569;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table-custom tr:last-child td {
    border-bottom: none;
}

.table-custom tr:hover td {
    background-color: #f8fafc;
}

/* Alerts and Banners */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    border: 1px solid transparent;
}

.alert-error {
    background-color: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.alert-success {
    background-color: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.alert-info {
    background-color: #f0f9ff;
    border-color: #bae6fd;
    color: #075985;
}

/* Footer Component */
footer {
    background-color: var(--color-level1-bg);
    color: #94a3b8;
    padding: 2.5rem 0;
    margin-top: auto;
    border-top: 1px solid #334155;
    font-size: 0.875rem;
}

footer .footer-inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

@media (min-width: 650px) {
    footer .footer-inner {
        flex-direction: row;
    }
}

footer a {
    color: #cbd5e1;
    text-decoration: none;
}

footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Utilities */
.mt1 {
    margin-top: 1rem;
}

.mt2 {
    margin-top: 2rem;
}

.mt3 {
    margin-top: 3rem;
}

.mb1 {
    margin-bottom: 1rem;
}

.mb2 {
    margin-bottom: 2rem;
}

.flex {
    display: flex;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gap-1 {
    gap: 0.5rem;
}

.gap-2 {
    gap: 1rem;
}

.text-muted {
    color: var(--color-text-muted);
}

.text-center {
    text-align: center;
}

/* Accessible Screen Reader Only Label Utility */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ==========================================
   Report & Audit Findings Component System
   ========================================== */

/* Report Summary Header Panel */
.report-header-panel {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.report-header-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.report-title-group h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-text-heading);
    margin: 0.25rem 0 0 0;
}

.report-meta-badges {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
}

.report-progress-section {
    margin-top: 1rem;
}

.report-progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 0.35rem;
}

.report-progress-bar-track {
    width: 100%;
    height: 10px;
    background-color: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.report-progress-bar-fill {
    height: 100%;
    background-color: var(--color-primary);
    border-radius: 999px;
    transition: width 0.5s ease;
}

/* Report Metrics Grid */
.report-metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .report-metrics-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 900px) {
    .report-metrics-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.report-metric-tile {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.metric-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
}

.metric-value {
    font-size: 1.65rem;
    font-weight: 800;
    margin-top: 0.25rem;
    color: var(--color-text-heading);
}

.metric-value.text-danger {
    color: #dc2626;
}

.metric-value.text-warning {
    color: #d97706;
}

.metric-value.text-indigo {
    color: #4f46e5;
}

.metric-value.text-rose {
    color: #e11d48;
}

.metric-value.text-purple {
    color: #7c3aed;
}

/* Report Toolbar */
.report-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.report-toolbar-title h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.report-toolbar-title p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin: 0.25rem 0 0 0;
}

.report-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Page URL Card List */
.report-url-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.report-url-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: border-color 0.15s ease;
}

.report-url-card[open] {
    border-color: #94a3b8;
}

.report-url-card.zero-issue-card {
    border-color: #cbd5e1;
    opacity: 0.9;
}

.report-url-card.hidden {
    display: none !important;
}

.report-url-summary {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.875rem 1.25rem;
    background: #ffffff;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.15s ease;
}

.report-url-summary:hover {
    background: #f8fafc;
}

.report-url-header-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
}

.report-url-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.report-url-status-wrapper {
    display: flex;
    align-items: center;
}

.report-url-title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    min-width: 0;
}

.report-url-title-row i.chevron-icon {
    font-size: 0.875rem;
    color: #94a3b8;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.report-url-card[open] .report-url-title-row i.chevron-icon {
    transform: rotate(90deg);
}

.report-url-text-container {
    flex: 1;
    min-width: 0;
}

.report-url-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-heading);
    word-break: break-all;
    overflow-wrap: anywhere;
    font-family: inherit;
    line-height: 1.4;
}

.report-url-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.icon-btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #475569;
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
}

.icon-btn-action:hover {
    background: #f1f5f9;
    color: var(--color-primary);
    border-color: #94a3b8;
}

/* Pulsing Scanning Status Pill */
@keyframes pill-pulse-anim {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.45);
    }

    70% {
        box-shadow: 0 0 0 7px rgba(37, 99, 235, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
}

.pill-scanning {
    background-color: #2563eb;
    color: #ffffff;
    animation: pill-pulse-anim 1.8s infinite;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
}

.spin {
    animation: spin-anim 1.2s linear infinite;
    display: inline-block;
}

@keyframes spin-anim {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Expanded URL Body Panel */
.report-url-body {
    padding: 1.25rem;
    background-color: #f8fafc;
    border-top: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Category Sections inside URL */
.category-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem 1.25rem;
}

.category-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.category-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text-heading);
    text-transform: capitalize;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.finding-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Individual Finding Item Styling */
.finding-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 1rem;
}

.finding-item-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .finding-item-grid {
        grid-template-columns: 180px 1fr;
    }
}

.finding-item-label {
    font-weight: 700;
    color: #475569;
}

.finding-item-value {
    color: #0f172a;
    word-break: break-word;
}

.code-box {
    display: block;
    background-color: #0f172a;
    color: #38bdf8;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.8rem;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
    margin-top: 0.35rem;
    position: relative;
}

.code-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #1e293b;
    padding: 0.35rem 0.75rem;
    border-radius: 6px 6px 0 0;
    font-family: monospace;
    font-size: 0.75rem;
    color: #475569;
}

.code-box-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #0f172a;
    color: #4ade80;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.775rem;
    overflow-x: auto;
    margin-top: 0.35rem;
}

.finding-action-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
}

/* Ignored Section inside URL */
.report-ignored-section {
    background: #faf5ff;
    border: 1px solid #e9d5ff;
    border-radius: 8px;
    overflow: hidden;
}

.report-ignored-summary {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #6b21a8;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.report-ignored-body {
    padding: 1rem;
    background: #ffffff;
    border-top: 1px solid #e9d5ff;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 1000;
    animation: modalBackdropFadeIn 0.2s ease-out forwards;
}

.modal-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    width: 100%;
    max-width: 480px;
    padding: 1.5rem;
    box-sizing: border-box;
    animation: modalCardScaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-card-danger {
    border-top: 4px solid var(--color-danger);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 1rem;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-text-heading);
}

.modal-close-btn {
    background: transparent;
    border: none;
    font-size: 1.25rem;
    color: #94a3b8;
    cursor: pointer;
}

.modal-close-btn:hover {
    color: #0f172a;
}

/* Animated Row Deletion Keyframes */
.row-deleting {
    animation: slideFadeOutDelete 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideFadeOutDelete {
    0% {
        background-color: #fee2e2 !important;
        opacity: 1;
        transform: translateX(0) scale(1);
    }

    30% {
        background-color: #fca5a5 !important;
        opacity: 0.8;
        transform: translateX(-10px) scale(0.99);
    }

    100% {
        background-color: #fecaca !important;
        opacity: 0;
        transform: translateX(-35px) scale(0.95);
        height: 0;
        padding-top: 0;
        padding-bottom: 0;
        margin: 0;
        border: none;
    }
}

@keyframes modalBackdropFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalCardScaleIn {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Sponsor Spotlight Card Component */
.sponsor-spotlight-card {
    background: linear-gradient(135deg, var(--surface-card) 0%, var(--surface-card-hover) 100%);
    border: 1px solid var(--border-subtle);
    border-left: 4px solid var(--color-primary);
    border-radius: 10px;
    padding: 1.15rem 1.35rem;
    margin-bottom: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sponsor-spotlight-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.sponsor-spotlight-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.sponsor-spotlight-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--neutral-main);
    margin: 0;
}

.sponsor-spotlight-desc {
    font-size: 0.85rem;
    color: var(--neutral-muted);
    margin: 3px 0 0 0;
    line-height: 1.4;
}

@media (max-width: 650px) {
    .sponsor-spotlight-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Report Time Stats Sub-panel */
.report-time-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 14px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.85rem;
    margin-top: 10px;
}

.report-time-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.report-time-pills {
    display: flex;
    align-items: center;
    gap: 8px;
}

.animate-pulse {
    animation: pulse 1.8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .4;
    }
}