/* Global Design System variables */
:root {
    --bg-main: #0b0f19;
    --bg-card: rgba(17, 24, 39, 0.7);
    --bg-card-hover: rgba(23, 31, 50, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;

    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.15);
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);

    --critical: #ef4444;
    --critical-bg: rgba(239, 68, 68, 0.1);
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.1);
    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.1);
    --info: #3b82f6;
    --info-bg: rgba(59, 130, 246, 0.1);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;

    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme overrides */
body.light-theme {
    --bg-main: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-hover: rgba(255, 255, 255, 0.98);
    --border-color: rgba(15, 23, 42, 0.08);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    
    --primary-glow: rgba(99, 102, 241, 0.08);
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

body.light-theme .theme-toggle-btn {
    background: rgba(0, 0, 0, 0.02);
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

body.light-theme .theme-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

body.light-theme .theme-toggle-btn .sun-icon {
    display: none;
}
body:not(.light-theme) .theme-toggle-btn .moon-icon {
    display: none;
}
body.light-theme .glow-bg {
    opacity: 0.35;
}
body.light-theme .headings-tree-container,
body.light-theme .link-scroller-box {
    background-color: rgba(0, 0, 0, 0.02);
}
body.light-theme .tab-navigation {
    background-color: rgba(0, 0, 0, 0.01);
}
body.light-theme .tree-node {
    background-color: rgba(0, 0, 0, 0.01);
    border: 1px solid rgba(0,0,0,0.02);
}
body.light-theme .issue-solution {
    background-color: rgba(0, 0, 0, 0.01);
}


/* Custom Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Light Theme Scrollbars */
body.light-theme ::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.02);
}
body.light-theme ::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.02);
}
body.light-theme ::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.25);
}

/* Base resets & setups */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Background Ambient Glows */
.glow-bg {
    position: fixed;
    top: -10%;
    left: 20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, rgba(168, 85, 247, 0.05) 50%, rgba(0, 0, 0, 0) 100%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
    filter: blur(80px);
}

.app-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Header layout */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    background: var(--primary-gradient);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.25);
}

.logo-icon i {
    width: 22px;
    height: 22px;
    color: #fff;
}

.logo-text h1 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.logo-text h1 span {
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text p {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: -2px;
}

.status-badge {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--success);
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.status-badge .dot {
    width: 8px;
    height: 8px;
    background-color: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--success);
    display: inline-block;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: transform var(--transition-smooth), border-color var(--transition-smooth), background-color var(--transition-smooth);
}

/* Audit search section */
.audit-search-section {
    margin-bottom: 2.5rem;
}

.search-card {
    background: radial-gradient(circle at 100% 0%, rgba(99, 102, 241, 0.1) 0%, rgba(17, 24, 39, 0.8) 70%);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
}

.search-card h2 {
    font-size: 1.85rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.search-card p {
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
    font-size: 1.05rem;
}

.search-form {
    display: flex;
    gap: 1rem;
}

.input-wrapper {
    position: relative;
    flex-grow: 1;
}

.input-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 20px;
    height: 20px;
    transition: color var(--transition-fast);
}

.input-wrapper input {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.1rem 1.1rem 1.1rem 3.2rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1.05rem;
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.input-wrapper input:focus {
    border-color: var(--primary);
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.input-wrapper input:focus+.input-icon {
    color: var(--primary);
}

/* Light Theme search card overrides */
body.light-theme .search-card {
    background: radial-gradient(circle at 100% 0%, rgba(99, 102, 241, 0.05) 0%, rgba(255, 255, 255, 0.95) 70%);
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.04);
}
body.light-theme .input-wrapper input {
    background-color: rgba(15, 23, 42, 0.02);
    border: 1px solid rgba(15, 23, 42, 0.12);
    color: var(--text-primary);
}
body.light-theme .input-wrapper input::placeholder {
    color: var(--text-muted);
}
body.light-theme .input-icon {
    color: var(--text-muted);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.75rem;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    outline: none;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
}

.btn-primary {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.35);
    filter: brightness(1.1);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}

.btn-full {
    width: 100%;
}

.btn-icon {
    width: 18px;
    height: 18px;
}

/* Loader Styles */
.loader-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 1rem;
    width: 100%;
}

.loader-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 3rem;
    border-radius: var(--radius-lg);
    text-align: center;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.spinner {
    width: 60px;
    height: 60px;
    position: relative;
    margin: 0 auto 1.5rem;
}

.double-bounce1,
.double-bounce2 {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--primary);
    opacity: 0.6;
    position: absolute;
    top: 0;
    left: 0;
    animation: sk-bounce 2.0s infinite ease-in-out;
}

.double-bounce2 {
    background-color: #a855f7;
    animation-delay: -1.0s;
}

@keyframes sk-bounce {

    0%,
    100% {
        transform: scale(0.0);
    }

    50% {
        transform: scale(1.0);
    }
}

.loader-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.loader-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.loader-progress-bar {
    width: 100%;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    overflow: hidden;
}

.loader-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--primary-gradient);
    border-radius: 50px;
    animation: fake-loading 8s cubic-bezier(0.1, 0.8, 0.1, 1) forwards;
}

@keyframes fake-loading {
    0% {
        width: 0%;
    }

    50% {
        width: 70%;
    }

    90% {
        width: 95%;
    }

    100% {
        width: 99%;
    }
}

/* Dashboard Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.75rem;
    animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.db-col-4 {
    grid-column: span 4;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.db-col-8 {
    grid-column: span 8;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Responsive columns scaling */
@media (max-width: 1024px) {

    .db-col-4,
    .db-col-8 {
        grid-column: span 12;
    }
}

/* Overall Score Gauge styling */
.score-card {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.score-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.gauge-container {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 1rem;
}

.gauge {
    transform: rotate(-90deg);
}

.gauge-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.04);
    stroke-width: 8;
}

.gauge-val {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease-out;
}

.gauge-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    font-weight: 800;
}

.gauge-text .pct {
    font-size: 1rem;
    color: var(--text-muted);
    margin-left: 1px;
}

.score-label {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.card-divider {
    border: none;
    height: 1px;
    background-color: var(--border-color);
    margin: 1.5rem 0;
}

/* Quick Stats */
.quick-stats {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    text-align: left;
}

.q-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.q-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.q-icon i {
    width: 18px;
    height: 18px;
}

.q-info {
    display: flex;
    flex-direction: column;
}

.q-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.q-val {
    font-size: 0.95rem;
    font-weight: 600;
}

/* Specific state colors for q-icons */
.ssl-ok {
    background-color: var(--success-bg);
    color: var(--success);
}

.ssl-bad {
    background-color: var(--critical-bg);
    color: var(--critical);
}

.load-fast {
    background-color: var(--success-bg);
    color: var(--success);
}

.load-medium {
    background-color: var(--warning-bg);
    color: var(--warning);
}

.load-slow {
    background-color: var(--critical-bg);
    color: var(--critical);
}

.content-size {
    background-color: var(--info-bg);
    color: var(--info);
}

/* Meta Info Card */
.meta-info-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.target-link {
    display: flex;
    margin-bottom: 1.25rem;
}

.url-badge {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-family: monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.meta-tag-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.meta-field label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.meta-field p {
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.4;
    word-break: break-word;
}

.card-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Tabs System */
.tab-navigation {
    display: flex;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.02);
    padding: 0.4rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
    overflow-x: auto;
}

.tab-btn {
    flex-grow: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    white-space: nowrap;
    transition: color var(--transition-fast), background-color var(--transition-fast);
}

.tab-btn:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.03);
}

.tab-btn.active {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tab-btn i {
    width: 16px;
    height: 16px;
}

.tab-content-container {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    min-height: 400px;
}

.tab-pane {
    display: none;
    animation: tabFade 0.3s ease-out forwards;
}

.tab-pane.active {
    display: block;
}

@keyframes tabFade {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

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

.tab-header-info {
    margin-bottom: 1.5rem;
}

.tab-header-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.tab-header-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Filter Bar & Chips */
.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.filter-bar span {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.filter-chips {
    display: flex;
    gap: 0.5rem;
}

.chip {
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.chip:hover,
.chip.active {
    background-color: var(--text-primary);
    color: var(--bg-main);
    border-color: var(--text-primary);
}

.chip-critical.active {
    background-color: var(--critical);
    color: #fff;
    border-color: var(--critical);
}

.chip-warning.active {
    background-color: var(--warning);
    color: #fff;
    border-color: var(--warning);
}

.chip-info.active {
    background-color: var(--info);
    color: #fff;
    border-color: var(--info);
}

/* Issues Cards */
.issues-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.issue-item {
    border-radius: var(--radius-md);
    padding: 1.25rem;
    border: 1px solid var(--border-color);
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.issue-item:hover {
    transform: translateX(4px);
}

.issue-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.issue-icon i {
    width: 16px;
    height: 16px;
}

.issue-body {
    flex-grow: 1;
}

.issue-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.35rem;
}

.issue-badge {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
}

.issue-category {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.issue-desc {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.issue-solution {
    background-color: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    padding: 0.65rem 0.85rem;
    border-left: 3px solid var(--primary);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Issue Severities */
.issue-critical {
    border-left: 4px solid var(--critical);
}

.issue-critical .issue-icon {
    background-color: var(--critical-bg);
    color: var(--critical);
}

.issue-critical .issue-badge {
    background-color: var(--critical-bg);
    color: var(--critical);
}

.issue-warning {
    border-left: 4px solid var(--warning);
}

.issue-warning .issue-icon {
    background-color: var(--warning-bg);
    color: var(--warning);
}

.issue-warning .issue-badge {
    background-color: var(--warning-bg);
    color: var(--warning);
}

.issue-info {
    border-left: 4px solid var(--info);
}

.issue-info .issue-icon {
    background-color: var(--info-bg);
    color: var(--info);
}

.issue-info .issue-badge {
    background-color: var(--info-bg);
    color: var(--info);
}

/* Headings Tree Visualization */
.headings-tree-container {
    background-color: rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.headings-tree {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tree-node {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.95rem;
}

.h-tag {
    font-size: 0.75rem;
    font-weight: 800;
    color: #fff;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    min-width: 32px;
    text-align: center;
}

.h1-tag {
    background: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
}

.h2-tag {
    background: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
}

.h3-tag {
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
}

.h4-tag {
    background: linear-gradient(135deg, #10b981 0%, #84cc16 100%);
}

.h5-tag {
    background: linear-gradient(135deg, #f59e0b 0%, #eab308 100%);
}

.h6-tag {
    background: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%);
}

/* Indentation styling based on levels */
.tree-node-1 {
    margin-left: 0;
}

.tree-node-2 {
    margin-left: 1.5rem;
    border-left: 2px dashed rgba(255, 255, 255, 0.1);
}

.tree-node-3 {
    margin-left: 3rem;
    border-left: 2px dashed rgba(255, 255, 255, 0.1);
}

.tree-node-4 {
    margin-left: 4.5rem;
    border-left: 2px dashed rgba(255, 255, 255, 0.1);
}

.tree-node-5 {
    margin-left: 6rem;
    border-left: 2px dashed rgba(255, 255, 255, 0.1);
}

.tree-node-6 {
    margin-left: 7.5rem;
    border-left: 2px dashed rgba(255, 255, 255, 0.1);
}

/* Split Cards Row */
.split-cards-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.mini-status-card {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.mini-status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.mini-status-header h4 {
    font-size: 1.05rem;
    font-weight: 600;
}

.badge {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 50px;
}

.badge-success {
    background-color: var(--success-bg);
    color: var(--success);
}

.badge-critical {
    background-color: var(--critical-bg);
    color: var(--critical);
}

.stat-large {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.stat-small {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-left: 0.5rem;
}

.alt-summary-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Links integrity data table */
.link-scroller-box {
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: rgba(0, 0, 0, 0.1);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    text-align: left;
}

.data-table th,
.data-table td {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 1;
}

.data-table td {
    white-space: normal;
    word-break: break-all;
}

.link-cell-url {
    color: var(--text-secondary);
    font-family: monospace;
}

.link-cell-url:hover {
    color: var(--primary);
}

.status-badge-inline {
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

/* Content quality screen styles */
.content-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .content-stats-grid {
        grid-template-columns: 1fr;
    }
}

.content-metric-card {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.metric-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background-color: var(--primary-glow);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.metric-icon i {
    width: 20px;
    height: 20px;
}

.metric-info {
    display: flex;
    flex-direction: column;
}

.metric-val {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
}

.metric-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Placeholder Alerts */
.placeholder-alert-box {
    border-radius: var(--radius-md);
    padding: 1.25rem;
    border: 1px solid var(--border-color);
}

.placeholder-healthy {
    background-color: var(--success-bg);
    border-left: 4px solid var(--success);
    color: var(--text-primary);
}

.placeholder-unhealthy {
    background-color: var(--critical-bg);
    border-left: 4px solid var(--critical);
    color: var(--text-primary);
}

/* Sub-scores grid & cards styling */
.sub-scores-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

@media (max-width: 768px) {
    .sub-scores-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .sub-scores-grid {
        grid-template-columns: 1fr;
    }
}

.sub-score-card {
    padding: 1.15rem 1.25rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sub-score-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sub-score-val {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0.25rem 0;
    line-height: 1.2;
    transition: color var(--transition-fast);
}

.sub-score-bar-bg {
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    overflow: hidden;
}

body.light-theme .sub-score-bar-bg {
    background: rgba(0, 0, 0, 0.06);
}

.sub-score-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 50px;
    transition: width 1s cubic-bezier(0.1, 0.8, 0.1, 1), background-color var(--transition-fast);
}

/* Hide helper */
.hidden {
    display: none !important;
}

/* Print Styles for PDF Export */
@media print {
    body {
        background: #fff !important;
        color: #000 !important;
        font-size: 12pt;
    }

    .glow-bg,
    .audit-search-section,
    .status-badge,
    .tab-navigation,
    .filter-bar,
    .card-actions,
    .loader-container {
        display: none !important;
    }

    .app-container {
        padding: 0;
        max-width: 100%;
    }

    .dashboard-grid {
        display: block !important;
    }

    .db-col-4,
    .db-col-8 {
        width: 100% !important;
        float: none !important;
        margin-bottom: 20px;
    }

    .glass-card,
    .tab-content-container,
    .mini-status-card,
    .content-metric-card,
    .tree-node,
    .issue-item {
        background: #fff !important;
        color: #000 !important;
        border: 1px solid #ddd !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        page-break-inside: avoid;
        margin-bottom: 15px;
    }

    /* Make text readable in print */
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    p,
    span,
    label,
    td,
    th {
        color: #000 !important;
    }

    .tab-pane {
        display: block !important;
        opacity: 1 !important;
        margin-bottom: 30px;
        page-break-before: auto;
    }

    .headings-tree-container {
        background: #fff !important;
        border: 1px solid #ddd !important;
    }

    .link-scroller-box {
        max-height: none !important;
        overflow: visible !important;
    }

    .issue-critical {
        border-left: 4px solid #ff0000 !important;
    }

    .issue-warning {
        border-left: 4px solid #ffaa00 !important;
    }

    .issue-info {
        border-left: 4px solid #0000ff !important;
    }

    .issue-solution {
        background: #f9f9f9 !important;
        border-left: 3px solid #000 !important;
    }

    .h-tag {
        color: #000 !important;
        border: 1px solid #000 !important;
        background: none !important;
    }
}