/**
 * ETO Efficiency Audit™ Stylesheet
 * TYPO3 13.4 Compatible
 * Color Scheme: Teal Blue (#1e5f74), Forest Green (#5a9367), Mauve (#744560), Mustard (#746145)
 * Includes: Gantt Chart Styles for 90-Day Transformation Roadmap
 */

/* ==========================================
   CSS VARIABLES
   ========================================== */
:root {
    /* Primary Colors */
    --primary-blue: #1e5f74;
    --primary-green: #5a9367;
    --accent-pink: #744560;
    --accent-yellow: #746145;

    /* Derived Colors */
    --primary-blue-light: #2a7d95;
    --primary-blue-dark: #154854;
    --primary-green-light: #6fb07d;
    --primary-green-dark: #487350;

    /* Status Colors */
    --success-color: #5a9367;
    --warning-color: #746145;
    --danger-color: #744560;
    --info-color: #1e5f74;
    --danger-rgb: rgb(220, 53, 69);

    /* Neutral Colors */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    --point-blue: #2b84A4;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;

    /* Typography */
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 300ms ease-in-out;
    --transition-slow: 500ms ease-in-out;

    /* Gantt Chart Specific Variables */
    --gantt-phase-1: #1e5f74;
    --gantt-phase-1-light: #2a7d95;
    --gantt-phase-2: #5a9367;
    --gantt-phase-2-light: #6fb07d;
    --gantt-phase-3: #744560;
    --gantt-phase-3-light: #8f5577;
    --gantt-border: #e5e7eb;
    --gantt-header-bg: #1e5f74;
    --gantt-text: #1f2937;
    --gantt-text-light: #6b7280;
}

/* ==========================================
   PRINT STYLES
   ========================================== */
@media print {
    .no-print {
        display: none !important;
    }

    body {
        background: white !important;
    }

    .report-container {
        box-shadow: none !important;
    }

    .section {
        page-break-inside: avoid;
    }

    .metric-card,
    .insight-box,
    .action-item {
        page-break-inside: avoid;
    }

    @page {
        margin: 2cm;
    }

    body {
        padding: 0;
    }

    .audit-container,
    .report-container {
        max-width: 100%;
        box-shadow: none;
        border-radius: 0;
    }

    .metric-card,
    .insight-box {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .section {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    h2, h3, h4, h5 {
        break-after: avoid;
        page-break-after: avoid;
    }

    /* Convert gradients to solid colors for better print */
    .audit-header,
    .report-header,
    .metric-card,
    .btn-primary {
        background: var(--primary-blue) !important;
        color: white !important;
    }

    .progress-bar {
        background: var(--primary-green) !important;
    }

    /* Gantt Chart Print Styles */
    .gantt-container {
        box-shadow: none;
        page-break-inside: avoid;
    }

    .gantt-bar {
        box-shadow: none;
    }

    .gantt-bar:hover {
        transform: none;
    }

    .gantt-milestone i {
        animation: none;
    }

    .gantt-header {
        background: var(--gantt-header-bg) !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .gantt-bar.phase-1,
    .gantt-bar.phase-2,
    .gantt-bar.phase-3 {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* ==========================================
   BASE STYLES
   ========================================== */
body {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-200) 100%);
    font-family: var(--font-family);
    min-height: 100vh;
    padding: var(--spacing-xl) 0;
    color: var(--gray-800);
    line-height: 1.6;
}

a:link { color: #0000EE; }
a:visited { color: #551A8B; }

a:hover {
    color: var(--primary-blue-light);
}

.logo-point {
    color: var(--point-blue);
    font-size: 2.2em;
    line-height: 0;
    vertical-align: baseline;
    display: inline-block;
}
/* ==========================================
   CONTAINER STYLES
   ========================================== */
.audit-container,
.report-container {
    max-width: 1000px;  /* Keep for non-grid contexts */
    margin: 0 auto;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
    overflow: hidden;
}

/* Override when inside grid system */
.row > [class*="col-"] .report-container, .row > [class*="col-"] .audit-container {
    max-width: 1000px;
    margin-left: 0;
    margin-right: 0;
}

/* ==========================================
   HEADER STYLES
   ========================================== */
.audit-header,
.report-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: white;
    padding: var(--spacing-xl) var(--spacing-xl);
    text-align: center;
}

.audit-header h1,
.report-header h1 {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.audit-header p,
.report-header p {
    font-size: var(--font-size-lg);
    opacity: 0.95;
    margin-bottom: 0;
}

.audit-header small {
    opacity: 0.85;
}

/* Company Info Box */
.company-info {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    margin-top: var(--spacing-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.company-info h3 {
    margin-top: 0;
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-xl);
}

.company-info small {
    display: block;
    line-height: 1.8;
}

/* ==========================================
   PROGRESS BAR
   ========================================== */
.progress-container {
    background: var(--gray-50);
    padding: var(--spacing-lg) var(--spacing-xl);
    border-bottom: 1px solid var(--gray-200);
}

.progress {
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--gray-200);
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--primary-green) 100%);
    transition: width var(--transition-base);
    height: 100%;
}

/* ==========================================
   BANNER STYLES
   ========================================== */
.sample-banner {
    background: linear-gradient(135deg, rgba(90, 147, 103, 0.1) 0%, rgba(30, 95, 116, 0.1) 100%);
    border: 2px solid var(--primary-green);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    border-radius: var(--radius-md);
    text-align: center;
    font-weight: 600;
    color: var(--primary-blue-dark);
}

/* ==========================================
   SECTION STYLES
   ========================================== */
.section {
    padding: var(--spacing-2xl) var(--spacing-xl);
    border-bottom: 1px solid var(--gray-200);
}

.section:last-child {
    border-bottom: none;
}

.form-section {
    padding: var(--spacing-2xl) var(--spacing-xl);
}

.section-title {
    color: var(--primary-blue);
    font-size: var(--font-size-3xl);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 3px solid var(--primary-green);
    display: flex;
    align-items: center;
}

.section-title i {
    margin-right: var(--spacing-md);
    font-size: 2rem;
    color: var(--primary-green);
}

.section-description {
    color: var(--gray-600);
    margin-bottom: var(--spacing-xl);
    font-size: var(--font-size-base);
}

/* ==========================================
   FORM STYLES
   ========================================== */
.form-label {
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: var(--spacing-sm);
    display: block;
}

.form-control,
.form-select {
    border-radius: var(--radius-md);
    border: 2px solid var(--gray-200);
    padding: 0.75rem;
    transition: all var(--transition-base);
    width: 100%;
    font-size: var(--font-size-base);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 95, 116, 0.15);
    outline: none;
}

/* Range Inputs */
.range-container {
    position: relative;
    padding: var(--spacing-md) 0;
}

.range-value {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-green) 100%);
    color: white;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-left: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease-in-out;
}

input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: var(--radius-sm);
    background: var(--gray-200);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-blue);
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-md);
}

input[type="range"]::-webkit-slider-thumb:hover {
    background: var(--primary-blue-dark);
    transform: scale(1.1);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-blue);
    cursor: pointer;
    border: none;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-md);
}

input[type="range"]::-moz-range-thumb:hover {
    background: var(--primary-blue-dark);
    transform: scale(1.1);
}

/* Enhanced Range Input Styling */
input[type="range"].form-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: transparent;
    outline: none;
    padding: 0;
    margin: 10px 0;
}

input[type="range"].form-range::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    background: linear-gradient(to right, #e5e7eb 0%, #e5e7eb 100%);
    border-radius: 4px;
    border: none;
}

input[type="range"].form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #1e5f74;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    margin-top: -6px;
}

input[type="range"].form-range::-webkit-slider-thumb:hover {
    background: #154854;
    transform: scale(1.1);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

input[type="range"].form-range::-webkit-slider-thumb:active {
    background: #154854;
    transform: scale(1.05);
}

input[type="range"].form-range::-moz-range-track {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    border: none;
}

input[type="range"].form-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #1e5f74;
    cursor: pointer;
    border: none;
    transition: all 0.15s ease-in-out;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

input[type="range"].form-range::-moz-range-thumb:hover {
    background: #154854;
    transform: scale(1.1);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

input[type="range"].form-range::-moz-range-thumb:active {
    background: #154854;
    transform: scale(1.05);
}

input[type="range"].form-range::-ms-track {
    width: 100%;
    height: 8px;
    background: transparent;
    border-color: transparent;
    color: transparent;
}

input[type="range"].form-range::-ms-fill-lower {
    background: #e5e7eb;
    border-radius: 4px;
}

input[type="range"].form-range::-ms-fill-upper {
    background: #e5e7eb;
    border-radius: 4px;
}

input[type="range"].form-range::-ms-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #1e5f74;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-top: 0;
}

input[type="range"].form-range::-ms-thumb:hover {
    background: #154854;
    transform: scale(1.1);
}

input[type="range"].form-range:focus {
    outline: none;
}

input[type="range"].form-range:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 3px rgba(30, 95, 116, 0.15), 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

input[type="range"].form-range:focus::-moz-range-thumb {
    box-shadow: 0 0 0 3px rgba(30, 95, 116, 0.15), 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

input[type="range"].form-range:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

input[type="range"].form-range:disabled::-webkit-slider-thumb {
    cursor: not-allowed;
    background: #9ca3af;
}

input[type="range"].form-range:disabled::-moz-range-thumb {
    cursor: not-allowed;
    background: #9ca3af;
}

input[type="range"].form-range.gradient-fill::-webkit-slider-runnable-track {
    background: linear-gradient(to right, #1e5f74 0%, #5a9367 50%, #e5e7eb 50%, #e5e7eb 100%);
}

input[type="range"].form-range.is-invalid::-webkit-slider-thumb {
    background: #744560;
    border: 2px solid #dc2626;
}

input[type="range"].form-range.is-invalid::-moz-range-thumb {
    background: #744560;
    border: 2px solid #dc2626;
}

input[type="range"].form-range.is-valid::-webkit-slider-thumb {
    background: #5a9367;
}

input[type="range"].form-range.is-valid::-moz-range-thumb {
    background: #5a9367;
}

/* Checkboxes */
.form-check {
    margin-bottom: var(--spacing-sm);
}

.form-check-input {
    cursor: pointer;
    border: 2px solid var(--gray-300);
}

.form-check-input:checked {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
}

.form-check-label {
    cursor: pointer;
    margin-left: var(--spacing-sm);
}

/* ==========================================
   QUESTION CARDS
   ========================================== */
.question-card {
    background: var(--gray-50);
    border-left: 4px solid var(--primary-blue);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.question-card:hover {
    background: white;
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

/* ==========================================
   METRIC CARDS
   ========================================== */
.report-container .metric-card {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: white;
    padding: var(--spacing-md);
    border-radius: var(--radius-xl);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-xl);
    transition: all var(--transition-base);
}

.report-container .metric-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px rgba(30, 95, 116, 0.4);
}

.report-container .metric-card.danger {
    background: linear-gradient(135deg, var(--accent-pink) 0%, #5a3447 100%);
}

.report-container .metric-card.warning {
    background: linear-gradient(135deg, var(--accent-yellow) 0%, #5a4d37 100%);
}

.report-container .metric-card.success {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
}

.report-container .metric-value {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
    margin: var(--spacing-md) 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.report-container .metric-label {
    font-size: var(--font-size-lg);
    opacity: 0.95;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: var(--font-size-sm);
    color: #ffffff;
    min-height: 2.5rem;
}

.report-container.metric-description {
    font-size: var(--font-size-sm);
    opacity: 0.85;
    margin-top: var(--spacing-md);
}

/* ==========================================
   SCORE GAUGE
   ========================================== */
.score-gauge {
    position: relative;
    margin: var(--spacing-xl) 0;
}

.gauge-meter {
    width: 100%;
    height: 30px;
    background: linear-gradient(to right, var(--primary-green) 0%, var(--accent-yellow) 50%, var(--accent-pink) 100%);
    border-radius: var(--radius-xl);
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gauge-pointer {
    position: absolute;
    width: 4px;
    height: 50px;
    background: var(--gray-900);
    top: -10px;
    transform: translateX(-2px);
    box-shadow: var(--shadow-lg);
}

.gauge-pointer::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -8px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 15px solid var(--gray-900);
}

.gauge-labels {
    display: flex;
    justify-content: space-between;
    margin-top: var(--spacing-md);
    font-size: var(--font-size-sm);
    color: var(--gray-600);
    font-weight: 500;
}

/* ==========================================
   COMPARISON TABLE
   ========================================== */
.comparison-table {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.comparison-row {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr;
    padding: var(--spacing-md) var(--spacing-lg);
    border-bottom: 1px solid var(--gray-200);
    gap: var(--spacing-md);
}

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-row.compheader {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-green) 100%);
    color: white;
    font-weight: 600;
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comparison-row:not(.compheader) {
    transition: all var(--transition-fast);
}

.comparison-row:not(.compheader):hover {
    background: white;
    box-shadow: inset 0 0 0 2px var(--primary-blue);
}

/* ==========================================
   STATUS BADGES
   ========================================== */
.status-badge {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 700;
    margin-left: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.critical {
    /*background: var(--accent-pink); */
    background: var(--danger-rgb);
    color: white;
}

.status-badge.warning {
    background: var(--accent-yellow);
    color: white;
}

.status-badge.good {
    background: var(--primary-green);
    color: white;
}

/* ==========================================
   INSIGHT BOXES
   ========================================== */
.insight-box {
    background: rgba(116, 97, 69, 0.1);
    border-left: 5px solid var(--accent-yellow);
    padding: var(--spacing-lg);
    margin: var(--spacing-lg) 0;
    margin-bottom: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.insight-box.critical {
    background: rgba(116, 69, 96, 0.1);
    border-left-color: var(--accent-pink);
}

.insight-box.success {
    background: rgba(90, 147, 103, 0.1);
    border-left-color: var(--primary-green);
}

.insight-box h4 {
    margin-top: 0;
    color: var(--gray-900);
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.insight-box p:last-child {
    margin-bottom: 0;
}

.insight-box i {
    margin-right: var(--spacing-sm);
}

/* ==========================================
   TRUST BADGE
   ========================================== */
.trust-badge, .bookmark-badge {
    background: rgba(30, 95, 116, 0.05);
    border-left: 4px solid var(--primary-blue);
    padding: var(--spacing-md);
    margin: var(--spacing-xl) 0;
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
}

.trust-badge i, .bookmark-badge i {
    color: var(--primary-blue);
    margin-right: var(--spacing-sm);
    font-size: var(--font-size-lg);
}

/* ==========================================
   ACTION ITEMS
   ========================================== */
.action-item {
    background: white;
    border: 2px solid var(--primary-blue);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    transition: all var(--transition-base);
}

.action-item:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
    border-color: var(--primary-green);
}

.action-item h5 {
    color: var(--primary-blue);
    margin-bottom: var(--spacing-md);
    font-weight: 700;
}

.action-item i {
    color: var(--primary-green);
}

/* Impact Levels */
.impact-level {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.impact-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.impact-high .impact-dot {
    background: var(--accent-pink);
    box-shadow: 0 0 0 3px rgba(116, 69, 96, 0.2);
}

.impact-medium .impact-dot {
    background: var(--accent-yellow);
    box-shadow: 0 0 0 3px rgba(116, 97, 69, 0.2);
}

.impact-low .impact-dot {
    background: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(90, 147, 103, 0.2);
}

/* ==========================================
   TIMELINE
   ========================================== */
.timeline {
    position: relative;
    padding-left: var(--spacing-xl);
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-blue) 0%, var(--primary-green) 100%);
    border-radius: var(--radius-full);
}

.timeline-item {
    position: relative;
    padding-bottom: var(--spacing-xl);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: calc(-1 * var(--spacing-xl) - 6px);
    top: 5px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--primary-blue);
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--primary-blue);
}

.timeline-item h5 {
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

/* ==========================================
   CHART CONTAINERS
   ========================================== */
.tablechart-container {
    background: var(--gray-50);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    margin: var(--spacing-lg) 0;
    border: 1px solid var(--gray-200);
}

.tablechart-container h4 {
    color: var(--primary-blue);
    margin-bottom: var(--spacing-lg);
    font-weight: 700;
}

/* Bar Chart */
.bar-chart {
    display: flex;
    align-items: flex-end;
    height: 250px;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
    padding-bottom: 40px;
}

.bar {
    flex: 1;
    background: linear-gradient(to top, var(--primary-blue), var(--primary-green));
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    position: relative;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
}

.bar:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.bar-label {
    position: absolute;
    bottom: -35px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: var(--font-size-sm);
    color: var(--gray-600);
    font-weight: 600;
    line-height: 1.3;
}

.bar-value {
    position: absolute;
    top: -25px;
    left: 0;
    right: 0;
    text-align: center;
    font-weight: 700;
    color: var(--gray-900);
    font-size: var(--font-size-base);
}

/* ==========================================
   GANTT CHART STYLES
   ========================================== */

/* Gantt Container */
.gantt-container {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 2rem auto;
    max-width: 900px;
    width: 100%;
}

/* Gantt Header */
.gantt-header {
    display: grid;
    grid-template-columns: 200px 1fr;
    background: linear-gradient(135deg, var(--gantt-header-bg) 0%, #154854 100%);
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.gantt-tasks-header {
    padding: 0.75rem 1rem;
    font-weight: 700;
    font-size: 0.9rem;
    border-right: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
}

.gantt-timeline-header {
    display: flex;
    flex-direction: column;
}

/* Month Labels */
.gantt-month-labels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.gantt-month {
    padding: 0.5rem;
    text-align: center;
    font-weight: 700;
    font-size: 0.85rem;
    border-right: 2px solid rgba(255, 255, 255, 0.2);
}

.gantt-month:last-child {
    border-right: none;
}

/* Week Labels */
.gantt-week-labels {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
}

.gantt-week {
    padding: 0.375rem;
    text-align: center;
    font-size: 0.7rem;
    font-weight: 600;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    opacity: 0.9;
}

.gantt-week:nth-child(4n) {
    border-right: 2px solid rgba(255, 255, 255, 0.3);
}

.gantt-week:last-child {
    border-right: none;
}

/* Gantt Phase Headers */
.gantt-phase {
    background: #f3f4f6;
    border-bottom: 2px solid var(--gantt-border);
}

.gantt-phase-header {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
}

.gantt-phase-header h5 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gantt-phase-header i {
    font-size: 1.1rem;
}

.gantt-phase-header.phase-1 {
    color: var(--gantt-phase-1);
    background: linear-gradient(90deg, rgba(30, 95, 116, 0.1) 0%, transparent 100%);
}

.gantt-phase-header.phase-2 {
    color: var(--gantt-phase-2);
    background: linear-gradient(90deg, rgba(90, 147, 103, 0.1) 0%, transparent 100%);
}

.gantt-phase-header.phase-3 {
    color: var(--gantt-phase-3);
    background: linear-gradient(90deg, rgba(116, 69, 96, 0.1) 0%, transparent 100%);
}

/* Gantt Rows */
.gantt-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    border-bottom: 1px solid var(--gantt-border);
    transition: background-color 0.2s ease;
}

.gantt-row:hover {
    background-color: #f9fafb;
}

/* Task Info Column */
.gantt-task-info {
    padding: 0.75rem 1rem;
    border-right: 2px solid var(--gantt-border);
}

.gantt-task-title {
    font-weight: 600;
    color: var(--gantt-text);
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.gantt-task-subtitle {
    font-size: 0.75rem;
    color: var(--gantt-text-light);
}

/* Timeline Column */
.gantt-timeline {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    position: relative;
    padding: 0.5rem 0;
}

/* Week Dividers */
.gantt-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-image: repeating-linear-gradient(
            to right,
            transparent,
            transparent calc(100% / 12 - 1px),
            var(--gantt-border) calc(100% / 12 - 1px),
            var(--gantt-border) calc(100% / 12)
    );
    pointer-events: none;
    z-index: 0;
}

/* Month Dividers */
.gantt-timeline::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-image: repeating-linear-gradient(
            to right,
            transparent,
            transparent calc(100% / 3 - 2px),
            #d1d5db calc(100% / 3 - 2px),
            #d1d5db calc(100% / 3)
    );
    pointer-events: none;
    z-index: 1;
}

/* Gantt Bars */
.gantt-bar {
    position: relative;
    margin: 0 0.2rem;
    padding: 0.4rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    z-index: 2;
    cursor: pointer;
}

.gantt-bar:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Phase Colors for Gantt Bars */
.gantt-bar.phase-1 {
    background: linear-gradient(135deg, var(--gantt-phase-1) 0%, var(--gantt-phase-1-light) 100%);
}

.gantt-bar.phase-2 {
    background: linear-gradient(135deg, var(--gantt-phase-2) 0%, var(--gantt-phase-2-light) 100%);
}

.gantt-bar.phase-3 {
    background: linear-gradient(135deg, var(--gantt-phase-3) 0%, var(--gantt-phase-3-light) 100%);
}

.gantt-bar-label {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

/* Tooltip on Hover */
.gantt-bar::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-0.5rem);
    background: #1f2937;
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 100;
}

.gantt-bar:hover::before {
    opacity: 1;
}

/* Deliverables */
.gantt-deliverable {
    display: grid;
    grid-template-columns: 200px 1fr;
    background: #f9fafb;
    border-bottom: 2px solid var(--gantt-border);
    padding: 0.5rem 0;
}

.gantt-deliverable-info {
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-style: italic;
    color: #059669;
    font-weight: 500;
    border-right: 2px solid var(--gantt-border);
}

.gantt-deliverable-info i {
    color: #10b981;
    font-size: 0.9rem;
}

/* Milestones */
.gantt-milestone {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.gantt-milestone i {
    font-size: 1.5rem;
    color: var(--gantt-phase-1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    animation: pulse 2s ease-in-out infinite;
}

/* Gantt Legend */
.gantt-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #f9fafb;
    border-top: 2px solid var(--gantt-border);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #4b5563;
}

.legend-color {
    width: 1.5rem;
    height: 1rem;
    border-radius: 0.25rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.legend-color.phase-1 {
    background: linear-gradient(135deg, var(--gantt-phase-1) 0%, var(--gantt-phase-1-light) 100%);
}

.legend-color.phase-2 {
    background: linear-gradient(135deg, var(--gantt-phase-2) 0%, var(--gantt-phase-2-light) 100%);
}

.legend-color.phase-3 {
    background: linear-gradient(135deg, var(--gantt-phase-3) 0%, var(--gantt-phase-3-light) 100%);
}

/* Report Container Overrides for Gantt */
.report-container .gantt-container {
    margin: 2rem 0;
}

.report-container .gantt-row {
    min-height: 3rem;
}

.report-container .gantt-task-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.report-container .gantt-bar {
    max-height: 1rem;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-green) 100%);
    border: none;
    padding: 0.75rem var(--spacing-2xl);
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all var(--transition-base);
    color: white;
    cursor: pointer;
    font-size: var(--font-size-base);
    box-shadow: var(--shadow-md);
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, var(--primary-blue-dark) 0%, var(--primary-green-dark) 100%);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary.btn-lg {
    padding: var(--spacing-md) var(--spacing-2xl);
    font-size: var(--font-size-lg);
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 0.625rem var(--spacing-xl);
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all var(--transition-base);
    cursor: pointer;
    font-size: var(--font-size-base);
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.btn-outline-primary:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ==========================================
   CTA SECTION
   ========================================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-green) 100%);
    color: white;
    padding: var(--spacing-2xl) var(--spacing-xl);
    text-align: center;
}

.cta-section h2 {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--spacing-lg);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cta-section p {
    opacity: 0.95;
}

.btn-cta {
    background: white;
    color: var(--primary-blue);
    padding: var(--spacing-md) var(--spacing-2xl);
    font-size: var(--font-size-lg);
    font-weight: 600;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
    margin: var(--spacing-md);
    box-shadow: var(--shadow-xl);
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.btn-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.btn-cta.outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-cta.outline:hover {
    background: white;
    color: var(--primary-blue);
}

/* ==========================================
   TABLE STYLES
   ========================================== */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: var(--spacing-lg);
}

.table thead {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-green) 100%);
    color: white;
}

.table th,
.table td {
    padding: var(--spacing-md);
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.table th {
    font-weight: 600;
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-striped tbody tr:nth-child(odd) {
    background: var(--gray-50);
}

.table-bordered {
    border: 1px solid var(--gray-200);
}

.table-bordered th,
.table-bordered td {
    border: 1px solid var(--gray-200);
}

.table-primary {
    background: rgba(30, 95, 116, 0.1);
    font-weight: 600;
}

.table-success {
    background: rgba(90, 147, 103, 0.1);
}

.table-danger {
    background: rgba(116, 69, 96, 0.1);
}

.table-dark {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-green) 100%);
    color: white;
}

/* ==========================================
   ACCORDION
   ========================================== */
.accordion {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.accordion-item {
    border-bottom: 1px solid var(--gray-200);
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    margin: 0;
}

.accordion-button {
    width: 100%;
    text-align: left;
    background: var(--gray-50);
    border: none;
    padding: var(--spacing-md) var(--spacing-lg);
    font-weight: 600;
    color: var(--primary-blue);
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.accordion-button:hover {
    background: var(--gray-100);
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-green) 100%);
    color: white;
}

.accordion-body {
    padding: var(--spacing-lg);
    background: white;
}

.accordion-collapse {
    transition: all var(--transition-base);
}

/* ==========================================
   ALERTS
   ========================================== */
.alert {
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin: var(--spacing-lg) 0;
    border-left: 4px solid;
}

.alert-info {
    background: rgba(30, 95, 116, 0.1);
    border-left-color: var(--primary-blue);
    color: var(--primary-blue-dark);
}

.alert-warning {
    background: rgba(116, 97, 69, 0.1);
    border-left-color: var(--accent-yellow);
    color: #5a4d37;
}

.alert-success {
    background: rgba(90, 147, 103, 0.1);
    border-left-color: var(--primary-green);
    color: var(--primary-green-dark);
}

.alert-danger {
    background: rgba(116, 69, 96, 0.1);
    border-left-color: var(--accent-pink);
    color: #5a3447;
}

.alert i {
    margin-right: var(--spacing-sm);
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */

/* Text Alignment */
.text-start {
    text-align: left;
}

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

.text-end {
    text-align: right;
}

/* Text Colors */
.text-muted {
    color: var(--gray-500);
}

.text-primary {
    color: var(--primary-blue);
}

.text-success {
    color: var(--primary-green);
}

.text-warning {
    color: var(--accent-yellow);
}

.text-danger {
    color: var(--accent-pink);
}

/* Font Sizes */
.lead {
    font-size: var(--font-size-xl);
    font-weight: 400;
    line-height: 1.6;
}

/* Margins */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

.me-2 { margin-right: 0.5rem; }
.me-3 { margin-right: var(--spacing-md); }
.ms-3 { margin-left: var(--spacing-md); }

/* Display */
.d-flex {
    display: flex;
}

.d-block {
    display: block;
}

.d-inline-block {
    display: inline-block;
}

/* Flex Utilities */
.justify-content-between {
    justify-content: space-between;
}

.justify-content-center {
    justify-content: center;
}

.align-items-start {
    align-items: flex-start;
}

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

.align-items-end {
    align-items: flex-end;
}

.flex-wrap {
    flex-wrap: wrap;
}

.gap-3 {
    gap: var(--spacing-md);
}

/* Grid */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 calc(-1 * var(--spacing-md) / 2);
}

.row > * {
    padding: 0 calc(var(--spacing-md) / 2);
}

.col-md-3 {
    flex: 0 0 auto;
}

.col-md-4 {
    flex: 0 0 auto;
}

.col-md-6 {
    flex: 0 0 auto;
}

/* List Styles */
.list-unstyled {
    list-style: none;
    padding-left: 0;
}

.subtext {
    opacity: 1;
    color: rgba(33, 37, 41, 0.75); !important;
    margin-top: 1.0rem;
}
dl {
    font-size: 0.875rem;
}

.angle {
    position: relative;
    padding-left: 2rem; /* Fixed width before text starts */
}

.angle::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
    width: 0.5rem;
    height: 0.5rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
}
.step-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;           /* same as bi-*-circle-fill */
    height: 2rem;
    margin-right: 0.75rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: white !important;
    background-color: var(--bs-primary);   /* Bootstrap text-primary color */
    border-radius: 50%;
    flex-shrink: 0;
    line-height: 1;
}

/* Optional: slightly larger on bigger screens (exactly like Bootstrap icons) */
@media (min-width: 576px) {
    .step-circle {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.25rem;
    }
}
/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 1200px) {
    .gantt-header {
        grid-template-columns: 250px 1fr;
    }

    .gantt-row,
    .gantt-deliverable {
        grid-template-columns: 250px 1fr;
    }

    .gantt-task-info {
        padding: 0.75rem 1rem;
    }

    .gantt-bar-label {
        font-size: 0.65rem;
    }
}

@media (max-width: 992px) {
    .gantt-header {
        grid-template-columns: 200px 1fr;
    }

    .gantt-row,
    .gantt-deliverable {
        grid-template-columns: 200px 1fr;
    }

    .gantt-task-title {
        font-size: 0.85rem;
    }

    .gantt-task-subtitle {
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .audit-header h1,
    .report-header h1 {
        font-size: var(--font-size-3xl);
    }

    .section-title {
        font-size: var(--font-size-2xl);
    }

    .metric-value {
        font-size: var(--font-size-3xl);
    }

    .col-md-3,
    .col-md-4,
    .col-md-6 {
        width: 100%;
        margin-bottom: var(--spacing-md);
    }

    .comparison-row {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .comparison-row > div {
        padding: var(--spacing-xs) 0;
    }

    .bar-chart {
        height: 200px;
    }

    .audit-container,
    .report-container {
        margin: var(--spacing-md);
        border-radius: var(--radius-md);
    }

    .section,
    .form-section {
        padding: var(--spacing-lg);
    }

    .audit-header,
    .report-header {
        padding: var(--spacing-lg);
    }

    .btn-cta {
        width: 100%;
        justify-content: center;
        margin: var(--spacing-sm) 0;
    }

    .timeline {
        padding-left: var(--spacing-lg);
    }

    .gauge-labels {
        font-size: 0.7rem;
    }

    /* Gantt Responsive */
    .gantt-container {
        overflow-x: auto;
    }

    .gantt-header,
    .gantt-row,
    .gantt-deliverable {
        min-width: 800px;
    }

    .gantt-bar-label {
        display: none;
    }
}

@media (max-width: 576px) {
    .audit-header h1,
    .report-header h1 {
        font-size: var(--font-size-2xl);
    }

    .metric-value {
        font-size: var(--font-size-2xl);
    }

    .section-title {
        font-size: var(--font-size-xl);
        flex-direction: column;
        text-align: center;
    }

    .section-title i {
        margin-right: 0;
        margin-bottom: var(--spacing-sm);
    }
}

/* ==========================================
   ANIMATION KEYFRAMES
   ========================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Apply animations to sections */
.section {
    animation: fadeIn 0.6s ease-out;
}

.question-card {
    animation: slideInLeft 0.4s ease-out;
}

.metric-card {
    animation: fadeIn 0.5s ease-out;
}

/* ==========================================
   FOCUS STYLES FOR ACCESSIBILITY
   ========================================== */
*:focus-visible {
    outline: 3px solid var(--primary-blue);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--primary-green);
}

.gantt-bar:focus {
    outline: 3px solid var(--gantt-phase-1);
    outline-offset: 2px;
}

.gantt-row:focus-within {
    background-color: #eff6ff;
}

/* ==========================================
   HIGH CONTRAST MODE SUPPORT
   ========================================== */
@media (prefers-contrast: high) {
    .form-control,
    .form-select {
        border-width: 3px;
    }

    .status-badge {
        border: 2px solid currentColor;
    }

    .metric-card {
        border: 2px solid white;
    }
}

/* ==========================================
   REDUCED MOTION SUPPORT
   ========================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .gantt-bar,
    .gantt-milestone i,
    .gantt-bar:hover {
        transition: none;
        animation: none;
        transform: none;
    }
}

/* ==========================================
   DARK MODE SUPPORT (Optional)
   ========================================== */
@media (prefers-color-scheme: dark) {
    /* Uncomment to enable dark mode support
    :root {
        --gray-50: #1f2937;
        --gray-100: #374151;
        --gray-200: #4b5563;
        --gray-800: #f9fafb;
        --gray-900: #ffffff;
    }

    body {
        background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    }

    .audit-container,
    .report-container {
        background: #1f2937;
        color: #f9fafb;
    }
    */
}

/* ==========================================
   LOADING STATES
   ========================================== */
.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid var(--gray-300);
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ==========================================
   CUSTOM SCROLLBAR
   ========================================== */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-green) 100%);
    border-radius: var(--radius-full);
    border: 2px solid var(--gray-100);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-blue-dark) 0%, var(--primary-green-dark) 100%);
}

/* ==========================================
   TYPO3 SPECIFIC OVERRIDES
   ========================================== */
.frame {
    margin-bottom: 0;
}

.frame-type-audit_form,
.frame-type-audit_report {
    padding: 0;
}

/* Ensure TYPO3 content elements don't interfere */
.ce-textpic,
.ce-image,
.ce-nowrap {
    margin: 0;
}