/* Public Status Page CSS */

/* Prevent Horizontal Scrolling - Critical for Mobile */
html, body {
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
}

body.status-page-theme-default,
body.status-page-theme-dark,
body.status-page-theme-minimal,
body.status-page-theme-corporate,
body.status-page-theme-brand {
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
    box-sizing: border-box;
}

* {
    box-sizing: border-box;
}

/* Base Styles */
.status-page-theme-default {
    background-color: #f8f9fa;
    color: #2d3748;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.status-page-theme-dark {
    background-color: #1a1a1a;
    color: #fff;
}

.status-page-theme-minimal {
    background-color: #fff;
    color: #333;
}

.status-page-theme-corporate {
    background-color: #f5f5f5;
    color: #333;
}

.status-page-theme-brand {
    background-color: #010036;
    color: #e7ebef;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Status Header - Beautiful gradient matching site design */
.status-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.status-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 15s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-20px, -20px) rotate(180deg); }
}

.status-header .container {
    position: relative;
    z-index: 1;
}

/* Dark theme header - fully dark like the rest of the page */
.status-page-theme-dark .status-header {
    background: #1a1a1a !important;
    background-color: #1a1a1a !important;
    color: #fff;
    border-bottom: 1px solid #2d2d2d;
}

.status-page-theme-dark .status-header-logo-only {
    background: transparent;
    border-bottom: 1px solid #2d2d2d;
}

.status-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.status-header-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.9);
}

/* Dark theme header text */
.status-page-theme-dark .status-header .status-title {
    color: #fff !important;
}

.status-page-theme-dark .status-header .status-header-subtitle {
    color: rgba(255, 255, 255, 0.85) !important;
}

.status-page-theme-dark .status-header-logo {
    filter: brightness(1.1);
}

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

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.operational {
    background-color: #28a745;
}

.status-dot.degraded {
    background-color: #ffc107;
}

.status-dot.outage {
    background-color: #dc3545;
}

.status-text {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Status Content */
.status-content {
    padding: 2rem 0;
    max-width: 100%;
    overflow-x: hidden;
    width: 100%;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #2d3748;
    letter-spacing: -0.02em;
}

/* Extra spacing under Recent Incidents title */
.section-title:last-of-type {
    margin-bottom: 1.25rem;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    max-width: 100%;
    width: 100%;
}

.service-card {
    background: white;
    border: none;
    border-radius: 16px;
    padding: 1.5rem 2rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    overflow: visible !important;
    position: relative;
    z-index: 1;
    max-width: 100%;
    box-sizing: border-box;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.25rem;
}

.service-info {
    flex: 1;
}

.service-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    color: #2d3748;
    letter-spacing: -0.01em;
}

/* Dark theme override for service name */
.status-page-theme-dark .service-name {
    color: #fff !important;
}

.service-status {
    margin-bottom: 0.25rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.status-badge.operational {
    background: linear-gradient(135deg, #00b09b 0%, #96c93d 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 176, 155, 0.3);
}

.status-badge.degraded {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.3);
}

.status-badge.outage {
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.4);
}

.status-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* Minimal theme - simple badges without gradients or shadows */
.status-page-theme-minimal .status-badge {
    border-radius: 20px;
    padding: 0.25rem 0.75rem;
    box-shadow: none !important;
    border: 1px solid;
}

.status-page-theme-minimal .status-badge.operational {
    background: #d4edda !important;
    color: #155724 !important;
    border-color: #c3e6cb !important;
}

.status-page-theme-minimal .status-badge.degraded {
    background: #fff3cd !important;
    color: #856404 !important;
    border-color: #ffeaa7 !important;
}

.status-page-theme-minimal .status-badge.outage {
    background: #f8d7da !important;
    color: #721c24 !important;
    border-color: #f5c6cb !important;
}

.status-page-theme-minimal .status-badge:hover {
    transform: none !important;
    box-shadow: none !important;
}

.service-metrics {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.1rem;
}

.metric {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.1rem;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
    line-height: 1;
}

/* Minimal theme - use neutral gray for metrics instead of purple */
.status-page-theme-minimal .metric-value {
    color: #6c757d !important;
}

.metric-label {
    font-size: 0.75rem;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Professional Status Banner - Beautiful gradient matching site design */
.status-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 16px;
    padding: 2rem 2.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    color: white;
    position: relative;
    overflow: hidden;
    max-width: 100%;
    box-sizing: border-box;
}

.status-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 15s ease-in-out infinite;
}

.status-banner > * {
    position: relative;
    z-index: 1;
}

.status-banner.operational {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.status-banner.outage {
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
    box-shadow: 0 10px 30px rgba(245, 87, 108, 0.4);
}

.status-banner.maintenance {
    background: linear-gradient(135deg, #ffa726 0%, #fb8c00 100%);
    box-shadow: 0 10px 30px rgba(255, 167, 38, 0.4);
}

/* Dark theme status banner fixes */
.status-page-theme-dark .status-banner {
    background: #2d2d2d !important;
    background-color: #2d2d2d !important;
    border-color: #444 !important;
    color: #fff !important;
    opacity: 1 !important;
}

.status-page-theme-dark .status-banner.operational {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%) !important;
    background-color: transparent !important;
    border-color: #4a5568 !important;
    color: #fff !important;
    opacity: 1 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
    position: relative !important;
    z-index: 10 !important;
}

.status-page-theme-dark .status-banner.outage {
    background: linear-gradient(135deg, #c53030 0%, #9b2c2c 100%) !important;
    box-shadow: 0 10px 30px rgba(197, 48, 48, 0.4) !important;
}

.status-page-theme-dark .status-banner.maintenance {
    background: linear-gradient(135deg, #d69e2e 0%, #b7791f 100%) !important;
    box-shadow: 0 10px 30px rgba(214, 158, 46, 0.4) !important;
}

/* Dark theme - remove animated overlay for cleaner look */
.status-page-theme-dark .status-banner::before {
    display: none !important;
}

/* Brand theme - matching dashboard brand mode (#010036 background) */
.status-page-theme-brand .status-header {
    background: transparent !important;
    background-color: transparent !important;
    color: #fff;
    border-bottom: 1px solid rgba(102, 126, 234, 0.3);
    box-shadow: none !important;
}

.status-page-theme-brand .status-header-logo-only {
    background: transparent;
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
}

.status-page-theme-brand .status-header .status-title {
    color: #fff !important;
}

.status-page-theme-brand .status-header .status-header-subtitle {
    color: rgba(255, 255, 255, 0.85) !important;
}

.status-page-theme-brand .status-header-logo {
    filter: brightness(1.1);
}

.status-page-theme-brand .status-banner {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%) !important;
    background-color: transparent !important;
    border: 1px solid rgba(102, 126, 234, 0.3) !important;
    color: #e7ebef !important;
    opacity: 1 !important;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2) !important;
}

.status-page-theme-brand .status-banner.operational {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.25) 0%, rgba(118, 75, 162, 0.25) 100%) !important;
    border-color: rgba(102, 126, 234, 0.4) !important;
}

.status-page-theme-brand .status-banner.outage {
    background: linear-gradient(135deg, rgba(245, 87, 108, 0.3) 0%, rgba(240, 147, 251, 0.3) 100%) !important;
    border-color: rgba(245, 87, 108, 0.5) !important;
}

.status-page-theme-brand .status-banner.maintenance {
    background: linear-gradient(135deg, rgba(255, 167, 38, 0.3) 0%, rgba(251, 140, 0, 0.3) 100%) !important;
    border-color: rgba(255, 167, 38, 0.5) !important;
}

.status-page-theme-brand .status-banner::before {
    display: none !important;
}

.status-page-theme-brand .status-header::before {
    display: none !important;
}

.status-page-theme-brand .container,
.status-page-theme-brand .row,
.status-page-theme-brand .col-12 {
    background: transparent !important;
}

.status-page-theme-brand .section-title {
    color: #e7ebef !important;
}

.status-page-theme-brand .service-card {
    background: rgba(102, 126, 234, 0.1) !important;
    border: 1px solid rgba(102, 126, 234, 0.2) !important;
    color: #e7ebef !important;
}

.status-page-theme-brand .service-card:hover {
    background: rgba(102, 126, 234, 0.15) !important;
    border-color: rgba(102, 126, 234, 0.4) !important;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3) !important;
}

.status-page-theme-brand .service-name {
    color: #e7ebef !important;
}

.status-page-theme-brand .service-card * {
    color: inherit;
}

.status-page-theme-brand .service-card h1,
.status-page-theme-brand .service-card h2,
.status-page-theme-brand .service-card h3,
.status-page-theme-brand .service-card h4,
.status-page-theme-brand .service-card h5,
.status-page-theme-brand .service-card h6 {
    color: #e7ebef !important;
}

.status-page-theme-brand .service-card .text-dark,
.status-page-theme-brand .service-card .text-muted,
.status-page-theme-brand .service-card .text-secondary {
    color: #b0c4d9 !important;
}

.status-page-theme-brand .metric-value {
    color: #667eea !important;
}

.status-page-theme-brand .metric-label {
    color: #b0c4d9 !important;
}

.status-page-theme-brand .service-chart-section,
.status-page-theme-brand .response-time-section {
    background: rgba(102, 126, 234, 0.08) !important;
    border-color: rgba(102, 126, 234, 0.2) !important;
}

.status-page-theme-brand .chart-title {
    color: #e7ebef !important;
}

.status-page-theme-brand .chart-header {
    color: #b0c4d9 !important;
}

.status-page-theme-brand .stat-value {
    color: #fff !important;
}

.status-page-theme-brand .stat-label {
    color: rgba(255, 255, 255, 0.85) !important;
}

.status-page-theme-brand h1,
.status-page-theme-brand h2,
.status-page-theme-brand h3,
.status-page-theme-brand h4,
.status-page-theme-brand h5,
.status-page-theme-brand h6 {
    color: #e7ebef !important;
}

.status-page-theme-brand p,
.status-page-theme-brand span,
.status-page-theme-brand div {
    color: inherit;
}

.status-page-theme-brand .text-dark,
.status-page-theme-brand .text-muted,
.status-page-theme-brand .text-secondary {
    color: #b0c4d9 !important;
}

.status-page-theme-brand .status-link {
    color: rgba(255, 255, 255, 0.9) !important;
}

.status-page-theme-brand .status-link:hover {
    color: #fff !important;
}

/* Ensure container and row backgrounds don't interfere */
.status-page-theme-dark .container,
.status-page-theme-dark .row,
.status-page-theme-dark .col-12 {
    background: transparent !important;
}

/* Dark theme status banner content */
.status-page-theme-dark .status-title {
    color: #fff !important;
}

.status-page-theme-dark .status-subtitle {
    color: #ccc !important;
}

.status-page-theme-dark .status-link {
    color: #4dabf7 !important;
}

.status-page-theme-dark .status-link:hover {
    color: #74c0fc !important;
}

.status-page-theme-dark .stat-value {
    color: #51cf66 !important;
}

.status-page-theme-dark .stat-label {
    color: #ccc !important;
}

/* General dark theme text fixes */
.status-page-theme-dark h1,
.status-page-theme-dark h2,
.status-page-theme-dark h3,
.status-page-theme-dark h4,
.status-page-theme-dark h5,
.status-page-theme-dark h6 {
    color: #fff !important;
}

.status-page-theme-dark p,
.status-page-theme-dark span,
.status-page-theme-dark div {
    color: inherit;
}

/* Override any remaining dark text */
.status-page-theme-dark .text-dark,
.status-page-theme-dark .text-muted,
.status-page-theme-dark .text-secondary {
    color: #ccc !important;
}

.status-icon {
    font-size: 3rem;
    color: white;
    flex-shrink: 0;
}

/* Minimal theme - icon should be dark on white background */
.status-page-theme-minimal .status-icon {
    color: #28a745 !important;
}

.status-content h2 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
}

.status-subtitle {
    margin: 0.5rem 0 0 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.status-link {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: underline;
    font-weight: 500;
}

.status-link:hover {
    color: white;
}

.status-stats {
    display: flex;
    gap: 3rem;
    align-items: center;
    margin-left: auto;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.service-chart-section {
    margin-top: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    overflow: visible !important;
    position: relative;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
    color: #718096;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.uptime-chart {
    height: 40px;
    position: relative;
    overflow: visible !important;
}

.response-time-section {
    margin-top: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Enhanced tooltip styling for uptime charts - Beautiful hover tooltips */
.chartjs-tooltip {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important;
    border-radius: 8px !important;
    max-width: 320px !important;
    min-width: 220px !important;
    word-wrap: break-word !important;
    white-space: normal !important;
    z-index: 99999 !important;
    pointer-events: none !important;
    overflow: visible !important;
    position: fixed !important;
    padding: 12px 16px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    /* Position will be controlled by JavaScript MutationObserver */
    /* Ensure tooltip is always on top */
    z-index: 999999 !important;
    /* Make tooltip bigger */
    min-width: 250px !important;
    font-size: 14px !important;
    /* Remove any transforms - JavaScript will handle positioning */
    transform: none !important;
    /* Make tooltip fully opaque */
    opacity: 1 !important;
    /* Default light theme */
    background-color: #fff !important;
    color: #333 !important;
    border: 1px solid #e0e0e0 !important;
}

.chartjs-tooltip-body {
    white-space: normal !important;
    word-wrap: break-word !important;
    line-height: 1.6 !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
}

.chartjs-tooltip-body-item {
    margin: 4px 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 6px !important;
}

.chartjs-tooltip-title {
    white-space: normal !important;
    word-wrap: break-word !important;
    line-height: 1.4 !important;
    margin-bottom: 8px !important;
    margin-top: 0 !important;
    padding-bottom: 8px !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    overflow: visible !important;
    color: inherit !important;
}

.chartjs-tooltip-body {
    color: inherit !important;
}

/* Dark theme tooltip adjustments */
.status-page-theme-dark .chartjs-tooltip {
    background-color: #2d2d2d !important;
    color: #fff !important;
    border-color: #444 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6) !important;
}

.status-page-theme-dark .chartjs-tooltip-title {
    border-bottom-color: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
}

.status-page-theme-dark .chartjs-tooltip-body {
    color: #e0e0e0 !important;
}

.status-page-theme-dark .chartjs-tooltip-body-item {
    color: #e0e0e0 !important;
}

/* Brand theme tooltip */
.status-page-theme-brand .chartjs-tooltip {
    background-color: rgba(102, 126, 234, 0.95) !important;
    color: #fff !important;
    border-color: rgba(102, 126, 234, 0.5) !important;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4) !important;
}

.status-page-theme-brand .chartjs-tooltip-title {
    border-bottom-color: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
}

.status-page-theme-brand .chartjs-tooltip-body {
    color: rgba(255, 255, 255, 0.95) !important;
}

.status-page-theme-brand .chartjs-tooltip-body-item {
    color: rgba(255, 255, 255, 0.95) !important;
}

/* Minimal theme tooltip */
.status-page-theme-minimal .chartjs-tooltip {
    background-color: #fff !important;
    color: #333 !important;
    border-color: #ddd !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

/* Corporate theme tooltip */
.status-page-theme-corporate .chartjs-tooltip {
    background-color: #fff !important;
    color: #333 !important;
    border-color: #e0e0e0 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

/* Tooltip warning icon styling - color handled via JavaScript */
.chartjs-tooltip-body-item {
    color: inherit;
}

/* Ensure chart container allows tooltip overflow */
.service-chart-section,
.uptime-chart {
    overflow: visible !important;
    position: relative !important;
}

.service-chart-section canvas,
.uptime-chart canvas {
    position: relative !important;
    overflow: visible !important;
}

/* Chart.js tooltip container - ensure it's always on top */
#chartjs-tooltip,
.chartjs-tooltip {
    position: fixed !important;
    pointer-events: none !important;
    z-index: 99999 !important;
    max-width: 320px !important;
    word-wrap: break-word !important;
    white-space: normal !important;
}

/* Ensure all parent containers allow overflow */
.services-grid,
.services-grid-single-row,
.status-content,
.container,
.service-card,
.service-chart-section {
    overflow: visible !important;
}

.chart-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #2d3748;
    letter-spacing: -0.01em;
}

.response-time-chart {
    height: 120px;
    position: relative;
}

/* Incidents */
.incidents-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.incident-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.incident-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.incident-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.incident-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: #2d3748 !important;
    letter-spacing: -0.01em;
}

/* Default theme - ensure all incident text is visible */
.status-page-theme-default .incident-title {
    color: #2d3748 !important;
}

.status-page-theme-default .incident-description {
    color: #718096 !important;
}

.status-page-theme-default .incident-time,
.status-page-theme-default .incident-created,
.status-page-theme-default .incident-resolved {
    color: #718096 !important;
}

.status-page-theme-default .incident-item {
    color: #2d3748 !important;
}

.status-page-theme-default .incident-item p,
.status-page-theme-default .incident-item span,
.status-page-theme-default .incident-item div {
    color: inherit;
}

.status-page-theme-default .incident-item .incident-title {
    color: #2d3748 !important;
}

.status-page-theme-default .incident-item .incident-description {
    color: #718096 !important;
}

.status-page-theme-default .incident-item .incident-time,
.status-page-theme-default .incident-item .incident-created,
.status-page-theme-default .incident-item .incident-resolved {
    color: #718096 !important;
}

.status-page-theme-default .incident-item .incident-status,
.status-page-theme-default .incident-item .incident-severity {
    color: inherit !important; /* Badges have their own colors */
}

/* Ensure section title is visible in default theme */
.status-page-theme-default .section-title {
    color: #2d3748 !important;
}

/* Dark theme incident title */
.status-page-theme-dark .incident-title {
    color: #fff !important;
}

.incident-badges {
    display: flex;
    gap: 0.5rem;
}

.incident-status, .incident-severity {
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.incident-status.status-investigating {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.incident-status.status-identified {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.incident-status.status-monitoring {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
    border: 1px solid rgba(23, 162, 184, 0.3);
}

.incident-status.status-resolved {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.incident-severity.severity-minor {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
    border: 1px solid rgba(23, 162, 184, 0.3);
}

.incident-severity.severity-major {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.incident-severity.severity-critical {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.incident-description {
    color: #718096;
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.incident-timeline {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.incident-created, .incident-resolved {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #718096;
}

.incident-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #718096;
}

/* Dark theme incident timestamps */
.status-page-theme-dark .incident-created,
.status-page-theme-dark .incident-resolved {
    color: #ccc !important;
}

/* Footer */
.status-footer {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid #e9ecef;
    margin-top: 3rem;
}

/* Brand theme footer */
.status-page-theme-brand .status-footer {
    border-top: 1px solid rgba(102, 126, 234, 0.3) !important;
}

.status-page-theme-brand .status-footer .text-muted {
    color: #b0c4d9 !important;
}

.status-page-theme-brand .status-footer a {
    color: #667eea !important;
}

.status-page-theme-brand .status-footer a:hover {
    color: #764ba2 !important;
}

/* Theme-specific overrides */
.status-page-theme-dark .status-content {
    background-color: transparent;
    color: #fff;
}

.status-page-theme-dark .service-card,
.status-page-theme-dark .incident-item {
    background: #2d2d2d;
    border-color: #444;
    color: #fff;
}

/* Dark theme status badges - ensure proper contrast and visibility */
.status-page-theme-dark .status-badge.operational {
    background: linear-gradient(135deg, #00be9b 0%, #96c93d 100%) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(0, 190, 155, 0.4) !important;
    border: none !important;
}

.status-page-theme-dark .status-badge.degraded {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.4) !important;
    border: none !important;
}

.status-page-theme-dark .status-badge.outage {
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.5) !important;
    border: none !important;
}

.status-page-theme-dark .status-badge {
    /* Ensure badges stand out on dark background */
    opacity: 1 !important;
    font-weight: 600 !important;
}

.status-page-theme-dark .incident-item:hover {
    background: #333;
    border-color: #555;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.status-page-theme-dark .incident-description {
    color: #ccc !important;
}

.status-page-theme-dark .incident-time {
    color: #ccc !important;
}

/* Dark theme incident badges */
.status-page-theme-dark .incident-status.status-investigating {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.4);
}

.status-page-theme-dark .incident-status.status-identified {
    background: rgba(245, 87, 108, 0.2);
    color: #f5576c;
    border: 1px solid rgba(245, 87, 108, 0.4);
}

.status-page-theme-dark .incident-status.status-monitoring {
    background: rgba(77, 171, 247, 0.2);
    color: #4dabf7;
    border: 1px solid rgba(77, 171, 247, 0.4);
}

.status-page-theme-dark .incident-status.status-resolved {
    background: rgba(81, 207, 102, 0.2);
    color: #51cf66;
    border: 1px solid rgba(81, 207, 102, 0.4);
}

.status-page-theme-dark .incident-severity.severity-minor {
    background: rgba(77, 171, 247, 0.2);
    color: #4dabf7;
    border: 1px solid rgba(77, 171, 247, 0.4);
}

.status-page-theme-dark .incident-severity.severity-major {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.4);
}

.status-page-theme-dark .incident-severity.severity-critical {
    background: rgba(245, 87, 108, 0.2);
    color: #f5576c;
    border: 1px solid rgba(245, 87, 108, 0.4);
}

/* Minimal theme incidents */
.status-page-theme-minimal .incident-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: none !important;
    color: #333 !important;
}

.status-page-theme-minimal .incident-item:hover {
    box-shadow: none !important;
    transform: none;
    border-color: #dee2e6;
}

.status-page-theme-minimal .incident-title {
    color: #333 !important;
}

.status-page-theme-minimal .incident-description {
    color: #666 !important;
}

.status-page-theme-minimal .incident-time,
.status-page-theme-minimal .incident-created,
.status-page-theme-minimal .incident-resolved {
    color: #666 !important;
}

.status-page-theme-minimal .incident-item * {
    color: inherit;
}

.status-page-theme-minimal .incident-item .incident-title {
    color: #333 !important;
}

.status-page-theme-minimal .incident-item .incident-description {
    color: #666 !important;
}

.status-page-theme-minimal .incident-item .incident-time,
.status-page-theme-minimal .incident-item .incident-created,
.status-page-theme-minimal .incident-item .incident-resolved {
    color: #666 !important;
}

.status-page-theme-minimal .incident-item .incident-status,
.status-page-theme-minimal .incident-item .incident-severity {
    color: inherit !important; /* Badges have their own colors */
}

.status-page-theme-minimal .section-title {
    color: #333 !important;
}

.status-page-theme-corporate .section-title {
    color: #212529 !important;
}

/* Corporate theme incidents */
.status-page-theme-corporate .incident-item {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

.status-page-theme-corporate .incident-item:hover {
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.status-page-theme-corporate .incident-title {
    color: #212529 !important;
}

.status-page-theme-corporate .incident-description {
    color: #495057 !important;
}

.status-page-theme-corporate .incident-time,
.status-page-theme-corporate .incident-resolved {
    color: #6c757d !important;
}

/* Maintenance Status Badge - Use incident badge styling */
.maintenance-status {
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.maintenance-status {
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

/* Maintenance Status Badges - Match incident status colors exactly */
.maintenance-status.status-scheduled {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
    border: 1px solid rgba(23, 162, 184, 0.3);
}

.maintenance-status.status-in_progress {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.maintenance-status.status-completed {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.maintenance-status.status-cancelled {
    background: linear-gradient(135deg, #e2e3e5 0%, #d6d8db 100%);
    color: #383d41;
    border: 1px solid rgba(108, 117, 125, 0.3);
}

/* Maintenance uses incident-item classes, so remove duplicate styles */

/* Maintenance Banner - Top Notice */
.maintenance-banner {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid rgba(255, 193, 7, 0.4);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.15);
    animation: maintenancePulse 2s ease-in-out infinite;
}

@keyframes maintenancePulse {
    0%, 100% { box-shadow: 0 4px 12px rgba(255, 193, 7, 0.15); }
    50% { box-shadow: 0 4px 16px rgba(255, 193, 7, 0.25); }
}

.maintenance-banner.maintenance-upcoming {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    border-color: rgba(23, 162, 184, 0.4);
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.15);
    animation: maintenancePulseUpcoming 2s ease-in-out infinite;
}

@keyframes maintenancePulseUpcoming {
    0%, 100% { box-shadow: 0 4px 12px rgba(23, 162, 184, 0.15); }
    50% { box-shadow: 0 4px 16px rgba(23, 162, 184, 0.25); }
}

.maintenance-banner-icon {
    font-size: 2rem;
    color: #856404;
    flex-shrink: 0;
}

.maintenance-banner.maintenance-upcoming .maintenance-banner-icon {
    color: #0c5460;
}

.maintenance-banner-content {
    flex: 1;
}

.maintenance-banner-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #856404;
    margin: 0 0 0.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.maintenance-banner.maintenance-upcoming .maintenance-banner-title {
    color: #0c5460;
}

.maintenance-banner-description {
    font-size: 0.95rem;
    color: #856404;
    margin: 0;
    opacity: 0.9;
}

.maintenance-banner.maintenance-upcoming .maintenance-banner-description {
    color: #0c5460;
}

.maintenance-banner-time {
    font-size: 0.875rem;
    color: #856404;
    margin-top: 0.5rem;
    opacity: 0.85;
}

.maintenance-banner.maintenance-upcoming .maintenance-banner-time {
    color: #0c5460;
}

/* Dark theme maintenance banner - match dark theme, no colored borders */
.status-page-theme-dark .maintenance-banner {
    background: #2d2d2d;
    border: 1px solid #444;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: none;
}

.status-page-theme-dark .maintenance-banner.maintenance-upcoming {
    background: #2d2d2d;
    border-color: #444;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: none;
}

.status-page-theme-dark .maintenance-banner-icon {
    color: #ccc;
}

.status-page-theme-dark .maintenance-banner.maintenance-upcoming .maintenance-banner-icon {
    color: #ccc;
}

.status-page-theme-dark .maintenance-banner-title {
    color: #fff;
    font-weight: 700;
}

.status-page-theme-dark .maintenance-banner.maintenance-upcoming .maintenance-banner-title {
    color: #fff;
    font-weight: 700;
}

.status-page-theme-dark .maintenance-banner-description {
    color: #ccc;
    opacity: 1;
}

.status-page-theme-dark .maintenance-banner.maintenance-upcoming .maintenance-banner-description {
    color: #ccc;
    opacity: 1;
}

.status-page-theme-dark .maintenance-banner-time {
    color: #ccc;
    opacity: 0.9;
}

.status-page-theme-dark .maintenance-banner.maintenance-upcoming .maintenance-banner-time {
    color: #ccc;
    opacity: 0.9;
}

/* Default theme maintenance banner - match default theme colors */
.status-page-theme-default .maintenance-banner {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, rgba(255, 193, 7, 0.1) 100%);
    border: 2px solid rgba(255, 193, 7, 0.3);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.1);
    animation: maintenancePulse 2s ease-in-out infinite;
}

.status-page-theme-default .maintenance-banner.maintenance-upcoming {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
    animation: maintenancePulseUpcoming 2s ease-in-out infinite;
}

.status-page-theme-default .maintenance-banner-icon {
    color: #f59e0b;
}

.status-page-theme-default .maintenance-banner.maintenance-upcoming .maintenance-banner-icon {
    color: #667eea;
}

.status-page-theme-default .maintenance-banner-title {
    color: #2d3748;
    font-weight: 700;
}

.status-page-theme-default .maintenance-banner.maintenance-upcoming .maintenance-banner-title {
    color: #2d3748;
    font-weight: 700;
}

.status-page-theme-default .maintenance-banner-description {
    color: #718096;
    opacity: 1;
}

.status-page-theme-default .maintenance-banner.maintenance-upcoming .maintenance-banner-description {
    color: #718096;
    opacity: 1;
}

.status-page-theme-default .maintenance-banner-time {
    color: #718096;
    opacity: 0.9;
}

.status-page-theme-default .maintenance-banner.maintenance-upcoming .maintenance-banner-time {
    color: #718096;
    opacity: 0.9;
}

/* Minimal theme maintenance banner - truly minimal, no colors */
.status-page-theme-minimal .maintenance-banner {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: none !important;
    animation: none;
}

.status-page-theme-minimal .maintenance-banner.maintenance-upcoming {
    background: #fff;
    border-color: #e9ecef;
    box-shadow: none !important;
    animation: none;
}

.status-page-theme-minimal .maintenance-banner-icon {
    color: #666;
}

.status-page-theme-minimal .maintenance-banner.maintenance-upcoming .maintenance-banner-icon {
    color: #666;
}

.status-page-theme-minimal .maintenance-banner-title {
    color: #333;
    font-weight: 700;
}

.status-page-theme-minimal .maintenance-banner.maintenance-upcoming .maintenance-banner-title {
    color: #333;
    font-weight: 700;
}

.status-page-theme-minimal .maintenance-banner-description {
    color: #666;
    opacity: 1;
}

.status-page-theme-minimal .maintenance-banner.maintenance-upcoming .maintenance-banner-description {
    color: #666;
    opacity: 1;
}

.status-page-theme-minimal .maintenance-banner-time {
    color: #666;
    opacity: 1;
}

.status-page-theme-minimal .maintenance-banner.maintenance-upcoming .maintenance-banner-time {
    color: #666;
    opacity: 1;
}

/* Corporate theme maintenance banner - match corporate theme with proper shadows */
.status-page-theme-corporate .maintenance-banner {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
    animation: none;
    transition: all 0.3s ease;
}

.status-page-theme-corporate .maintenance-banner:hover {
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.status-page-theme-corporate .maintenance-banner.maintenance-upcoming {
    background: #fff;
    border-color: #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
    animation: none;
}

.status-page-theme-corporate .maintenance-banner.maintenance-upcoming:hover {
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.status-page-theme-corporate .maintenance-banner-icon {
    color: #495057;
}

.status-page-theme-corporate .maintenance-banner.maintenance-upcoming .maintenance-banner-icon {
    color: #495057;
}

.status-page-theme-corporate .maintenance-banner-title {
    color: #212529;
    font-weight: 700;
}

.status-page-theme-corporate .maintenance-banner.maintenance-upcoming .maintenance-banner-title {
    color: #212529;
    font-weight: 700;
}

.status-page-theme-corporate .maintenance-banner-description {
    color: #495057;
    opacity: 1;
}

.status-page-theme-corporate .maintenance-banner.maintenance-upcoming .maintenance-banner-description {
    color: #495057;
    opacity: 1;
}

.status-page-theme-corporate .maintenance-banner-time {
    color: #6c757d;
    opacity: 1;
}

.status-page-theme-corporate .maintenance-banner.maintenance-upcoming .maintenance-banner-time {
    color: #6c757d;
    opacity: 1;
}

/* Brand theme maintenance banner */
/* Brand theme maintenance banner - match brand colors */
.status-page-theme-brand .maintenance-banner {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2) 0%, rgba(255, 193, 7, 0.15) 100%);
    border-color: rgba(255, 193, 7, 0.4);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.2);
    animation: maintenancePulse 2s ease-in-out infinite;
}

.status-page-theme-brand .maintenance-banner.maintenance-upcoming {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(102, 126, 234, 0.15) 100%);
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
    animation: maintenancePulseUpcoming 2s ease-in-out infinite;
}

.status-page-theme-brand .maintenance-banner-icon {
    color: #ffc107;
}

.status-page-theme-brand .maintenance-banner.maintenance-upcoming .maintenance-banner-icon {
    color: #667eea;
}

.status-page-theme-brand .maintenance-banner-title {
    color: #ffc107;
}

.status-page-theme-brand .maintenance-banner.maintenance-upcoming .maintenance-banner-title {
    color: #667eea;
}

.status-page-theme-brand .maintenance-banner-description {
    color: #ffc107;
    opacity: 0.9;
}

.status-page-theme-brand .maintenance-banner.maintenance-upcoming .maintenance-banner-description {
    color: #667eea;
    opacity: 0.9;
}

.status-page-theme-brand .maintenance-banner-time {
    color: #ffc107;
    opacity: 0.85;
}

.status-page-theme-brand .maintenance-banner.maintenance-upcoming .maintenance-banner-time {
    color: #667eea;
    opacity: 0.85;
}

.maintenance-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.maintenance-description {
    color: #718096;
    margin-bottom: 0.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.maintenance-services {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.maintenance-services i {
    color: #667eea;
}

.maintenance-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e2e8f0;
}

.maintenance-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #718096;
    flex-wrap: wrap;
}

.maintenance-time i {
    color: #667eea;
}

.maintenance-time strong {
    color: #2d3748;
    margin-right: 0.25rem;
}

/* Default theme maintenance */
.status-page-theme-default .maintenance-title {
    color: #2d3748 !important;
}

.status-page-theme-default .maintenance-description {
    color: #718096 !important;
}

.status-page-theme-default .maintenance-time {
    color: #718096 !important;
}

.status-page-theme-default .maintenance-item {
    color: #2d3748 !important;
}

/* Dark theme maintenance */
.status-page-theme-dark .maintenance-item {
    background: #2d2d2d;
    border-color: #444;
    color: #fff;
}

.status-page-theme-dark .maintenance-item:hover {
    background: #333;
    border-color: #555;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.status-page-theme-dark .maintenance-item.maintenance-active {
    border-left-color: #ffc107;
    background: linear-gradient(90deg, rgba(255, 193, 7, 0.1) 0%, #2d2d2d 5%);
}

.status-page-theme-dark .maintenance-item.maintenance-upcoming {
    border-left-color: #17a2b8;
    background: linear-gradient(90deg, rgba(23, 162, 184, 0.1) 0%, #2d2d2d 5%);
}

.status-page-theme-dark .maintenance-title {
    color: #fff !important;
}

.status-page-theme-dark .maintenance-description {
    color: #ccc !important;
}

.status-page-theme-dark .maintenance-time {
    color: #ccc !important;
}

.status-page-theme-dark .maintenance-status.status-scheduled {
    background: rgba(77, 171, 247, 0.2);
    color: #4dabf7;
    border: 1px solid rgba(77, 171, 247, 0.4);
}

.status-page-theme-dark .maintenance-status.status-in_progress {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.4);
}

.status-page-theme-dark .maintenance-status.status-completed {
    background: rgba(81, 207, 102, 0.2);
    color: #51cf66;
    border: 1px solid rgba(81, 207, 102, 0.4);
}

.status-page-theme-dark .maintenance-status.status-cancelled {
    background: rgba(108, 117, 125, 0.2);
    color: #adb5bd;
    border: 1px solid rgba(108, 117, 125, 0.4);
}

/* Minimal theme maintenance */
.status-page-theme-minimal .maintenance-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: none !important;
    color: #333 !important;
}

.status-page-theme-minimal .maintenance-item:hover {
    box-shadow: none !important;
    transform: none;
    border-color: #dee2e6;
}

.status-page-theme-minimal .maintenance-title {
    color: #333 !important;
}

.status-page-theme-minimal .maintenance-description {
    color: #666 !important;
}

.status-page-theme-minimal .maintenance-time {
    color: #666 !important;
}

/* Corporate theme maintenance */
.status-page-theme-corporate .maintenance-item {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

.status-page-theme-corporate .maintenance-item:hover {
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.status-page-theme-corporate .maintenance-title {
    color: #212529 !important;
}

.status-page-theme-corporate .maintenance-description {
    color: #495057 !important;
}

.status-page-theme-corporate .maintenance-time {
    color: #6c757d !important;
}

/* Brand theme maintenance */
.status-page-theme-brand .maintenance-item {
    background: rgba(102, 126, 234, 0.1) !important;
    border: 1px solid rgba(102, 126, 234, 0.2) !important;
    color: #e7ebef !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

.status-page-theme-brand .maintenance-title {
    color: #e7ebef !important;
}

.status-page-theme-brand .maintenance-description {
    color: #b0c4d9 !important;
}

.status-page-theme-brand .maintenance-time {
    color: #b0c4d9 !important;
}

.status-page-theme-brand .maintenance-status.status-scheduled {
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.2) 0%, rgba(23, 162, 184, 0.3) 100%);
    color: #17a2b8;
    border: 1px solid rgba(23, 162, 184, 0.4);
}

.status-page-theme-brand .maintenance-status.status-in_progress {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2) 0%, rgba(255, 193, 7, 0.3) 100%);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.4);
}

.status-page-theme-brand .maintenance-status.status-completed {
    background: linear-gradient(135deg, rgba(0, 176, 155, 0.2) 0%, rgba(0, 176, 155, 0.3) 100%);
    color: #00b09b;
    border: 1px solid rgba(0, 176, 155, 0.4);
}

.status-page-theme-brand .maintenance-status.status-cancelled {
    background: rgba(108, 117, 125, 0.2);
    color: #adb5bd;
    border: 1px solid rgba(108, 117, 125, 0.4);
}

/* Brand theme incident item - matches service cards */
.status-page-theme-brand .incident-item {
    background: rgba(102, 126, 234, 0.1) !important;
    border: 1px solid rgba(102, 126, 234, 0.2) !important;
    color: #e7ebef !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

.status-page-theme-brand .incident-item:hover {
    background: rgba(102, 126, 234, 0.15) !important;
    border-color: rgba(102, 126, 234, 0.4) !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2) !important;
}

.status-page-theme-brand .incident-title {
    color: #e7ebef !important;
}

.status-page-theme-brand .incident-description {
    color: #b0c4d9 !important;
}

.status-page-theme-brand .incident-time,
.status-page-theme-brand .incident-resolved {
    color: #b0c4d9 !important;
}

.status-page-theme-brand .incident-services {
    color: #b0c4d9 !important;
}

.status-page-theme-brand .incident-services .text-muted {
    color: #b0c4d9 !important;
}

/* Brand theme incident status badges */
.status-page-theme-brand .incident-status.status-investigating {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2) 0%, rgba(255, 193, 7, 0.3) 100%);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.4);
}

.status-page-theme-brand .incident-status.status-identified {
    background: linear-gradient(135deg, rgba(245, 87, 108, 0.2) 0%, rgba(245, 87, 108, 0.3) 100%);
    color: #f5576c;
    border: 1px solid rgba(245, 87, 108, 0.4);
}

.status-page-theme-brand .incident-status.status-monitoring {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(102, 126, 234, 0.3) 100%);
    color: #667eea;
    border: 1px solid rgba(102, 126, 234, 0.4);
}

.status-page-theme-brand .incident-status.status-resolved {
    background: linear-gradient(135deg, rgba(0, 176, 155, 0.2) 0%, rgba(0, 176, 155, 0.3) 100%);
    color: #00b09b;
    border: 1px solid rgba(0, 176, 155, 0.4);
}

/* Brand theme incident severity badges */
.status-page-theme-brand .incident-severity.severity-minor {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(102, 126, 234, 0.3) 100%);
    color: #667eea;
    border: 1px solid rgba(102, 126, 234, 0.4);
}

.status-page-theme-brand .incident-severity.severity-major {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2) 0%, rgba(255, 193, 7, 0.3) 100%);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.4);
}

.status-page-theme-brand .incident-severity.severity-critical {
    background: linear-gradient(135deg, rgba(245, 87, 108, 0.2) 0%, rgba(245, 87, 108, 0.3) 100%);
    color: #f5576c;
    border: 1px solid rgba(245, 87, 108, 0.4);
}

.status-page-theme-dark .service-name {
    color: #fff !important;
}

.status-page-theme-dark .service-header h3 {
    color: #fff !important;
}

.status-page-theme-dark .service-metrics .metric-label {
    color: #ccc !important;
}

.status-page-theme-dark .service-metrics .metric-value {
    color: #51cf66 !important;
}

.status-page-theme-dark .service-status {
    color: #51cf66 !important;
}

.status-page-theme-dark .service-status .badge {
    color: #fff !important;
}

/* Comprehensive dark theme text fixes */
.status-page-theme-dark .service-card * {
    color: inherit;
}

.status-page-theme-dark .service-card h1,
.status-page-theme-dark .service-card h2,
.status-page-theme-dark .service-card h3,
.status-page-theme-dark .service-card h4,
.status-page-theme-dark .service-card h5,
.status-page-theme-dark .service-card h6 {
    color: #fff !important;
}

.status-page-theme-dark .service-card p,
.status-page-theme-dark .service-card span,
.status-page-theme-dark .service-card div {
    color: inherit;
}

/* Override any Bootstrap or other framework text colors */
.status-page-theme-dark .service-card .text-dark,
.status-page-theme-dark .service-card .text-muted,
.status-page-theme-dark .service-card .text-secondary {
    color: #fff !important;
}

.status-page-theme-dark .service-card .text-success {
    color: #51cf66 !important;
}

/* ==================== Category Styles ==================== */

/* Base Category Section Styles */
.category-section {
    margin: 2rem 0 1rem 0;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.category-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2d3748; /* Default dark color for default theme */
}

.category-description {
    font-size: 0.9rem;
    color: rgba(45, 55, 72, 0.6); /* Match default theme text color with opacity */
    margin-bottom: 0;
}

/* Spacing between categories */
.category-section + .services-grid,
.category-section + .services-grid-stacked,
.category-section + .services-grid-single-row,
.category-section + .services-grid-compact {
    margin-top: 1.5rem;
}

/* Ensure categories work with all layouts */
.services-grid .category-section:first-child,
.services-grid-single-row .category-section:first-child,
.services-grid-compact .category-section:first-child {
    margin-top: 0;
}

/* Compact layout may need tighter spacing */
.services-grid-compact .category-section {
    margin: 1.5rem 0 0.75rem 0;
    padding-bottom: 0.75rem;
}

/* Default Theme Category Styles (explicit override) */
.status-page-theme-default .category-title {
    color: #2d3748 !important; /* Match default theme text color */
}

.status-page-theme-default .category-description {
    color: rgba(45, 55, 72, 0.6) !important; /* Match default theme with opacity */
}

/* Dark Theme Category Styles */
.status-page-theme-dark .category-section {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.status-page-theme-dark .category-title {
    color: #fff;
}

.status-page-theme-dark .category-description {
    color: rgba(255, 255, 255, 0.6);
}

/* Minimal Theme Category Styles */
.status-page-theme-minimal .category-section {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 0.75rem;
    margin: 1.5rem 0 0.75rem 0;
}

.status-page-theme-minimal .category-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.8);
}

.status-page-theme-minimal .category-description {
    font-size: 0.85rem;
    color: rgba(0, 0, 0, 0.5);
}

/* Corporate Theme Category Styles */
.status-page-theme-corporate .category-section {
    border-bottom: 2px solid rgba(0, 0, 0, 0.15);
    padding-bottom: 1rem;
    margin: 2.5rem 0 1.25rem 0;
}

.status-page-theme-corporate .category-title {
    font-size: 1.5rem;
    font-weight: 600;
    text-transform: none; /* Remove uppercase for better readability */
    letter-spacing: normal; /* Remove letter spacing */
    color: #212529; /* Match section-title color */
}

.status-page-theme-corporate .category-description {
    font-size: 0.9rem;
    color: rgba(33, 37, 41, 0.7); /* Match corporate theme text with opacity */
    font-style: normal; /* Remove italic for cleaner look */
}

/* Brand Theme Category Styles */
.status-page-theme-brand .category-section {
    border-bottom: 2px solid rgba(102, 126, 234, 0.3); /* Visible on dark blue background */
    padding-bottom: 1rem;
    margin: 2rem 0 1rem 0;
}

.status-page-theme-brand .category-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #e7ebef; /* Match brand theme text color */
}

.status-page-theme-brand .category-description {
    font-size: 0.9rem;
    color: rgba(231, 235, 239, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .category-section {
        margin: 1.5rem 0 0.75rem 0;
        padding-bottom: 0.75rem;
    }
    
    .category-title {
        font-size: 1.25rem;
    }
    
    .category-description {
        font-size: 0.85rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .category-section {
        margin: 1.75rem 0 0.875rem 0;
    }
}

.status-page-theme-dark .section-title {
    color: #fff;
}

/* Dark theme compatibility for new chart elements */
.status-page-theme-dark .status-banner {
    background: #2d2d2d;
    border-color: #444;
    color: #fff;
}

.status-page-theme-dark .status-title {
    color: #fff;
}

.status-page-theme-dark .status-subtitle {
    color: #ccc;
}

.status-page-theme-dark .status-link {
    color: #4dabf7;
}

.status-page-theme-dark .status-link:hover {
    color: #74c0fc;
}

.status-page-theme-dark .stat-value {
    color: #51cf66;
}

.status-page-theme-dark .stat-label {
    color: #ccc;
}

.status-page-theme-dark .chart-title {
    color: #fff;
}

.status-page-theme-dark .chart-header {
    color: #ccc;
}

.status-page-theme-dark .chart-period {
    color: #999;
}

.status-page-theme-dark .service-chart-section {
    background: #2d2d2d;
    border-color: #444;
    border-radius: 8px;
    padding: 1rem;
}

.status-page-theme-dark .response-time-section {
    background: #2d2d2d;
    border-color: #444;
    border-radius: 8px;
    padding: 1rem;
}

.status-page-theme-dark .uptime-chart,
.status-page-theme-dark .response-time-chart {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
    padding: 0.5rem;
}

.status-page-theme-minimal .status-header {
    background: #fff;
    color: #333;
    border-bottom: 1px solid #e9ecef;
}

/* Minimal theme compatibility for new chart elements */
.status-page-theme-minimal .status-banner {
    background: #fff !important;
    border: 1px solid #e9ecef !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    color: #333 !important;
}

.status-page-theme-minimal .status-banner.operational {
    background: #fff !important;
    box-shadow: none !important;
}

.status-page-theme-minimal .status-banner::before {
    display: none !important;
}

/* Remove only heavy shadows in minimal theme, keep borders and structure */
.status-page-theme-minimal .service-card {
    box-shadow: none !important;
    border: 1px solid #e9ecef !important;
}

.status-page-theme-minimal .service-card:hover {
    box-shadow: none !important;
    transform: none !important;
    border-color: #dee2e6 !important;
}

.status-page-theme-minimal .service-chart-section,
.status-page-theme-minimal .response-time-section {
    box-shadow: none !important;
    border: 1px solid #e9ecef !important;
}

.status-page-theme-minimal .status-title {
    color: #333;
}

.status-page-theme-minimal .status-subtitle {
    color: #6c757d;
}

.status-page-theme-minimal .status-link {
    color: #6c757d;
}

.status-page-theme-minimal .status-link:hover {
    color: #495057;
}

.status-page-theme-minimal .stat-value {
    color: #28a745;
}

.status-page-theme-minimal .stat-label {
    color: #6c757d;
}

.status-page-theme-minimal .chart-title {
    color: #333;
}

.status-page-theme-minimal .chart-header {
    color: #6c757d;
}

.status-page-theme-minimal .chart-period {
    color: #adb5bd;
}

.status-page-theme-minimal .service-chart-section {
    background: #f8f9fa;
    border-color: #e9ecef;
}

.status-page-theme-minimal .response-time-section {
    background: #f8f9fa;
    border-color: #e9ecef;
}

.status-page-theme-corporate .status-header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

/* Corporate theme compatibility for new chart elements */
.status-page-theme-corporate .status-banner {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-color: #0056b3;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.3);
}

.status-page-theme-corporate .status-banner.operational {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.3);
}

.status-page-theme-corporate .status-banner.outage {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.3);
}

.status-page-theme-corporate .status-banner.maintenance {
    background: linear-gradient(135deg, #ffa726 0%, #fb8c00 100%);
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.3);
}

.status-page-theme-corporate .status-title {
    color: #fff;
}

.status-page-theme-corporate .status-subtitle {
    color: #e3f2fd;
}

.status-page-theme-corporate .status-link {
    color: #bbdefb;
}

.status-page-theme-corporate .status-link:hover {
    color: #90caf9;
}

.status-page-theme-corporate .stat-value {
    color: #fff;
}

.status-page-theme-corporate .stat-label {
    color: #e3f2fd;
}

.status-page-theme-corporate .chart-title {
    color: #fff;
}

.status-page-theme-corporate .chart-header {
    color: #e3f2fd;
}

.status-page-theme-corporate .chart-period {
    color: #64b5f6;
    font-weight: 600;
}

.status-page-theme-corporate .service-chart-section {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.status-page-theme-corporate .response-time-section {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Corporate theme service cards - match incident items */
.status-page-theme-corporate .service-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

.status-page-theme-corporate .service-card:hover {
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.status-page-theme-corporate .service-name {
    color: #212529 !important;
}

.status-page-theme-corporate .service-card .text-muted,
.status-page-theme-corporate .service-card .text-secondary {
    color: #6c757d !important;
}

.status-page-theme-corporate .metric-value {
    color: #007bff !important;
}

.status-page-theme-corporate .metric-label {
    color: #6c757d !important;
}

/* Responsive Design - Mobile First */
@media (max-width: 768px) {
    /* Prevent all horizontal overflow on mobile */
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        width: 100% !important;
    }
    
    * {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Status Header - Mobile */
    .status-header {
        padding: 2rem 1rem;
        margin-bottom: 1.5rem;
        max-width: 100vw;
        width: 100%;
        overflow-x: hidden;
    }
    
    .status-title {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }
    
    .status-header-subtitle {
        font-size: 0.95rem;
    }
    
    .status-header-logo {
        max-height: 50px !important;
        max-width: 150px !important;
        margin-bottom: 1rem !important;
    }
    
    /* Status Content - Mobile */
    .status-content {
        padding: 1rem 0;
        max-width: 100vw;
        width: 100%;
        overflow-x: hidden;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
        max-width: 100%;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }
    
    .row {
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
        width: 100%;
    }
    
    .col-12 {
        padding-left: 0;
        padding-right: 0;
        max-width: 100%;
        width: 100%;
    }
    
    /* Images - Mobile */
    img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    .status-header-logo {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Text wrapping - Mobile */
    h1, h2, h3, h4, h5, h6, p, span, div {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .service-name,
    .incident-title,
    .maintenance-banner-title {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    /* Status Banner - Mobile */
    .status-banner {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 1.5rem 1rem;
        margin-bottom: 1.5rem;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .status-icon {
        font-size: 2.5rem;
    }
    
    .status-content h2 {
        font-size: 1.5rem;
    }
    
    .status-subtitle {
        font-size: 0.9rem;
    }
    
    .status-stats {
        flex-direction: row;
        justify-content: space-around;
        gap: 1.5rem;
        width: 100%;
        margin-left: 0;
    }
    
    .stat-item {
        flex: 1;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    /* Services Grid - Mobile */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 100%;
        width: 100%;
        padding: 0;
    }
    
    .services-grid-single-row {
        gap: 1rem;
        max-width: 100%;
        width: 100%;
        padding: 0;
    }
    
    .services-grid-compact {
        gap: 1rem;
        max-width: 100%;
        width: 100%;
        padding: 0;
    }
    
    /* Service Cards - Mobile */
    .service-card {
        padding: 1rem 1.25rem;
        border-radius: 12px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .service-card-compact {
        padding: 1rem 1.25rem !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    
    .service-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .service-name {
        font-size: 1.1rem;
        word-break: break-word;
    }
    
    .service-status {
        width: 100%;
    }
    
    .status-badge {
        font-size: 0.7rem;
        padding: 0.4rem 0.75rem;
    }
    
    .service-metrics {
        align-items: flex-start;
        width: 100%;
        margin-top: 0.75rem;
        flex-direction: row;
        justify-content: space-between;
    }
    
    .metric {
        flex: 1;
        align-items: flex-start;
    }
    
    .metric-value {
        font-size: 1.25rem;
    }
    
    .metric-label {
        font-size: 0.7rem;
    }
    
    /* Charts - Mobile */
    .service-chart-section {
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 8px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .service-chart-section-compact {
        margin-top: 0.75rem;
        padding: 0.5rem 0;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .chart-header {
        font-size: 0.7rem;
        flex-wrap: wrap;
        gap: 0.5rem;
        max-width: 100%;
        width: 100%;
    }
    
    .chart-header-compact {
        font-size: 0.7rem;
        flex-wrap: wrap;
        max-width: 100%;
        width: 100%;
    }
    
    .chart-period {
        font-size: 0.65rem;
        white-space: nowrap;
    }
    
    .uptime-chart {
        height: 35px;
        max-width: 100%;
        width: 100%;
        overflow-x: hidden;
    }
    
    .uptime-chart-compact {
        height: 35px;
        max-width: 100%;
        width: 100%;
        overflow-x: hidden;
    }
    
    .uptime-chart canvas,
    .uptime-chart-compact canvas {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .response-time-section {
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 8px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .response-time-section-compact {
        margin-top: 0.75rem;
        padding: 0.75rem 0;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .response-time-chart {
        height: 100px;
        max-width: 100%;
        width: 100%;
        overflow-x: hidden;
    }
    
    .response-time-chart canvas {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .chart-title {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .chart-uptime-percentage-compact {
        font-size: 0.8rem;
        margin-top: 0.5rem;
        padding-top: 0.5rem;
    }
    
    /* Section Titles - Mobile */
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    /* Category Section - Mobile */
    .category-section {
        margin: 1.5rem 0 0.75rem 0;
        padding-bottom: 0.75rem;
    }
    
    .category-title {
        font-size: 1.25rem;
    }
    
    .category-description {
        font-size: 0.85rem;
    }
    
    /* Maintenance Banner - Mobile */
    .maintenance-banner {
        flex-direction: column;
        padding: 1rem;
        margin-bottom: 1.5rem;
        gap: 0.75rem;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .maintenance-banner-icon {
        font-size: 1.5rem;
    }
    
    .maintenance-banner-content {
        text-align: center;
    }
    
    .maintenance-banner-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .maintenance-banner-description {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
    
    .maintenance-banner-time {
        font-size: 0.8rem;
        margin-top: 0.5rem;
    }
    
    /* Incidents - Mobile */
    .incidents-list {
        gap: 0.75rem;
        max-width: 100%;
        width: 100%;
    }
    
    .incident-item {
        padding: 1rem;
        border-radius: 10px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
        word-wrap: break-word;
    }
    
    .incident-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .incident-title {
        font-size: 1.1rem;
        word-break: break-word;
    }
    
    .incident-badges {
        flex-wrap: wrap;
        gap: 0.5rem;
        width: 100%;
    }
    
    .incident-status,
    .incident-severity {
        font-size: 0.7rem;
        padding: 0.4rem 0.75rem;
    }
    
    .incident-description {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }
    
    .incident-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .incident-time,
    .incident-resolved {
        font-size: 0.8rem;
        flex-wrap: wrap;
    }
    
    .incident-services {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    /* Footer - Mobile */
    .status-footer {
        padding: 1.5rem 0;
        margin-top: 2rem;
        font-size: 0.9rem;
    }
    
    .status-footer p {
        margin-bottom: 0.5rem;
        font-size: 0.85rem;
    }
    
    /* Logo Only Header - Mobile */
    .status-header-logo-only {
        padding: 1.5rem 0 0.75rem 0 !important;
    }
    
    .status-header-logo-only .status-header-logo {
        max-height: 50px !important;
        max-width: 150px !important;
    }
    
    /* Tooltips - Mobile Optimization */
    /* Only constrain size, don't force positioning - let Chart.js handle positioning */
    .chartjs-tooltip {
        max-width: calc(100vw - 2rem) !important;
        min-width: auto !important;
        width: auto !important;
        font-size: 12px !important;
        padding: 10px 12px !important;
        box-sizing: border-box !important;
        word-break: break-word !important;
        /* Don't override positioning - Chart.js handles it */
    }
    
    .chartjs-tooltip-title {
        font-size: 12px !important;
        margin-bottom: 6px !important;
        padding-bottom: 6px !important;
    }
    
    .chartjs-tooltip-body {
        font-size: 11px !important;
        line-height: 1.4 !important;
    }
    
    .chartjs-tooltip-body-item {
        margin: 3px 0 !important;
        font-size: 11px !important;
    }
    
    /* Bootstrap Tooltips - Mobile */
    .tooltip {
        max-width: calc(100vw - 2rem) !important;
        font-size: 12px !important;
    }
    
    .tooltip .tooltip-inner {
        max-width: calc(100vw - 2rem) !important;
        font-size: 12px !important;
        padding: 8px 12px !important;
        word-wrap: break-word !important;
        white-space: normal !important;
        line-height: 1.4 !important;
    }
    
    /* Disable tooltips on touch devices for better UX - show on tap instead */
    @media (hover: none) and (pointer: coarse) {
        [data-bs-toggle="tooltip"] {
            cursor: pointer;
        }
    }
}

/* Extra Small Mobile Devices */
@media (max-width: 480px) {
    /* Ensure no horizontal overflow on very small screens */
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    
    .status-header {
        padding: 1.5rem 0.75rem;
        max-width: 100vw;
        width: 100%;
    }
    
    .status-title {
        font-size: 1.5rem;
    }
    
    .status-header-subtitle {
        font-size: 0.85rem;
    }
    
    .status-banner {
        padding: 1.25rem 0.75rem;
    }
    
    .status-content h2 {
        font-size: 1.25rem;
    }
    
    .stat-value {
        font-size: 1.25rem;
    }
    
    .stat-label {
        font-size: 0.65rem;
    }
    
    .service-card {
        padding: 0.875rem 1rem;
    }
    
    .service-card-compact {
        padding: 0.875rem 1rem !important;
    }
    
    .service-name {
        font-size: 1rem;
    }
    
    .metric-value {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .category-title {
        font-size: 1.1rem;
    }
    
    .maintenance-banner {
        padding: 0.875rem;
    }
    
    .maintenance-banner-title {
        font-size: 0.95rem;
    }
    
    .incident-item {
        padding: 0.875rem;
    }
    
    .incident-title {
        font-size: 1rem;
    }
    
    .status-stats {
        gap: 1rem;
    }
    
    .service-metrics {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .metric {
        width: 100%;
    }
    
    /* Tooltips - Extra Small Mobile */
    .chartjs-tooltip {
        max-width: calc(100vw - 1rem) !important;
        font-size: 11px !important;
        padding: 8px 10px !important;
        /* Don't force positioning - let Chart.js handle it */
    }
    
    .chartjs-tooltip-title {
        font-size: 11px !important;
        margin-bottom: 5px !important;
        padding-bottom: 5px !important;
    }
    
    .chartjs-tooltip-body {
        font-size: 10px !important;
    }
    
    .chartjs-tooltip-body-item {
        font-size: 10px !important;
        margin: 2px 0 !important;
    }
    
    .tooltip {
        max-width: calc(100vw - 1rem) !important;
    }
    
    .tooltip .tooltip-inner {
        max-width: calc(100vw - 1rem) !important;
        font-size: 11px !important;
        padding: 6px 10px !important;
        word-wrap: break-word !important;
        white-space: normal !important;
    }
}

/* Single Row Layout Styles - Same design as stacked but one service per row */
.services-grid-single-row {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.services-grid-single-row .service-card {
    width: 100%;
    max-width: none;
}

/* Compact Layout */
.services-grid-compact {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.service-card-compact {
    width: 100%;
    max-width: none;
    padding: 1rem 1.5rem !important;
}

.service-card-compact .service-header {
    margin-bottom: 0.75rem;
}

.service-chart-section-compact {
    margin-top: 0.75rem;
    padding: 0.75rem 0;
    position: relative;
}

.chart-header-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    color: #718096;
    font-weight: 600;
}

.chart-uptime-percentage {
    font-size: 0.875rem;
    font-weight: 700;
    color: #2d3748;
    text-align: center;
    flex: 1;
}

.chart-uptime-percentage-compact {
    font-size: 0.875rem;
    font-weight: 700;
    color: #2d3748;
    text-align: center;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.chart-uptime-percentage-compact::before,
.chart-uptime-percentage-compact::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: #e2e8f0;
}

.chart-uptime-percentage-compact::before {
    margin-right: 0.75rem;
}

.chart-uptime-percentage-compact::after {
    margin-left: 0.75rem;
}

.uptime-chart-compact {
    height: 40px;
    position: relative;
    overflow: visible !important;
}

.response-time-section-compact {
    margin-top: 1rem;
    padding: 1rem 0;
}

.response-time-section-compact .chart-title {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

/* Theme-specific compact layout adjustments */
.status-page-theme-dark .chart-uptime-percentage,
.status-page-theme-dark .chart-uptime-percentage-compact {
    color: #fff !important;
}

.status-page-theme-dark .chart-uptime-percentage-compact::before,
.status-page-theme-dark .chart-uptime-percentage-compact::after {
    background-color: #444 !important;
}

.status-page-theme-brand .chart-uptime-percentage,
.status-page-theme-brand .chart-uptime-percentage-compact {
    color: #e7ebef !important;
}

.status-page-theme-brand .chart-uptime-percentage-compact::before,
.status-page-theme-brand .chart-uptime-percentage-compact::after {
    background-color: rgba(102, 126, 234, 0.3) !important;
}

.status-page-theme-minimal .chart-uptime-percentage,
.status-page-theme-minimal .chart-uptime-percentage-compact {
    color: #333 !important;
}

.status-page-theme-minimal .chart-uptime-percentage-compact::before,
.status-page-theme-minimal .chart-uptime-percentage-compact::after {
    background-color: #e9ecef !important;
}

.status-page-theme-corporate .chart-uptime-percentage,
.status-page-theme-corporate .chart-uptime-percentage-compact {
    color: #212529 !important;
}

.status-page-theme-corporate .chart-uptime-percentage-compact::before,
.status-page-theme-corporate .chart-uptime-percentage-compact::after {
    background-color: #dee2e6 !important;
}

/* Bootstrap tooltips - theme-aware styling */
.status-page-theme-dark .tooltip .tooltip-inner {
    background-color: #2d2d2d !important;
    color: #fff !important;
    border: 1px solid #444 !important;
}

.status-page-theme-dark .tooltip .tooltip-arrow::before {
    border-top-color: #2d2d2d !important;
}

.status-page-theme-dark .tooltip.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: #2d2d2d !important;
}

.status-page-theme-dark .tooltip.bs-tooltip-start .tooltip-arrow::before {
    border-left-color: #2d2d2d !important;
}

.status-page-theme-dark .tooltip.bs-tooltip-end .tooltip-arrow::before {
    border-right-color: #2d2d2d !important;
}

/* Brand theme Bootstrap tooltips */
.status-page-theme-brand .tooltip .tooltip-inner {
    background-color: rgba(102, 126, 234, 0.95) !important;
    color: #fff !important;
    border: 1px solid rgba(102, 126, 234, 0.5) !important;
}

.status-page-theme-brand .tooltip .tooltip-arrow::before {
    border-top-color: rgba(102, 126, 234, 0.95) !important;
}

.status-page-theme-brand .tooltip.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: rgba(102, 126, 234, 0.95) !important;
}

.status-page-theme-brand .tooltip.bs-tooltip-start .tooltip-arrow::before {
    border-left-color: rgba(102, 126, 234, 0.95) !important;
}

.status-page-theme-brand .tooltip.bs-tooltip-end .tooltip-arrow::before {
    border-right-color: rgba(102, 126, 234, 0.95) !important;
}

/* Light themes - default Bootstrap tooltip styling is fine */
.status-page-theme-default .tooltip .tooltip-inner,
.status-page-theme-minimal .tooltip .tooltip-inner,
.status-page-theme-corporate .tooltip .tooltip-inner {
    background-color: #212529 !important;
    color: #fff !important;
}
