/* FunnelFuel ABM Insights Extractor - Brand Compliant Styles */

@import url('https://fonts.googleapis.com/css2?family=ASAP:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    /* FunnelFuel Brand Colors */
    --ff-deep-purple: #3d0066;
    --ff-indigo: #3c20b2;
    --ff-gold: #f2b400;
    --ff-black: #000000;
    --ff-orange: #f48c06;
    --ff-ultramarine: #0042cb;
    --ff-sage: #68d693;
    --ff-flame: #f7450b;
    
    /* Primary brand colors for UI */
    --funnelfuel-primary: #3d0066;
    --funnelfuel-secondary: #3c20b2;
    --funnelfuel-accent: #f2b400;
    --funnelfuel-light: #f8f5ff;
    --funnelfuel-dark: #1a0029;
    
    /* Intent scoring colors */
    --success-color: #68d693;
    --info-color: #0042cb;
    --warning-color: #f48c06;
    --danger-color: #f7450b;
    
    /* Gradients */
    --ff-gradient-primary: linear-gradient(135deg, #3d0066 0%, #3c20b2 100%);
    --ff-gradient-accent: linear-gradient(135deg, #f2b400 0%, #f48c06 100%);
    --ff-gradient-success: linear-gradient(135deg, #68d693 0%, #0042cb 100%);
    
    /* Dynamic Color Variables - can be overridden by palette generator */
    --dynamic-primary: var(--funnelfuel-primary);
    --dynamic-secondary: var(--funnelfuel-secondary);
    --dynamic-accent: var(--funnelfuel-accent);
    --dynamic-success: var(--success-color);
    --dynamic-warning: var(--warning-color);
    --dynamic-info: var(--info-color);
    --dynamic-danger: var(--danger-color);
}

/* Global Styles - Enhanced Contrast */
body {
    background: linear-gradient(135deg, #f8f5ff 0%, #ffffff 100%);
    font-family: 'ASAP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--funnelfuel-dark);
    min-height: 100vh;
    font-weight: 500;
}

/* High Contrast Text and Form Elements */
.card-body {
    color: var(--funnelfuel-dark) !important;
}

.form-label {
    color: var(--funnelfuel-dark) !important;
    font-weight: 600;
}

.form-text {
    color: var(--ff-gray, #6C757D) !important;
}

.table {
    color: var(--funnelfuel-dark) !important;
}

.table th {
    color: var(--funnelfuel-dark) !important;
    font-weight: 700;
}

.table td {
    color: var(--funnelfuel-dark) !important;
}

/* Enhanced contrast for headings */
h1, h2, h3, h4, h5, h6 {
    color: var(--funnelfuel-dark) !important;
    font-weight: 700;
}

/* Enhanced readability for alerts */
.alert {
    color: var(--funnelfuel-dark) !important;
}

.alert-info {
    background-color: rgba(60, 32, 178, 0.1) !important;
    border-color: var(--funnelfuel-secondary) !important;
    color: var(--funnelfuel-dark) !important;
}

/* Enhanced table readability */
.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(248, 245, 255, 0.5) !important;
}

/* Header Styles */
.bg-primary {
    background: var(--ff-gradient-primary) !important;
    position: relative;
    overflow: hidden;
}

/* Enhanced button styles with brand colors */
.btn-primary {
    background: linear-gradient(135deg, var(--ff-orange), var(--ff-ultramarine)) !important;
    border: none !important;
    color: var(--ff-light, #FFFFFF) !important;
    font-weight: 600;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #e55a2b, #003aa3) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(244, 140, 6, 0.3);
}

/* Enhanced badge contrast */
.badge {
    font-weight: 600;
    font-size: 0.75rem;
}

.badge.bg-primary {
    background: var(--funnelfuel-secondary) !important;
}

.badge.bg-success {
    background: var(--ff-sage) !important;
    color: var(--funnelfuel-dark) !important;
}

.badge.bg-warning {
    background: var(--ff-orange) !important;
    color: var(--ff-light, #FFFFFF) !important;
}

.badge.bg-info {
    background: var(--ff-ultramarine) !important;
}

/* Navigation Menu Styles */
.header-nav {
    overflow: visible;
    margin-top: 1rem;
}

.header-nav .btn-group {
    flex-wrap: wrap;
    gap: 0.25rem;
}

.header-nav .btn-group .btn {
    white-space: nowrap;
    min-width: auto;
    margin-bottom: 0.25rem;
}

/* Ensure all navigation buttons are visible */
.header-nav .btn-outline-light {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.header-nav .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    color: #ffffff;
    transform: translateY(-1px);
}

.bg-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="30" r="15" fill="rgba(255,255,255,0.1)"/><circle cx="60" cy="20" r="10" fill="rgba(255,255,255,0.05)"/><circle cx="80" cy="50" r="20" fill="rgba(255,255,255,0.08)"/></svg>');
    background-size: 200px 100px;
    pointer-events: none;
}

.text-primary {
    color: var(--funnelfuel-primary) !important;
}

.btn-primary {
    background: var(--ff-gradient-primary);
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 24px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: var(--ff-gradient-accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(61, 0, 102, 0.3);
}

/* Brand Spheres - FunnelFuel Logo Element */
.brand-spheres {
    position: relative;
    width: 60px;
    height: 40px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.sphere {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    animation: float 6s ease-in-out infinite;
}

.sphere-1 {
    width: 16px;
    height: 16px;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, rgba(242, 180, 0, 0.9) 0%, rgba(244, 140, 6, 0.9) 100%);
    animation-delay: 0s;
}

.sphere-2 {
    width: 14px;
    height: 14px;
    top: 2px;
    left: 12px;
    background: linear-gradient(135deg, rgba(104, 214, 147, 0.9) 0%, rgba(0, 66, 203, 0.9) 100%);
    animation-delay: 0.5s;
}

.sphere-3 {
    width: 18px;
    height: 18px;
    top: 18px;
    left: 8px;
    background: linear-gradient(135deg, rgba(60, 32, 178, 0.9) 0%, rgba(61, 0, 102, 0.9) 100%);
    animation-delay: 1s;
}

.sphere-4 {
    width: 12px;
    height: 12px;
    top: 12px;
    left: 28px;
    background: linear-gradient(135deg, rgba(247, 69, 11, 0.9) 0%, rgba(244, 140, 6, 0.9) 100%);
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); opacity: 0.9; }
    50% { transform: translateY(-4px) scale(1.05); opacity: 1; }
}

.header-content h1 {
    font-weight: 800;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-content p {
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Icon Spheres for Cards */
.icon-sphere {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--ff-gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.icon-sphere::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: iconShine 3s ease-in-out infinite;
}

@keyframes iconShine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(0deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(360deg); }
}

/* FF Branded Card Enhancements */
.ff-branded-card {
    position: relative;
    overflow: hidden;
}

.ff-branded-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(61, 0, 102, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    animation: brandPulse 4s ease-in-out infinite;
}

@keyframes brandPulse {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.3; }
    50% { transform: scale(1.2) rotate(180deg); opacity: 0.1; }
}

/* Small Icon Spheres */
.icon-sphere-small {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--ff-gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
    position: relative;
    overflow: hidden;
}

/* Configuration Card Styling */
.ff-config-card {
    border-left: 4px solid var(--ff-gold);
}

.config-item {
    padding: 12px;
    background: linear-gradient(135deg, rgba(242, 180, 0, 0.03) 0%, rgba(244, 140, 6, 0.03) 100%);
    border-radius: 10px;
    border: 1px solid rgba(242, 180, 0, 0.1);
}

.config-label {
    font-weight: 600;
    color: var(--funnelfuel-dark);
    font-size: 0.9rem;
}

/* Mini Spheres for Brand Footer */
.mini-spheres {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 8px;
}

.mini-sphere {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ff-gradient-primary);
    animation: miniFloat 2s ease-in-out infinite;
}

.mini-sphere:nth-child(1) { animation-delay: 0s; background: var(--ff-gradient-primary); }
.mini-sphere:nth-child(2) { animation-delay: 0.3s; background: var(--ff-gradient-accent); }
.mini-sphere:nth-child(3) { animation-delay: 0.6s; background: var(--ff-gradient-success); }

@keyframes miniFloat {
    0%, 100% { transform: translateY(0px); opacity: 0.8; }
    50% { transform: translateY(-3px); opacity: 1; }
}

.ff-brand-footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(61, 0, 102, 0.1);
}

/* Company Table Styling */
.company-row {
    transition: all 0.3s ease;
}

.company-row:hover {
    background-color: rgba(61, 0, 102, 0.05);
    transform: translateX(4px);
}

.intent-score-badge .badge {
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 60px;
}

.company-details {
    border-left: 4px solid var(--funnelfuel-primary);
    margin: 8px 0;
}

.table th {
    font-weight: 700;
    color: var(--funnelfuel-dark);
    border-bottom: 2px solid rgba(61, 0, 102, 0.1);
    font-size: 0.9rem;
}

.table td {
    padding: 12px 8px;
    vertical-align: middle;
    border-bottom: 1px solid rgba(61, 0, 102, 0.05);
}

/* Weight Slider Styling */
.scoring-weights {
    background: linear-gradient(135deg, rgba(61, 0, 102, 0.02) 0%, rgba(60, 32, 178, 0.02) 100%);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(61, 0, 102, 0.1);
}

.weight-slider {
    position: relative;
    padding: 12px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    border: 1px solid rgba(61, 0, 102, 0.05);
    transition: all 0.3s ease;
}

.weight-slider:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(61, 0, 102, 0.1);
}

.weight-value {
    font-weight: 700;
    color: var(--funnelfuel-primary);
    background: var(--ff-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 0.9rem;
}

.form-range {
    height: 6px;
    background: linear-gradient(90deg, rgba(61, 0, 102, 0.2) 0%, var(--funnelfuel-primary) 100%);
    border-radius: 3px;
    outline: none;
    transition: all 0.3s ease;
}

.form-range::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--ff-gradient-primary);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(61, 0, 102, 0.3);
    transition: all 0.3s ease;
}

.form-range::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 15px rgba(61, 0, 102, 0.4);
}

.form-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--ff-gradient-primary);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(61, 0, 102, 0.3);
    transition: all 0.3s ease;
}

.range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-size: 0.75rem;
}

.range-labels small {
    color: rgba(61, 0, 102, 0.6);
    font-weight: 500;
}

/* Weight slider active states */
.weight-range:focus {
    box-shadow: 0 0 0 3px rgba(61, 0, 102, 0.2);
}

.weight-range[value="0"] {
    background: linear-gradient(90deg, #dc3545 0%, rgba(220, 53, 69, 0.3) 100%);
}

.weight-range[value="2"] {
    background: linear-gradient(90deg, rgba(61, 0, 102, 0.2) 0%, var(--ff-gold) 100%);
}

/* Preset Button Styling */
.preset-btn {
    border: 2px solid rgba(61, 0, 102, 0.2);
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
}

.preset-btn:hover {
    border-color: var(--funnelfuel-primary);
    background: rgba(61, 0, 102, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(61, 0, 102, 0.15);
}

.preset-btn.btn-primary {
    background: var(--ff-gradient-primary);
    border-color: var(--funnelfuel-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(61, 0, 102, 0.3);
}

.preset-btn.btn-primary:hover {
    background: var(--ff-gradient-primary);
    border-color: var(--funnelfuel-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(61, 0, 102, 0.4);
}

.preset-btn i {
    opacity: 0.8;
}

.preset-btn.btn-primary i {
    opacity: 1;
}

/* Trend Forecasting Widget Styling */
.trend-chart-container {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, rgba(61, 0, 102, 0.02) 0%, rgba(242, 180, 0, 0.02) 100%);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid rgba(61, 0, 102, 0.1);
}

.trend-summary {
    background: linear-gradient(135deg, rgba(61, 0, 102, 0.03) 0%, rgba(60, 32, 178, 0.03) 100%);
    border-radius: 12px;
    padding: 20px;
    height: 100%;
    border: 1px solid rgba(61, 0, 102, 0.08);
}

.trend-metric {
    padding: 8px 0;
    border-bottom: 1px solid rgba(61, 0, 102, 0.05);
}

.trend-metric:last-child {
    border-bottom: none;
}

.trend-direction {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    padding: 12px;
    border: 1px solid rgba(61, 0, 102, 0.05);
}

.forecast-preview {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    padding: 12px;
    border: 1px solid rgba(61, 0, 102, 0.05);
}

.forecast-day {
    padding: 4px 0;
    border-bottom: 1px solid rgba(61, 0, 102, 0.03);
}

.forecast-day:last-child {
    border-bottom: none;
}

.badge-sm {
    font-size: 0.65rem;
    padding: 2px 6px;
}

/* Chart canvas responsive styling */
#trendChart {
    max-width: 100%;
    height: 200px !important;
}

/* Trend direction icons */
.trend-direction i {
    font-size: 1.1rem;
}

/* Historical and forecast data points (hidden) */
.historical-data-points,
.forecast-data-points {
    display: none !important;
}

/* Engagement Heat Map Styling */
.engagement-map {
    height: 400px;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(61, 0, 102, 0.1);
    background: linear-gradient(135deg, rgba(61, 0, 102, 0.02) 0%, rgba(242, 180, 0, 0.02) 100%);
}

.geographic-summary {
    background: linear-gradient(135deg, rgba(61, 0, 102, 0.03) 0%, rgba(60, 32, 178, 0.03) 100%);
    border-radius: 12px;
    padding: 20px;
    height: 400px;
    overflow-y: auto;
    border: 1px solid rgba(61, 0, 102, 0.08);
}

.region-item {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    padding: 12px;
    border: 1px solid rgba(61, 0, 102, 0.05);
    transition: all 0.3s ease;
}

.region-item:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(61, 0, 102, 0.1);
}

.region-companies {
    background: rgba(61, 0, 102, 0.02);
    border-radius: 6px;
    padding: 8px;
    border: 1px solid rgba(61, 0, 102, 0.05);
}

.geographic-stats {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    padding: 12px;
    border: 1px solid rgba(61, 0, 102, 0.05);
}

.stat-item {
    padding: 4px 0;
    border-bottom: 1px solid rgba(61, 0, 102, 0.05);
}

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

/* Map Legend Styling */
.map-legend {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 10px;
    border: 1px solid rgba(61, 0, 102, 0.2);
    font-family: 'ASAP', sans-serif;
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.legend-title {
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--funnelfuel-primary);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 3px;
    font-size: 11px;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 6px;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

/* Map Popup Styling */
.map-popup {
    font-family: 'ASAP', sans-serif;
    min-width: 200px;
}

.popup-stats {
    background: rgba(61, 0, 102, 0.05);
    border-radius: 4px;
    padding: 8px;
}

.popup-companies {
    background: rgba(242, 180, 0, 0.05);
    border-radius: 4px;
    padding: 8px;
}

/* Geographic data points (hidden) */
.geographic-data-points {
    display: none !important;
}

/* Leaflet popup customization */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
    border: 1px solid rgba(61, 0, 102, 0.2);
}

.leaflet-popup-tip {
    border-top-color: rgba(61, 0, 102, 0.2);
}

/* Account Journey Mapping Styling */
.journey-container {
    background: linear-gradient(135deg, rgba(61, 0, 102, 0.02) 0%, rgba(60, 32, 178, 0.02) 100%);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(61, 0, 102, 0.1);
    margin-bottom: 20px;
}

.journey-header {
    border-bottom: 2px solid rgba(61, 0, 102, 0.1);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.metric-small {
    font-size: 0.85rem;
    margin-bottom: 4px;
}

/* Journey Timeline Styling */
.journey-timeline {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
    border: 1px solid rgba(61, 0, 102, 0.05);
}

.timeline-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
    align-items: flex-end;
    min-height: 80px;
    position: relative;
}

.timeline-point {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.timeline-point:hover {
    transform: translateY(-5px);
}

.timeline-marker {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

.timeline-content {
    text-align: center;
    font-size: 0.75rem;
}

.timeline-date {
    font-weight: 600;
    color: var(--funnelfuel-primary);
    margin-bottom: 2px;
}

.timeline-stage {
    font-size: 0.7rem;
    color: rgba(61, 0, 102, 0.7);
    margin-bottom: 2px;
}

.timeline-score {
    font-weight: 700;
    color: var(--funnelfuel-primary);
}

/* Stage-specific marker colors */
.stage-deep-engagement {
    background: #28a745;
}

.stage-active-exploration {
    background: var(--ff-gold);
}

.stage-initial-interest {
    background: #fd7e14;
}

.stage-awareness {
    background: #17a2b8;
}

.stage-inactive {
    background: #6c757d;
}

/* Journey Stages Summary */
.stages-summary {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid rgba(61, 0, 102, 0.05);
}

.stage-item {
    padding: 8px 0;
    border-bottom: 1px solid rgba(61, 0, 102, 0.05);
}

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

.stage-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.stage-name {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Key Events */
.key-events {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid rgba(61, 0, 102, 0.05);
}

.event-item {
    background: rgba(242, 180, 0, 0.05);
    border-radius: 6px;
    padding: 8px;
    border: 1px solid rgba(242, 180, 0, 0.1);
}

.event-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.event-high {
    background: #dc3545;
    color: white;
}

.event-medium {
    background: var(--ff-gold);
    color: white;
}

.event-low {
    background: #6c757d;
    color: white;
}

.event-content {
    flex: 1;
}

.event-type {
    font-size: 0.85rem;
    color: var(--funnelfuel-primary);
}

/* Journey Insights */
.journey-insights {
    background: rgba(61, 0, 102, 0.03);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid rgba(61, 0, 102, 0.08);
}

.insight-metric {
    text-align: center;
    padding: 10px;
}

.insight-metric .metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--funnelfuel-primary);
    background: var(--ff-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.insight-metric .metric-label {
    font-size: 0.8rem;
    color: rgba(61, 0, 102, 0.7);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Journey Separator */
.journey-separator {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--funnelfuel-primary) 50%, transparent 100%);
    margin: 30px 0;
    opacity: 0.3;
}

/* Responsive timeline */
@media (max-width: 768px) {
    .timeline-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .timeline-point {
        flex-direction: row;
        min-width: auto;
        width: 100%;
    }
    
    .timeline-marker {
        margin-right: 10px;
        margin-bottom: 0;
    }
    
    .timeline-content {
        text-align: left;
        flex: 1;
    }
}

/* QBR Report Generator Styling */
.qbr-section {
    background: linear-gradient(135deg, rgba(61, 0, 102, 0.02) 0%, rgba(60, 32, 178, 0.02) 100%);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(61, 0, 102, 0.08);
}

.qbr-metric-card {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid rgba(61, 0, 102, 0.1);
}

.qbr-metric-header {
    font-weight: 600;
    color: var(--funnelfuel-primary);
    margin-bottom: 12px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.qbr-metric-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.qbr-metric-item {
    text-align: center;
    padding: 10px;
    background: rgba(61, 0, 102, 0.03);
    border-radius: 6px;
}

.qbr-metric-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.qbr-metric-label {
    display: block;
    font-size: 0.75rem;
    color: rgba(61, 0, 102, 0.7);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.qbr-insight-card {
    background: rgba(242, 180, 0, 0.1);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid rgba(242, 180, 0, 0.2);
}

.qbr-insight-header {
    font-weight: 600;
    color: var(--funnelfuel-primary);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.qbr-insight-content {
    color: rgba(61, 0, 102, 0.8);
    font-size: 0.9rem;
    line-height: 1.4;
}

.qbr-wins-section, .qbr-opportunities-section {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid rgba(61, 0, 102, 0.05);
}

.qbr-win-item, .qbr-opportunity-item {
    margin-bottom: 8px;
    font-size: 0.85rem;
    line-height: 1.4;
}

.qbr-subsection {
    margin-bottom: 20px;
}

/* Tier Account Cards */
.tier-1-accounts, .emerging-accounts, .at-risk-accounts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.tier-account-card {
    border-radius: 8px;
    padding: 15px;
    border: 1px solid;
    transition: transform 0.2s ease;
}

.tier-account-card:hover {
    transform: translateY(-2px);
}

.tier-account-card.tier-1 {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(40, 167, 69, 0.05) 100%);
    border-color: rgba(40, 167, 69, 0.3);
}

.tier-account-card.emerging {
    background: linear-gradient(135deg, rgba(242, 180, 0, 0.1) 0%, rgba(242, 180, 0, 0.05) 100%);
    border-color: rgba(242, 180, 0, 0.3);
}

.tier-account-card.at-risk {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(220, 53, 69, 0.05) 100%);
    border-color: rgba(220, 53, 69, 0.3);
}

.tier-account-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 10px;
}

.company-name {
    font-weight: 600;
    color: var(--funnelfuel-primary);
    flex: 1;
}

.intent-score {
    font-weight: 700;
    font-size: 1.1rem;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(61, 0, 102, 0.1);
}

.tier-account-details {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.8rem;
}

.engagement-level, .visits-count {
    padding: 2px 6px;
    border-radius: 3px;
    background: rgba(61, 0, 102, 0.1);
    color: var(--funnelfuel-primary);
}

.growth-indicators {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.growth-indicator {
    font-size: 0.7rem;
    padding: 2px 6px;
    background: rgba(242, 180, 0, 0.2);
    border-radius: 3px;
    color: rgba(61, 0, 102, 0.8);
}

.tier-account-recommendation {
    font-size: 0.8rem;
    color: rgba(61, 0, 102, 0.7);
    font-style: italic;
}

.tier-account-recommendation.urgent {
    color: #dc3545;
    font-weight: 600;
}

.risk-factor {
    margin-bottom: 8px;
    font-size: 0.8rem;
    color: #dc3545;
}

/* Recommendation Cards */
.recommendation-card {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid rgba(61, 0, 102, 0.1);
}

.recommendation-header {
    margin-bottom: 10px;
}

.recommendation-category {
    background: var(--ff-gradient-primary);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.recommendation-content {
    font-size: 0.9rem;
    line-height: 1.5;
}

.recommendation-text {
    font-weight: 600;
    color: var(--funnelfuel-primary);
    margin-bottom: 8px;
}

.recommendation-rationale, .recommendation-implementation {
    margin-bottom: 6px;
    color: rgba(61, 0, 102, 0.8);
}

/* Priority Cards */
.priorities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.priority-card {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid rgba(61, 0, 102, 0.1);
    transition: transform 0.2s ease;
}

.priority-card:hover {
    transform: translateY(-2px);
    border-color: var(--funnelfuel-primary);
}

.priority-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 10px;
}

.priority-title {
    font-weight: 600;
    color: var(--funnelfuel-primary);
    flex: 1;
}

.priority-timeline {
    background: rgba(242, 180, 0, 0.2);
    color: rgba(61, 0, 102, 0.8);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
}

.priority-description {
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: rgba(61, 0, 102, 0.8);
    line-height: 1.4;
}

.priority-details {
    font-size: 0.8rem;
}

.priority-owner, .priority-metrics {
    margin-bottom: 4px;
    color: rgba(61, 0, 102, 0.7);
}

/* QBR Actions */
.qbr-actions {
    background: rgba(61, 0, 102, 0.02);
    border-radius: 8px;
    padding: 15px;
}

.qbr-report-info {
    font-size: 0.8rem;
}

.qbr-export-buttons .btn {
    font-size: 0.8rem;
    padding: 6px 12px;
}

/* Responsive QBR */
@media (max-width: 768px) {
    .qbr-metric-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .tier-1-accounts, .emerging-accounts, .at-risk-accounts {
        grid-template-columns: 1fr;
    }
    
    .priorities-grid {
        grid-template-columns: 1fr;
    }
    
    .tier-account-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .priority-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Account Health Scoring Styling */
.health-overview {
    background: linear-gradient(135deg, rgba(61, 0, 102, 0.02) 0%, rgba(60, 32, 178, 0.02) 100%);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(61, 0, 102, 0.08);
}

.health-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.health-metric-card {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    border: 1px solid rgba(61, 0, 102, 0.1);
    transition: transform 0.2s ease;
}

.health-metric-card:hover {
    transform: translateY(-2px);
}

.health-metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--funnelfuel-primary);
    margin-bottom: 5px;
}

/* Enhanced Health Score Progress Bars */
.health-score-progress {
    width: 100%;
    height: 8px;
    background: rgba(108, 117, 125, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin: 8px 0;
}

.health-score-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.8s ease-in-out;
}

.health-score-fill.excellent {
    background: linear-gradient(90deg, #68d693, #28a745);
}

.health-score-fill.good {
    background: linear-gradient(90deg, #70ad47, #68d693);
}

.health-score-fill.fair {
    background: linear-gradient(90deg, #ffc107, #f2b400);
}

.health-score-fill.poor {
    background: linear-gradient(90deg, #fd7e14, #f48c06);
}

.health-score-fill.critical {
    background: linear-gradient(90deg, #dc3545, #f7450b);
}

/* Color-coded Health Status Badges */
.health-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 8px;
}

.health-status-badge.excellent {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.health-status-badge.good {
    background: rgba(104, 214, 147, 0.1);
    color: #68d693;
    border: 1px solid rgba(104, 214, 147, 0.2);
}

.health-status-badge.fair {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.health-status-badge.poor {
    background: rgba(253, 126, 20, 0.1);
    color: #fd7e14;
    border: 1px solid rgba(253, 126, 20, 0.2);
}

.health-status-badge.critical {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

/* Enhanced Account Cards */
.account-detail-card {
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
}

.account-detail-card.health-excellent {
    border-left-color: #28a745;
}

.account-detail-card.health-good {
    border-left-color: #68d693;
}

.account-detail-card.health-fair {
    border-left-color: #ffc107;
}

.account-detail-card.health-poor {
    border-left-color: #fd7e14;
}

.account-detail-card.health-critical {
    border-left-color: #dc3545;
}

/* Time Format Display */
.time-formatted {
    font-weight: 600;
    color: var(--funnelfuel-primary);
}

.time-unit {
    font-size: 0.8em;
    color: rgba(61, 0, 102, 0.7);
    font-weight: 500;
}

/* Enhanced Health Score Display */
.health-score-display {
    text-align: center;
    min-width: 120px;
}

.health-score-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--funnelfuel-primary);
    margin-bottom: 5px;
}

/* Sortable Tables Styling */
.sortable-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(61, 0, 102, 0.1);
}

.sortable-table th {
    background: linear-gradient(135deg, rgba(61, 0, 102, 0.9) 0%, rgba(60, 32, 178, 0.9) 100%);
    color: white;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    border: none;
}

.sortable-table th:hover {
    background: linear-gradient(135deg, rgba(61, 0, 102, 1) 0%, rgba(60, 32, 178, 1) 100%);
}

.sortable-table th.sortable::after {
    content: ' ↕️';
    font-size: 0.8em;
    opacity: 0.6;
}

.sortable-table th.sort-asc::after {
    content: ' ↑';
    color: #ffd700;
}

.sortable-table th.sort-desc::after {
    content: ' ↓';
    color: #ffd700;
}

.sortable-table td {
    padding: 10px 15px;
    border-bottom: 1px solid rgba(61, 0, 102, 0.1);
    vertical-align: middle;
}

.sortable-table tbody tr:hover {
    background: rgba(61, 0, 102, 0.03);
}

.sortable-table tbody tr:nth-child(even) {
    background: rgba(61, 0, 102, 0.02);
}

/* Table action buttons */
.table-btn {
    padding: 4px 8px;
    font-size: 0.75rem;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

.table-btn-primary {
    background: var(--funnelfuel-primary);
    color: white;
}

.table-btn-primary:hover {
    background: rgba(61, 0, 102, 0.8);
    color: white;
}

/* Metric badges in tables */
.metric-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.metric-badge.high {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.metric-badge.medium {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.metric-badge.low {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.health-metric-label {
    font-size: 0.8rem;
    color: rgba(61, 0, 102, 0.7);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.health-metric-status {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.health-metric-subtitle {
    font-size: 0.7rem;
    margin-top: 2px;
}

.status-excellent {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.status-good {
    background: rgba(40, 167, 69, 0.15);
    color: #28a745;
}

.status-fair {
    background: rgba(242, 180, 0, 0.2);
    color: #f2b400;
}

.status-poor {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.status-critical {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

/* Health Distribution Chart */
.health-distribution-chart {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid rgba(61, 0, 102, 0.05);
}

.health-distribution-item {
    margin-bottom: 10px;
}

.distribution-bar {
    width: 100%;
    height: 8px;
    background: rgba(61, 0, 102, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 3px;
}

.distribution-fill {
    height: 100%;
    transition: width 0.3s ease;
}

.distribution-excellent {
    background: #28a745;
}

.distribution-good {
    background: #20c997;
}

.distribution-fair {
    background: #f2b400;
}

.distribution-poor {
    background: #ffc107;
}

.distribution-critical {
    background: #dc3545;
}

.distribution-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
}

.status-name {
    font-weight: 600;
}

.status-count {
    color: rgba(61, 0, 102, 0.7);
}

/* Health Section */
.health-section {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid rgba(61, 0, 102, 0.05);
}

/* Risk Alerts */
.risk-alerts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.risk-alert-card {
    border-radius: 8px;
    padding: 15px;
    border: 1px solid;
    transition: transform 0.2s ease;
}

.risk-alert-card:hover {
    transform: translateY(-2px);
}

.risk-alert-card.risk-critical {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.15) 0%, rgba(220, 53, 69, 0.05) 100%);
    border-color: rgba(220, 53, 69, 0.4);
}

.risk-alert-card.risk-high {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, rgba(255, 193, 7, 0.05) 100%);
    border-color: rgba(255, 193, 7, 0.4);
}

.risk-alert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.risk-alert-header .company-name {
    font-weight: 600;
    color: var(--funnelfuel-primary);
}

.risk-level {
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.risk-alert-details {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.8rem;
}

.health-score, .health-status {
    padding: 2px 6px;
    border-radius: 3px;
    background: rgba(61, 0, 102, 0.1);
    color: var(--funnelfuel-primary);
}

.risk-concern {
    font-size: 0.85rem;
    color: rgba(61, 0, 102, 0.8);
    margin-bottom: 8px;
}

.risk-urgency {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 6px;
    border-radius: 3px;
}

.urgency-immediate {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.urgency-high {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

/* Growth Signals */
.growth-signals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.growth-signal-card {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(40, 167, 69, 0.05) 100%);
    border: 1px solid rgba(40, 167, 69, 0.3);
    border-radius: 8px;
    padding: 15px;
    transition: transform 0.2s ease;
}

.growth-signal-card:hover {
    transform: translateY(-2px);
}

.growth-signal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.growth-signal-header .company-name {
    font-weight: 600;
    color: var(--funnelfuel-primary);
}

.growth-score {
    font-weight: 700;
    color: #28a745;
    font-size: 1.1rem;
}

.growth-indicators {
    display: flex;
    gap: 15px;
    margin-bottom: 8px;
}

.growth-metric {
    font-size: 0.8rem;
}

.metric-label {
    color: rgba(61, 0, 102, 0.7);
}

.metric-value {
    font-weight: 600;
    color: #28a745;
}

.growth-opportunity {
    font-size: 0.85rem;
    color: rgba(61, 0, 102, 0.8);
    font-style: italic;
}

/* Account Health Table */
.account-health-table {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.account-health-row {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(61, 0, 102, 0.1);
    border-radius: 8px;
    padding: 15px;
    transition: all 0.2s ease;
}

.account-health-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* HubSpot Integration Styles */
.status-card {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.status-card.connected {
    border-color: #28a745;
    background: linear-gradient(135deg, #d4edda 0%, #f8f9fa 100%);
}

.status-card.disconnected {
    border-color: #ffc107;
    background: linear-gradient(135deg, #fff3cd 0%, #f8f9fa 100%);
}

.status-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.setup-step-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 24px;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.setup-step-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.step-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF7B02 0%, #FF9500 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 12px;
    font-size: 14px;
}

.feature-card {
    text-align: center;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF7B02 0%, #FF9500 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 16px;
}

.metric-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e9ecef;
    text-align: center;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: #FF7B02;
    margin-bottom: 8px;
}

.metric-label {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
}

.deal-stage-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.metric-small .value {
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
}

.metric-small .label {
    font-size: 0.8rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}er-radius: 8px;
    padding: 15px;
    border: 1px solid rgba(61, 0, 102, 0.1);
    display: grid;
    grid-template-columns: 2fr 1fr 2fr 2fr;
    gap: 15px;
    align-items: center;
}

.account-info .account-name {
    font-weight: 600;
    color: var(--funnelfuel-primary);
    margin-bottom: 5px;
}

.account-metrics {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.metric-item {
    font-size: 0.75rem;
    padding: 2px 6px;
    background: rgba(61, 0, 102, 0.1);
    border-radius: 3px;
    color: rgba(61, 0, 102, 0.7);
}

.health-score-display {
    text-align: center;
}

.overall-health-score {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.score-excellent { color: #28a745; }
.score-good { color: #20c997; }
.score-fair { color: #f2b400; }
.score-poor { color: #ffc107; }
.score-critical { color: #dc3545; }

.health-status-badge, .risk-level-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 600;
    margin: 2px;
}

.risk-low { background: rgba(40, 167, 69, 0.2); color: #28a745; }
.risk-medium { background: rgba(242, 180, 0, 0.2); color: #f2b400; }
.risk-high { background: rgba(255, 193, 7, 0.2); color: #ffc107; }
.risk-critical { background: rgba(220, 53, 69, 0.2); color: #dc3545; }

.health-components {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.component-score {
    display: flex;
    align-items: center;
    gap: 8px;
}

.component-name {
    font-size: 0.75rem;
    min-width: 80px;
    color: rgba(61, 0, 102, 0.7);
}

.component-bar {
    flex: 1;
    height: 6px;
    background: rgba(61, 0, 102, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.component-fill {
    height: 100%;
    background: var(--ff-gradient-primary);
    transition: width 0.3s ease;
}

.component-value {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--funnelfuel-primary);
    min-width: 35px;
    text-align: right;
}

.health-recommendations {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.recommendation-item {
    font-size: 0.8rem;
    color: rgba(61, 0, 102, 0.8);
}

/* Action Recommendations */
.action-recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.action-card {
    border-radius: 8px;
    padding: 15px;
    border: 1px solid;
    transition: transform 0.2s ease;
}

.action-card:hover {
    transform: translateY(-2px);
}

.action-card.priority-critical {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(220, 53, 69, 0.05) 100%);
    border-color: rgba(220, 53, 69, 0.3);
}

.action-card.priority-high {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 193, 7, 0.05) 100%);
    border-color: rgba(255, 193, 7, 0.3);
}

.action-card.priority-medium {
    background: linear-gradient(135deg, rgba(242, 180, 0, 0.1) 0%, rgba(242, 180, 0, 0.05) 100%);
    border-color: rgba(242, 180, 0, 0.3);
}

.action-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.action-priority {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.action-timeline {
    font-size: 0.75rem;
    color: rgba(61, 0, 102, 0.7);
    font-weight: 600;
}

.action-description {
    font-size: 0.9rem;
    color: var(--funnelfuel-primary);
    font-weight: 600;
    margin-bottom: 8px;
}

.action-impact {
    font-size: 0.8rem;
    color: rgba(61, 0, 102, 0.8);
}

/* Responsive Health Scoring */
@media (max-width: 768px) {
    .health-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .risk-alerts-grid, .growth-signals-grid, .action-recommendations-grid {
        grid-template-columns: 1fr;
    }
    
    .account-health-row {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .health-components {
        align-items: center;
    }
    
    .component-score {
        max-width: 200px;
    }
}

/* One-Click Report Customization Wizard Styling */
.wizard-navigation {
    background: linear-gradient(135deg, rgba(61, 0, 102, 0.02) 0%, rgba(60, 32, 178, 0.02) 100%);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(61, 0, 102, 0.08);
}

.wizard-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.wizard-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(61, 0, 102, 0.2);
    z-index: 1;
}

.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    cursor: pointer;
    transition: all 0.3s ease;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(61, 0, 102, 0.1);
    color: rgba(61, 0, 102, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 2px solid rgba(61, 0, 102, 0.2);
    transition: all 0.3s ease;
}

.wizard-step.active .step-number {
    background: var(--funnelfuel-primary);
    color: white;
    border-color: var(--funnelfuel-primary);
}

.wizard-step.completed .step-number {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.step-label {
    margin-top: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(61, 0, 102, 0.6);
    transition: color 0.3s ease;
}

.wizard-step.active .step-label {
    color: var(--funnelfuel-primary);
}

/* Template Grid */
.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.template-card {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    padding: 20px;
    border: 2px solid rgba(61, 0, 102, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.template-card:hover {
    transform: translateY(-2px);
    border-color: var(--funnelfuel-primary);
    box-shadow: 0 8px 25px rgba(61, 0, 102, 0.1);
}

.template-card.selected {
    border-color: var(--funnelfuel-primary);
    background: linear-gradient(135deg, rgba(61, 0, 102, 0.05) 0%, rgba(60, 32, 178, 0.05) 100%);
}

.template-card.selected::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--funnelfuel-primary);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.template-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.template-name {
    font-weight: 700;
    color: var(--funnelfuel-primary);
    margin: 0;
}

.template-pages {
    background: rgba(242, 180, 0, 0.2);
    color: rgba(61, 0, 102, 0.8);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.template-description {
    color: rgba(61, 0, 102, 0.8);
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 10px;
}

.template-audience {
    font-size: 0.8rem;
    color: rgba(61, 0, 102, 0.7);
    margin-bottom: 12px;
}

.sections-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.section-tag {
    background: rgba(61, 0, 102, 0.1);
    color: var(--funnelfuel-primary);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 500;
}

.section-more {
    background: rgba(242, 180, 0, 0.2);
    color: rgba(61, 0, 102, 0.8);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Sections Grid */
.sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.section-card {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid rgba(61, 0, 102, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.section-card:hover:not(.disabled) {
    transform: translateY(-2px);
    border-color: var(--funnelfuel-primary);
}

.section-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(200, 200, 200, 0.1);
}

.section-card.selected {
    border-color: var(--funnelfuel-primary);
    background: linear-gradient(135deg, rgba(61, 0, 102, 0.05) 0%, rgba(60, 32, 178, 0.05) 100%);
}

.section-checkbox {
    position: relative;
}

.section-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.section-checkbox label {
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(61, 0, 102, 0.3);
    border-radius: 4px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.section-checkbox input[type="checkbox"]:checked + label {
    background: var(--funnelfuel-primary);
    border-color: var(--funnelfuel-primary);
}

.section-checkbox input[type="checkbox"]:checked + label::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.7rem;
}

.section-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(61, 0, 102, 0.1) 0%, rgba(60, 32, 178, 0.1) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--funnelfuel-primary);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.section-info {
    flex: 1;
}

.section-name {
    font-weight: 600;
    color: var(--funnelfuel-primary);
    margin: 0 0 5px 0;
    font-size: 0.9rem;
}

.section-description {
    color: rgba(61, 0, 102, 0.8);
    font-size: 0.8rem;
    line-height: 1.3;
    margin-bottom: 8px;
}

.section-meta {
    display: flex;
    gap: 10px;
    font-size: 0.75rem;
}

.section-length, .section-data {
    background: rgba(61, 0, 102, 0.1);
    color: var(--funnelfuel-primary);
    padding: 2px 6px;
    border-radius: 3px;
}

.section-unavailable {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    padding: 2px 6px;
    border-radius: 3px;
}

/* Styling Sections */
.styling-section {
    margin-bottom: 30px;
}

.styling-title {
    font-weight: 600;
    color: var(--funnelfuel-primary);
    margin-bottom: 15px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.color-schemes, .layout-options, .chart-styles {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.color-scheme-option, .layout-option, .chart-style-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(61, 0, 102, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.4);
}

.color-scheme-option:hover, .layout-option:hover, .chart-style-option:hover {
    border-color: var(--funnelfuel-primary);
    transform: translateX(3px);
}

.color-scheme-option.selected, .layout-option.selected, .chart-style-option.selected {
    border-color: var(--funnelfuel-primary);
    background: linear-gradient(135deg, rgba(61, 0, 102, 0.05) 0%, rgba(60, 32, 178, 0.05) 100%);
}

.color-preview {
    display: flex;
    gap: 3px;
}

.color-primary, .color-secondary {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.layout-icon, .chart-icon {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, rgba(61, 0, 102, 0.1) 0%, rgba(60, 32, 178, 0.1) 100%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--funnelfuel-primary);
    font-size: 1rem;
}

.scheme-info, .layout-info, .style-info {
    flex: 1;
}

.scheme-name, .layout-name, .style-name {
    font-weight: 600;
    color: var(--funnelfuel-primary);
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.scheme-description, .layout-description, .style-description {
    color: rgba(61, 0, 102, 0.7);
    font-size: 0.8rem;
}

/* Export Formats */
.export-formats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.export-format-card {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 10px;
    padding: 20px;
    border: 2px solid rgba(61, 0, 102, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.export-format-card:hover {
    transform: translateY(-2px);
    border-color: var(--funnelfuel-primary);
}

.export-format-card.selected {
    border-color: var(--funnelfuel-primary);
    background: linear-gradient(135deg, rgba(61, 0, 102, 0.05) 0%, rgba(60, 32, 178, 0.05) 100%);
}

.export-format-card.recommended {
    border-color: var(--ff-gold);
}

.recommended-badge {
    position: absolute;
    top: -8px;
    right: 15px;
    background: var(--ff-gold);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.format-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(61, 0, 102, 0.1) 0%, rgba(60, 32, 178, 0.1) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--funnelfuel-primary);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.format-info {
    flex: 1;
}

.format-name {
    font-weight: 600;
    color: var(--funnelfuel-primary);
    margin: 0 0 8px 0;
}

.format-description {
    color: rgba(61, 0, 102, 0.8);
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 10px;
}

.format-features {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.feature-tag {
    background: rgba(61, 0, 102, 0.1);
    color: var(--funnelfuel-primary);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 500;
}

/* Branding Section */
.branding-section {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid rgba(61, 0, 102, 0.05);
}

.form-group {
    margin-bottom: 15px;
}

.form-label {
    font-weight: 600;
    color: var(--funnelfuel-primary);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.form-control, .form-select {
    border: 1px solid rgba(61, 0, 102, 0.2);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--funnelfuel-primary);
    box-shadow: 0 0 0 0.2rem rgba(61, 0, 102, 0.1);
}

/* Advanced Options */
.advanced-options {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid rgba(61, 0, 102, 0.05);
}

.form-check {
    margin-bottom: 10px;
}

.form-check-input {
    border: 2px solid rgba(61, 0, 102, 0.3);
    border-radius: 4px;
}

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

.form-check-label {
    font-size: 0.9rem;
    color: rgba(61, 0, 102, 0.8);
    margin-left: 5px;
}

/* Wizard Actions */
.wizard-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(61, 0, 102, 0.1);
}

/* Report Preview */
.report-preview {
    background: linear-gradient(135deg, rgba(61, 0, 102, 0.02) 0%, rgba(60, 32, 178, 0.02) 100%);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid rgba(61, 0, 102, 0.08);
}

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

.preview-stats {
    display: flex;
    gap: 20px;
}

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

.stat-label {
    font-size: 0.8rem;
    color: rgba(61, 0, 102, 0.7);
    display: block;
    margin-bottom: 3px;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--funnelfuel-primary);
}

.preview-actions {
    display: flex;
    gap: 10px;
}

/* Responsive Wizard */
@media (max-width: 768px) {
    .template-grid, .sections-grid, .export-formats {
        grid-template-columns: 1fr;
    }
    
    .wizard-steps {
        flex-direction: column;
        gap: 20px;
    }
    
    .wizard-steps::before {
        display: none;
    }
    
    .color-schemes, .layout-options, .chart-styles {
        flex-direction: column;
    }
    
    .preview-summary {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .preview-stats {
        width: 100%;
        justify-content: space-around;
    }
}

/* AI Insights Styling */
.ai-section {
    background: linear-gradient(135deg, rgba(61, 0, 102, 0.02) 0%, rgba(60, 32, 178, 0.02) 100%);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(61, 0, 102, 0.08);
    margin-bottom: 20px;
}

.ai-section-title {
    font-weight: 700;
    color: var(--funnelfuel-primary);
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.performance-grade {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.grade-a { background: #28a745; color: white; }
.grade-b { background: #17a2b8; color: white; }
.grade-c { background: #ffc107; color: #212529; }
.grade-d { background: #fd7e14; color: white; }
.grade-f { background: #dc3545; color: white; }

.insight-card {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid rgba(61, 0, 102, 0.05);
}

.insight-title {
    font-weight: 600;
    color: var(--funnelfuel-primary);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.insight-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.insight-list li {
    padding: 5px 0;
    border-bottom: 1px solid rgba(61, 0, 102, 0.1);
    position: relative;
    padding-left: 15px;
}

.insight-list li:last-child {
    border-bottom: none;
}

.insight-list li::before {
    content: '▸';
    color: var(--funnelfuel-primary);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.competitive-position {
    text-align: center;
    padding: 10px 0;
}

.position-badge {
    background: linear-gradient(135deg, var(--funnelfuel-primary) 0%, rgba(60, 32, 178, 0.8) 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.priority-actions {
    margin: 0;
    padding-left: 20px;
}

.priority-actions li {
    padding: 5px 0;
    color: rgba(61, 0, 102, 0.8);
    font-weight: 500;
}

.business-impact {
    background: rgba(242, 180, 0, 0.1);
    border-radius: 8px;
    padding: 15px;
    border-left: 4px solid var(--ff-gold);
}

.impact-text {
    margin: 0;
    color: rgba(61, 0, 102, 0.8);
    line-height: 1.5;
}

/* Competitive Analysis */
.competitive-card {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid rgba(61, 0, 102, 0.05);
    height: 100%;
}

.competitive-card.strengths {
    border-left: 4px solid #28a745;
}

.competitive-card.improvements {
    border-left: 4px solid #ffc107;
}

.competitive-card.opportunities {
    border-left: 4px solid #17a2b8;
}

.competitive-title {
    font-weight: 600;
    color: var(--funnelfuel-primary);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.competitive-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.competitive-list li {
    padding: 5px 0;
    color: rgba(61, 0, 102, 0.8);
    font-size: 0.85rem;
    line-height: 1.3;
}

.market-position {
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    border: 1px solid rgba(61, 0, 102, 0.05);
}

.position-indicator {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--funnelfuel-primary);
}

/* Strategic Recommendations */
.recommendation-card {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid rgba(61, 0, 102, 0.05);
    height: fit-content;
}

.rec-title {
    font-weight: 600;
    color: var(--funnelfuel-primary);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.rec-list {
    margin: 0;
    padding-left: 20px;
}

.rec-list li {
    padding: 3px 0;
    color: rgba(61, 0, 102, 0.8);
    font-size: 0.85rem;
    line-height: 1.3;
}

.timeline-card, .metrics-card {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid rgba(61, 0, 102, 0.05);
}

.timeline-text {
    margin: 0;
    color: rgba(61, 0, 102, 0.8);
    font-size: 0.9rem;
    line-height: 1.4;
}

.metrics-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.metrics-list li {
    padding: 3px 0;
    color: rgba(61, 0, 102, 0.8);
    font-size: 0.85rem;
    position: relative;
    padding-left: 15px;
}

.metrics-list li::before {
    content: '📊';
    position: absolute;
    left: 0;
}

/* Performance Insights & Anomaly Detection */
.success-indicator {
    color: #28a745 !important;
    font-weight: 500;
}

.anomaly-card {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid rgba(220, 53, 69, 0.2);
    border-left: 4px solid #dc3545;
}

.anomaly-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
    border-bottom: 1px solid rgba(61, 0, 102, 0.1);
}

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

.anomaly-severity {
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    min-width: 60px;
    text-align: center;
}

.severity-critical { background: #dc3545; color: white; }
.severity-high { background: #fd7e14; color: white; }
.severity-medium { background: #ffc107; color: #212529; }
.severity-low { background: #6c757d; color: white; }

.anomaly-description {
    flex: 1;
    color: rgba(61, 0, 102, 0.8);
    font-size: 0.85rem;
}

/* Content Optimization & Trend Predictions */
.forecast-card {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid rgba(61, 0, 102, 0.05);
    border-left: 4px solid var(--ff-gold);
}

.forecast-text {
    margin: 0 0 10px 0;
    color: rgba(61, 0, 102, 0.8);
    font-size: 0.9rem;
    line-height: 1.4;
}

.confidence-indicator {
    background: rgba(242, 180, 0, 0.2);
    color: rgba(61, 0, 102, 0.8);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
}

/* Responsive AI Insights */
@media (max-width: 768px) {
    .competitive-card {
        margin-bottom: 15px;
    }
    
    .recommendation-card {
        margin-bottom: 15px;
    }
    
    .ai-section-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .performance-grade {
        align-self: flex-start;
    }
}

/* Card Styles */
.card {
    border: none;
    border-radius: 20px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(61, 0, 102, 0.1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--ff-gradient-accent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(61, 0, 102, 0.2);
}

.card-header {
    border-radius: 20px 20px 0 0 !important;
    border-bottom: none;
    background: linear-gradient(135deg, rgba(61, 0, 102, 0.05) 0%, rgba(60, 32, 178, 0.05) 100%);
    padding: 20px 24px;
    position: relative;
}

.card-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 24px;
    right: 24px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(61, 0, 102, 0.2), transparent);
}

/* Metric Cards */
.metric-card {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(61, 0, 102, 0.03) 0%, rgba(60, 32, 178, 0.03) 100%);
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(61, 0, 102, 0.1);
    position: relative;
    overflow: hidden;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--ff-gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.metric-card:hover::before {
    opacity: 0.05;
}

.metric-card:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: var(--funnelfuel-primary);
    box-shadow: 0 12px 40px rgba(61, 0, 102, 0.15);
}

.metric-card > * {
    position: relative;
    z-index: 1;
}

.metric-value {
    font-size: 2.2rem;
    font-weight: 800;
    background: var(--ff-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    line-height: 1.2;
}

.metric-label {
    font-size: 0.95rem;
    color: var(--funnelfuel-dark);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Intent Score Styles */
.progress {
    border-radius: 15px;
    background-color: rgba(61, 0, 102, 0.1);
    height: 12px;
    overflow: hidden;
    position: relative;
}

.progress::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0.3) 0%, 
        transparent 50%, 
        rgba(255,255,255,0.3) 100%);
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-bar {
    border-radius: 15px;
    transition: width 1s ease;
    position: relative;
    overflow: hidden;
}

/* Intent Band Color Overrides with FunnelFuel Brand Colors */
.bg-success {
    background: linear-gradient(135deg, var(--ff-sage) 0%, var(--ff-ultramarine) 100%) !important;
}

.text-success {
    background: linear-gradient(135deg, var(--ff-sage) 0%, var(--ff-ultramarine) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-info {
    background: linear-gradient(135deg, var(--ff-ultramarine) 0%, var(--ff-indigo) 100%) !important;
}

.text-info {
    background: linear-gradient(135deg, var(--ff-ultramarine) 0%, var(--ff-indigo) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-warning {
    background: linear-gradient(135deg, var(--ff-orange) 0%, var(--ff-gold) 100%) !important;
}

.text-warning {
    background: linear-gradient(135deg, var(--ff-orange) 0%, var(--ff-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%) !important;
}

.text-secondary {
    color: #6c757d !important;
}

.bg-danger {
    background: linear-gradient(135deg, var(--ff-flame) 0%, #dc3545 100%) !important;
}

.text-danger {
    background: linear-gradient(135deg, var(--ff-flame) 0%, #dc3545 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Form Styles */
.form-control, .form-select {
    border-radius: 12px;
    border: 2px solid rgba(61, 0, 102, 0.15);
    padding: 12px 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.form-control:focus, .form-select:focus {
    border-color: var(--funnelfuel-primary);
    box-shadow: 0 0 0 0.2rem rgba(61, 0, 102, 0.25);
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
}

.form-label {
    font-weight: 600;
    color: var(--funnelfuel-dark);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-text {
    color: rgba(61, 0, 102, 0.6);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Table Styles */
.table {
    font-size: 0.9rem;
}

.table th {
    border-top: none;
    font-weight: 600;
    color: var(--funnelfuel-dark);
    background-color: #f8f9fa;
}

.table td {
    vertical-align: middle;
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: 8px;
}

.alert-info {
    background-color: var(--funnelfuel-light);
    color: var(--funnelfuel-dark);
}

/* Scoring Breakdown */
.scoring-breakdown ul {
    max-height: 200px;
    overflow-y: auto;
}

.scoring-breakdown li {
    margin-bottom: 3px;
    padding: 2px 0;
}

/* Loading States */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container-fluid {
        padding: 10px;
    }
    
    .metric-value {
        font-size: 1.4rem;
    }
    
    .display-4 {
        font-size: 2.5rem !important;
    }
    
    .card-body {
        padding: 15px;
    }
    
    .table-responsive {
        font-size: 0.8rem;
    }
}

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

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

/* Print Styles */
@media print {
    .card {
        break-inside: avoid;
        box-shadow: none !important;
    }
    
    .btn, .form-control, .form-select {
        display: none !important;
    }
    
    .col-lg-4:first-child {
        display: none !important;
    }
    
    .col-lg-8 {
        width: 100% !important;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: var(--funnelfuel-primary);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--funnelfuel-secondary);
}

/* Utility Classes */
.text-truncate-2 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.shadow-hover:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
}

.border-funnelfuel {
    border-color: var(--funnelfuel-primary) !important;
}

.bg-funnelfuel-light {
    background-color: var(--funnelfuel-light) !important;
}

/* Report Customization Wizard */
.wizard-progress {
    border-bottom: 1px solid #e9ecef;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.step-indicator.active {
    opacity: 1;
}

.step-indicator.completed {
    opacity: 1;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #6c757d;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.step-indicator.active .step-circle {
    background: var(--funnelfuel-primary);
}

.step-indicator.completed .step-circle {
    background: var(--funnelfuel-success);
}

.step-text {
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
}

.progress-line {
    flex: 1;
    height: 2px;
    background: #e9ecef;
    margin: 0 20px;
    margin-top: 20px;
}

/* Template Cards */
.template-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.template-card:hover .card {
    border-color: var(--funnelfuel-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(111, 66, 193, 0.15);
}

.template-card.selected .card {
    border-color: var(--funnelfuel-primary);
    background: var(--funnelfuel-light);
}

.template-card.selected .card::after {
    content: '\f00c';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 10px;
    right: 15px;
    color: var(--funnelfuel-primary);
    font-size: 1.2rem;
}

/* Section Options */
.section-options .form-check {
    padding: 12px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.section-options .form-check:hover {
    border-color: var(--funnelfuel-primary);
    background: var(--funnelfuel-light);
}

.section-options .form-check-input:checked + .form-check-label {
    color: var(--funnelfuel-primary);
}

/* Color Schemes */
.color-schemes {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.color-option {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.color-option:hover {
    border-color: var(--funnelfuel-primary);
}

.color-option.active {
    border-color: var(--funnelfuel-primary);
    background: var(--funnelfuel-light);
}

.color-preview {
    display: flex;
    margin-right: 12px;
}

.color-bar {
    width: 20px;
    height: 20px;
    margin-right: 2px;
    border-radius: 3px;
}

.color-name {
    font-weight: 500;
}

/* Layout Options */
.layout-options {
    display: flex;
    gap: 15px;
}

.layout-option {
    flex: 1;
    padding: 20px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.layout-option:hover {
    border-color: var(--funnelfuel-primary);
}

.layout-option.active {
    border-color: var(--funnelfuel-primary);
    background: var(--funnelfuel-light);
}

/* Chart Options */
.chart-options {
    display: flex;
    gap: 15px;
}

.chart-option {
    flex: 1;
    padding: 20px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.chart-option:hover {
    border-color: var(--funnelfuel-primary);
}

.chart-option.active {
    border-color: var(--funnelfuel-primary);
    background: var(--funnelfuel-light);
}

/* Export Formats */
.export-formats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.format-option {
    cursor: pointer;
}

.format-card {
    padding: 20px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.format-option:hover .format-card {
    border-color: var(--funnelfuel-primary);
    transform: translateY(-2px);
}

.format-option.active .format-card {
    border-color: var(--funnelfuel-primary);
    background: var(--funnelfuel-light);
}

/* Report Preview */
.report-preview-box {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    background: #f8f9fa;
}

.preview-header {
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 12px;
    margin-bottom: 15px;
}

.preview-content {
    margin-bottom: 15px;
}

.preview-page {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 15px;
    position: relative;
}

.page-indicator {
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 0.75rem;
    color: #6c757d;
}

.content-preview {
    margin-top: 20px;
}

.preview-section {
    padding: 8px 12px;
    background: #f8f9fa;
    border-left: 3px solid var(--funnelfuel-primary);
    margin-bottom: 8px;
    font-size: 0.875rem;
}

.preview-footer {
    border-top: 1px solid #dee2e6;
    padding-top: 12px;
}

/* Delivery Options */
.email-input {
    margin-left: 20px;
}

/* Wizard Modal Responsive */
@media (max-width: 768px) {
    .wizard-progress {
        padding: 15px 20px;
    }
    
    .step-indicator {
        margin: 0 5px;
    }
    
    .step-circle {
        width: 30px;
        height: 30px;
        font-size: 0.875rem;
    }
    
    .step-text {
        font-size: 0.75rem;
    }
    
    .progress-line {
        margin: 0 10px;
        margin-top: 15px;
    }
    
    .export-formats {
        grid-template-columns: 1fr;
    }
    
    .layout-options,
    .chart-options {
        flex-direction: column;
    }
}

/* AI Chatbot Styles */
.chatbot-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 380px;
    max-height: 600px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid #e0e0e0;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
}

.chatbot-widget.minimized {
    max-height: 70px;
}

.chatbot-header {
    background: var(--ff-gradient-primary);
    color: white;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-radius: 16px 16px 0 0;
}

.chatbot-avatar {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.chatbot-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.chatbot-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.chatbot-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-height: 520px;
    transition: all 0.3s ease;
}

.chatbot-widget.minimized .chatbot-body {
    display: none;
}

.chatbot-messages {
    flex: 1;
    padding: 20px 16px;
    overflow-y: auto;
    max-height: 400px;
    background: #f8f9fa;
}

.message {
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
}

.bot-message {
    justify-content: flex-start;
}

.user-message {
    justify-content: flex-end;
}

.message-content {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 16px;
    line-height: 1.4;
    font-size: 14px;
}

.bot-message .message-content {
    background: white;
    border: 1px solid #e0e0e0;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.user-message .message-content {
    background: var(--ff-gradient-primary);
    color: white;
    border-bottom-right-radius: 4px;
}

.suggestions {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.suggestion-btn {
    background: var(--funnelfuel-light);
    border: 1px solid #d0d0d0;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    color: var(--funnelfuel-dark);
}

.suggestion-btn:hover {
    background: #e0e0e0;
    transform: translateY(-1px);
}

.chatbot-input {
    padding: 16px;
    border-top: 1px solid #e0e0e0;
    background: white;
}

.chatbot-input .form-control {
    border-radius: 24px;
    border: 1px solid #d0d0d0;
    padding: 12px 16px;
    font-size: 14px;
}

.chatbot-input .btn-primary {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    padding: 0;
    background: var(--ff-gradient-primary);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 12px;
    color: #666;
}

.typing-dots {
    display: flex;
    gap: 3px;
}

.typing-dots span {
    width: 4px;
    height: 4px;
    background: #666;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% { 
        transform: scale(0);
        opacity: 0.5;
    }
    40% { 
        transform: scale(1);
        opacity: 1;
    }
}

/* Message formatting */
.message-content h2,
.message-content h3,
.message-content h4 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: inherit;
    font-weight: bold;
    color: inherit;
}

.message-content p {
    margin-bottom: 8px;
}

.message-content p:last-child {
    margin-bottom: 0;
}

.message-content ul {
    margin: 8px 0;
    padding-left: 16px;
}

.message-content li {
    margin-bottom: 4px;
}

.message-content strong {
    font-weight: 600;
}

/* Responsive adjustments for chatbot */
@media (max-width: 768px) {
    .chatbot-widget {
        bottom: 10px;
        right: 10px;
        left: 10px;
        width: auto;
        max-width: none;
    }
}

/* Enhanced Account Health Styles */
.account-controls {
    background: rgba(255, 123, 2, 0.05);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 123, 2, 0.2);
}

.account-detail-card {
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.account-detail-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.health-badges .badge {
    font-size: 0.75rem;
    padding: 0.4em 0.6em;
    margin-left: 0.5rem;
}

.ai-summary {
    background: linear-gradient(135deg, rgba(255, 123, 2, 0.05) 0%, rgba(61, 0, 102, 0.05) 100%);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #FF7B02;
}

.ai-summary h6 {
    color: #FF7B02;
    font-weight: 600;
}

.metrics-row .metric-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 15px 10px;
    text-align: center;
    transition: all 0.2s ease;
}

.metrics-row .metric-card:hover {
    border-color: #FF7B02;
    box-shadow: 0 2px 8px rgba(255, 123, 2, 0.15);
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.2;
}

.metric-label {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.analytics-section {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.section-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.section-title i {
    font-size: 0.8rem;
}

.traffic-breakdown .traffic-item {
    font-size: 0.85rem;
    color: #495057;
    margin-bottom: 3px;
    display: flex;
    justify-content: space-between;
}

.traffic-breakdown .traffic-item:before {
    content: "•";
    color: #FF7B02;
    margin-right: 8px;
}

.top-pages .page-item {
    background: #fff;
    padding: 6px 10px;
    margin-bottom: 4px;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    font-size: 0.8rem;
    color: #495057;
}

.top-pages .page-item:hover {
    border-color: #FF7B02;
    background: rgba(255, 123, 2, 0.05);
}

#filterResults {
    background: rgba(61, 0, 102, 0.05);
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid rgba(61, 0, 102, 0.2);
    font-weight: 500;
}

.search-box input:focus,
.filter-dropdown select:focus {
    border-color: #FF7B02;
    box-shadow: 0 0 0 0.2rem rgba(255, 123, 2, 0.25);
}

@media (max-width: 768px) {
    .account-controls {
        flex-direction: column;
        gap: 10px !important;
    }
    
    .account-controls .search-box,
    .account-controls .filter-dropdown select {
        width: 100% !important;
    }
    
    .metrics-row .col {
        margin-bottom: 10px;
    }
}

/* Dynamic Color Palette Generator Styles */
.color-palette-panel {
    position: fixed;
    top: 50%;
    right: -350px;
    transform: translateY(-50%);
    width: 320px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(61, 0, 102, 0.1);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 1050;
    transition: right 0.3s ease-in-out;
    max-height: 90vh;
    overflow-y: auto;
}

.color-palette-panel.open {
    right: 20px;
}

.color-palette-toggle {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background: var(--ff-gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(61, 0, 102, 0.3);
    cursor: pointer;
    z-index: 1051;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.color-palette-toggle:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(61, 0, 102, 0.4);
}

.color-palette-toggle.panel-open {
    right: 360px;
}

.color-picker-group {
    margin-bottom: 15px;
}

.color-picker-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--funnelfuel-dark);
    margin-bottom: 5px;
    display: block;
}

.color-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-picker {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.color-picker:hover {
    transform: scale(1.1);
}

.color-hex-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid rgba(61, 0, 102, 0.2);
    border-radius: 6px;
    font-size: 0.8rem;
    font-family: 'Courier New', monospace;
    background: rgba(255, 255, 255, 0.8);
}

.palette-preset-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 15px;
}

.palette-preset-btn {
    padding: 8px 12px;
    border: 1px solid rgba(61, 0, 102, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--funnelfuel-dark);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.palette-preset-btn:hover {
    background: var(--funnelfuel-light);
    border-color: var(--funnelfuel-primary);
}

.palette-preview {
    display: flex;
    gap: 5px;
    margin-top: 10px;
    padding: 10px;
    background: rgba(248, 245, 255, 0.5);
    border-radius: 8px;
}

.palette-preview-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.palette-actions {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}

.palette-action-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.palette-reset-btn {
    background: rgba(247, 69, 11, 0.1);
    color: var(--danger-color);
}

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

.palette-save-btn {
    background: rgba(104, 214, 147, 0.2);
    color: var(--success-color);
}

.palette-save-btn:hover {
    background: var(--success-color);
    color: white;
}

/* Content Analysis Tables Styles */
.content-analysis-section {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(61, 0, 102, 0.08);
    box-shadow: 0 2px 8px rgba(61, 0, 102, 0.05);
}

.sortable-table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sortable-table thead {
    background: linear-gradient(135deg, var(--funnelfuel-primary) 0%, var(--funnelfuel-secondary) 100%);
}

.sortable-table thead th {
    color: white;
    font-weight: 600;
    border: none;
    padding: 15px 12px;
    font-size: 0.9rem;
}

.sortable-table th.sortable {
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
    position: relative;
}

.sortable-table th.sortable:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-1px);
}

.sortable-table th.sortable:hover i {
    color: var(--funnelfuel-accent) !important;
}

.sortable-table tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(61, 0, 102, 0.05);
}

.sortable-table tbody tr:hover {
    background: rgba(61, 0, 102, 0.02);
    transform: translateX(2px);
}

.sortable-table tbody td {
    padding: 12px;
    vertical-align: middle;
    font-size: 0.9rem;
}

.page-title-cell, .download-title-cell {
    max-width: 250px;
}

.page-title-cell strong, .download-title-cell strong {
    color: var(--funnelfuel-primary);
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
}

.page-title-cell small, .download-title-cell small {
    color: rgba(61, 0, 102, 0.6);
    font-size: 0.8rem;
    line-height: 1.2;
}

.content-summary-section {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(61, 0, 102, 0.08);
    margin-top: 20px;
}

.content-summary-section .metric-card {
    background: white;
    border: 1px solid rgba(61, 0, 102, 0.08);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: all 0.2s ease;
}

.content-summary-section .metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(61, 0, 102, 0.1);
}

/* Animation for table sorting feedback */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Badge styling for content analysis */
.sortable-table .badge {
    font-size: 0.8rem;
    padding: 6px 10px;
    font-weight: 500;
}

.sortable-table .badge.bg-primary {
    background: var(--funnelfuel-primary) !important;
}

.sortable-table .badge.bg-success {
    background: var(--success-color) !important;
}

.sortable-table .badge.bg-info {
    background: var(--info-color) !important;
}

.sortable-table .badge.bg-warning {
    background: var(--warning-color) !important;
}

.sortable-table .badge.bg-danger {
    background: var(--danger-color) !important;
}

/* Content tab specific styling */
#content .card-header {
    background: linear-gradient(135deg, var(--funnelfuel-primary) 0%, var(--funnelfuel-secondary) 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

#content .icon-sphere {
    background: rgba(255, 255, 255, 0.2);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive adjustments for content analysis */
@media (max-width: 768px) {
    .content-analysis-section {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .sortable-table tbody td {
        padding: 8px;
        font-size: 0.8rem;
    }
    
    .page-title-cell, .download-title-cell {
        max-width: 150px;
    }
}
