/* Estelia Status - Styles CSS (Adapted for EXOO CLOUD) */

:root {
    --primary-color: #00d4ff;
    --primary-glow: rgba(0, 212, 255, 0.3);
    --primary-hover: #00b8e6;
    --success-color: #00ff7f;
    --warning-color: #ffa600;
    --danger-color: #ff4d4d;
    --info-color: #00d4ff;
    --dark-color: #0b0e14;
    --gray-50: #1c222d;
    --gray-100: #151921;
    --gray-200: #202633;
    --gray-300: #2a3244;
    --gray-400: #a0a7b1;
    --gray-500: #7f8b9e;
    --gray-600: #a0a7b1;
    --gray-700: #d1d5db;
    --gray-800: #ffffff;
    --gray-900: #ffffff;
    --bg-color: #0b0e14;
    --card-bg: #151921;
    --text-color: #ffffff;
    --text-muted: #a0a7b1;
    --border-color: #202633;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 15px 35px rgba(0, 0, 0, 0.5);
    --radius: 12px;
    --radius-lg: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Animation de mise à jour */
.updated {
    animation: highlight-update 1s ease-out;
}

@keyframes highlight-update {
    0% {
        background-color: rgba(99, 102, 241, 0.3);
        transform: scale(1.05);
    }

    100% {
        background-color: transparent;
        transform: scale(1);
    }
}

.response-time,
.status-badge {
    transition: all 0.3s ease;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header styles removed to avoid conflicts with main site header and footer includes */

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 0 40px;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--card-bg);
    padding: 16px 32px;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 20px;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-dot.operational {
    background: var(--success-color);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

.status-dot.degraded {
    background: var(--warning-color);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2);
}

.status-dot.outage {
    background: var(--danger-color);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.2);
}

.status-dot.maintenance {
    background: var(--info-color);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.status-dot.incident {
    background: #f97316;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.2);
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.status-text {
    font-size: 1.1rem;
    font-weight: 600;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Services Grid */
.services-section {
    padding: 40px 0;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--gray-700);
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 0;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, transform 0.2s;
    overflow: hidden;
}

.service-card .service-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    width: 100%;
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* Service avec incident */
.service-card.has-incident {
    border-color: rgba(255, 166, 0, 0.5);
    border-left: 4px solid var(--warning-color);
}

.service-incident-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1) 0%, rgba(239, 68, 68, 0.1) 100%);
    border-bottom: 1px solid rgba(249, 115, 22, 0.2);
    font-size: 0.85rem;
    color: var(--warning-color);
    font-weight: 500;
}

.service-incident-banner i {
    color: var(--warning-color);
    animation: pulse-icon 2s infinite;
}

.service-incident-banner span:first-of-type {
    flex: 1;
}

.incident-impact-badge {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.incident-impact-badge.minor {
    background: rgba(245, 158, 11, 0.15);
    color: #b45309;
}

.incident-impact-badge.major {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

.incident-impact-badge.critical {
    background: rgba(220, 38, 38, 0.2);
    color: #b91c1c;
    animation: pulse-badge 1.5s infinite;
}

.incident-impact-badge.none {
    background: rgba(107, 114, 128, 0.15);
    color: #4b5563;
}

/* Service avec maintenance */
.service-card.has-maintenance {
    border-color: rgba(59, 130, 246, 0.5);
    border-left: 4px solid var(--info-color);
}

.service-card.has-incident.has-maintenance {
    border-left: 4px solid #f97316;
}

.service-maintenance-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    font-size: 0.85rem;
    color: #1e40af;
    font-weight: 500;
}

.service-maintenance-banner i {
    color: var(--info-color);
}

.service-maintenance-banner span:first-of-type {
    flex: 1;
}

.maintenance-status-badge {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.maintenance-status-badge.scheduled {
    background: rgba(59, 130, 246, 0.15);
    color: #1e40af;
}

.maintenance-status-badge.in_progress {
    background: rgba(245, 158, 11, 0.15);
    color: #b45309;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-icon {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

.service-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.service-icon {
    width: 45px;
    height: 45px;
    background: var(--gray-100);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.service-name {
    font-weight: 600;
    font-size: 1.05rem;
}

.service-url {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.service-status {
    display: flex;
    align-items: center;
    gap: 20px;
}

.uptime-bars {
    display: flex;
    gap: 2px;
    height: 30px;
    align-items: flex-end;
}

.uptime-bar {
    width: 4px;
    border-radius: 2px;
    transition: height 0.3s;
}

.uptime-bar.up {
    background: var(--success-color);
}

.uptime-bar.down {
    background: var(--danger-color);
}

.uptime-bar.degraded {
    background: var(--warning-color);
}

.uptime-bar.unknown {
    background: var(--gray-300);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-badge.operational {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.status-badge.degraded {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.status-badge.partial_outage {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.status-badge.major_outage {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.status-badge.maintenance {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info-color);
}

.status-badge.incident {
    background: rgba(249, 115, 22, 0.1);
    color: var(--danger-color);
}

.status-badge.unknown {
    background: var(--gray-200);
    color: var(--gray-700);
}

.last-check {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--gray-100);
    padding: 4px 8px;
    border-radius: 4px;
    min-width: 50px;
    text-align: center;
}

.response-time {
    font-size: 0.9rem;
    color: var(--text-muted);
    min-width: 60px;
    text-align: right;
}

/* Incidents Section */
.incidents-section {
    padding: 40px 0;
}

.incident-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 16px;
}

.incident-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.incident-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.incident-impact {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.incident-impact.minor {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.incident-impact.major {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.incident-impact.critical {
    background: rgba(239, 68, 68, 0.2);
    color: #dc2626;
}

.incident-description {
    color: #d1d5db; /* Softer light gray for clean readability */
    margin-bottom: 16px;
    font-size: 0.98rem;
    line-height: 1.6;
}

.incident-updates {
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.incident-update {
    display: flex;
    gap: 12px;
    padding: 10px 0;
}

.update-status {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: capitalize;
    min-width: 100px;
}

.update-status.investigating {
    color: var(--danger-color);
}

.update-status.identified {
    color: var(--warning-color);
}

.update-status.monitoring {
    color: var(--info-color);
}

.update-status.resolved {
    color: var(--success-color);
}

.update-message {
    flex: 1;
    color: var(--gray-600);
}

.update-time {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Maintenance Section - Amélioré */
.maintenance-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(99, 102, 241, 0.08) 100%);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-left: 4px solid var(--info-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.maintenance-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, transparent 50%, rgba(59, 130, 246, 0.05) 50%);
    pointer-events: none;
}

.maintenance-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
}

.maintenance-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.maintenance-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--info-color) 0%, var(--primary-color) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.maintenance-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--gray-800);
    flex: 1;
}

.maintenance-time {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-bottom: 12px;
    background: rgba(59, 130, 246, 0.1);
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 500;
}

.maintenance-time i {
    color: var(--info-color);
}

.maintenance-card .incident-description {
    color: #d1d5db; /* Softer light gray for clean readability */
    margin-bottom: 12px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.maintenance-card p strong {
    color: var(--gray-700);
}

/* Status badge pour maintenance */
.maintenance-card .status-badge {
    margin-left: auto;
}

.maintenance-card .status-badge.scheduled {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.maintenance-card .status-badge.in_progress {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 1px solid rgba(245, 158, 11, 0.3);
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* Footer */
.footer {
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-text {
    color: var(--text-muted);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    text-decoration: none;
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
}

.btn-secondary:hover {
    background: var(--gray-200);
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--gray-700);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Cards */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.card-header {
    background: var(--gray-50);
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

.card-body {
    padding: 24px;
}

/* Alerts */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #047857;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #dc2626;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: #d97706;
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #2563eb;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table tbody tr:hover {
    background: var(--gray-50);
}

/* Uptime Chart */
.uptime-chart {
    display: flex;
    gap: 2px;
    margin: 20px 0;
}

.uptime-day {
    flex: 1;
    height: 35px;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s;
}

.uptime-day:hover {
    transform: scaleY(1.1);
}

.uptime-day.up {
    background: var(--success-color);
}

.uptime-day.down {
    background: var(--danger-color);
}

.uptime-day.partial {
    background: var(--warning-color);
}

.uptime-day.unknown {
    background: var(--gray-200);
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.stat-icon.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.stat-icon.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.stat-icon.danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.stat-icon.info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info-color);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-800);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* No Data */
.no-data {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.no-data-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* ===== INCIDENTS ACTIFS - BANNER ===== */
.active-incidents-banner {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(245, 158, 11, 0.08) 100%);
    border: 2px solid var(--danger-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.15);
}

.banner-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.banner-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--danger-color) 0%, var(--warning-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.banner-icon.pulse {
    animation: pulse-warning 2s infinite;
}

@keyframes pulse-warning {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
    }

    50% {
        box-shadow: 0 0 0 15px rgba(239, 68, 68, 0);
    }
}

.banner-title h2 {
    font-size: 1.3rem;
    color: var(--danger-color);
    margin-bottom: 4px;
}

.banner-title p {
    color: #d1d5db; /* High contrast light gray */
    font-size: 0.95rem;
}

/* Incident Detail Card */
.incident-detail-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 16px;
    box-shadow: var(--shadow);
}

.incident-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.incident-info h3 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 8px;
}

.incident-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.incident-impact {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.incident-impact.none {
    background: var(--gray-200);
    color: var(--text-muted);
}

.incident-impact.minor {
    background: rgba(0, 212, 255, 0.15);
    color: var(--primary-color);
}

.incident-impact.major {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning-color);
}

.incident-impact.critical {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger-color);
}

.affected-services {
    color: #d1d5db; /* High contrast light gray */
    font-size: 0.85rem;
}

.incident-status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.incident-status-badge.investigating {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger-color);
}

.incident-status-badge.identified {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning-color);
}

.incident-status-badge.monitoring {
    background: rgba(0, 212, 255, 0.2);
    color: var(--primary-color);
}

.incident-status-badge.resolved {
    background: rgba(0, 255, 127, 0.2);
    color: var(--success-color);
}

/* Timeline */
.incident-timeline {
    margin: 20px 0;
    padding-left: 20px;
    border-left: 3px solid var(--border-color);
    position: relative;
}

.timeline-item {
    position: relative;
    padding: 12px 0 12px 24px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -32px;
    top: 16px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--gray-300);
    border: 3px solid var(--card-bg);
    box-shadow: 0 0 0 2px var(--border-color);
}

.timeline-dot.detected {
    background: var(--danger-color);
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.4);
}

.timeline-dot.investigating {
    background: var(--danger-color);
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.4);
}

.timeline-dot.identified {
    background: var(--warning-color);
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.4);
}

.timeline-dot.monitoring {
    background: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.4);
}

.timeline-dot.resolved {
    background: var(--success-color);
    box-shadow: 0 0 0 2px rgba(0, 255, 127, 0.4);
}

.timeline-dot.current {
    background: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.4);
}

.timeline-dot.current.pulse {
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%,
    100% {
        box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.4), 0 0 0 4px transparent;
    }

    50% {
        box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.4), 0 0 0 8px rgba(0, 212, 255, 0.2);
    }
}

.timeline-content {
    background: var(--gray-50);
    padding: 12px 16px;
    border-radius: var(--radius);
}

.timeline-time {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.timeline-time i {
    color: var(--text-muted);
}

.timeline-date {
    font-weight: 400;
    color: var(--text-muted);
    margin-left: 4px;
}

.timeline-label {
    font-size: 0.9rem;
    color: var(--text-color);
}

.update-status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.update-status-badge.investigating {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger-color);
}

.update-status-badge.identified {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning-color);
}

.update-status-badge.monitoring {
    background: rgba(0, 212, 255, 0.2);
    color: var(--primary-color);
}

.update-status-badge.resolved {
    background: rgba(0, 255, 127, 0.2);
    color: var(--success-color);
}

.timeline-message {
    margin-top: 8px;
    color: #e5e7eb; /* High contrast light gray for better readability */
    font-size: 0.92rem;
    line-height: 1.6;
}

.timeline-item.current .timeline-content {
    background: rgba(0, 212, 255, 0.05);
    border: 1px dashed var(--primary-color);
}

.timeline-item.first .timeline-content {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Incident Footer */
.incident-footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.duration {
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Responsive */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 16px;
    }

    .service-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .service-status {
        width: 100%;
        justify-content: space-between;
    }

    .uptime-bars {
        display: none;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .active-incidents-banner {
        padding: 16px;
    }

    .banner-header {
        flex-direction: column;
        text-align: center;
    }

    .incident-detail-header {
        flex-direction: column;
    }


    .incident-timeline {
        padding-left: 16px;
    }

    .timeline-dot {
        left: -28px;
        width: 12px;
        height: 12px;
    }
}

/* ==========================================================================
   EXOO CLOUD DARK MODE OVERRIDES & CORRECTIONS
   ========================================================================== */

/* Layout & Background adjustments */
body {
    background-color: var(--bg-color) !important;
    color: var(--text-color) !important;
}

/* Premium Glassmorphic Cards & Layouts */
.service-card,
.incident-card,
.maintenance-card,
.no-data,
.card {
    background: rgba(21, 25, 33, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 20px !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: relative !important;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                border-color 0.4s ease,
                box-shadow 0.4s ease !important;
}

.service-card:hover,
.incident-card:hover,
.maintenance-card:hover,
.card:hover {
    transform: translateY(-5px) !important;
    border-color: rgba(0, 212, 255, 0.3) !important;
    box-shadow: 0 15px 35px rgba(0, 212, 255, 0.1), 0 10px 25px rgba(0, 0, 0, 0.4) !important;
}

/* Status Indicator Hero Section */
.status-indicator {
    background: rgba(21, 25, 33, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3) !important;
}

.status-indicator .status-text {
    color: #ffffff !important;
    font-weight: 700;
}

/* Service Info items */
.service-icon {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 12px !important;
}

.service-name {
    color: #ffffff !important;
}

.last-check {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: var(--text-muted) !important;
}

/* Uptime bars adjustments */
.uptime-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px !important;
}

.uptime-bar {
    border-radius: 4px !important;
    transition: background 0.3s ease !important;
    width: 6px !important;
}

.uptime-bar.up {
    background: rgba(0, 255, 127, 0.85) !important;
}
.uptime-bar.degraded {
    background: rgba(255, 166, 0, 0.85) !important;
}
.uptime-bar.down {
    background: rgba(255, 77, 77, 0.85) !important;
}
.uptime-bar.unknown {
    background: rgba(255, 255, 255, 0.1) !important;
}

/* Timeline elements updates */
.incident-timeline {
    border-left: 2px dashed rgba(255, 255, 255, 0.08) !important;
}

.timeline-dot {
    width: 16px !important;
    height: 16px !important;
    left: -33px !important;
    top: 15px !important;
    border: 3px solid #151921 !important;
    box-shadow: 0 0 0 2px var(--border-color) !important;
}

.timeline-dot.detected, .timeline-dot.investigating {
    background: var(--danger-color) !important;
    box-shadow: 0 0 10px rgba(255, 77, 77, 0.6) !important;
}
.timeline-dot.identified {
    background: var(--warning-color) !important;
    box-shadow: 0 0 10px rgba(255, 166, 0, 0.6) !important;
}
.timeline-dot.monitoring {
    background: var(--info-color) !important;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.6) !important;
}
.timeline-dot.resolved {
    background: var(--success-color) !important;
    box-shadow: 0 0 10px rgba(0, 255, 127, 0.6) !important;
}
.timeline-dot.current {
    background: var(--primary-color) !important;
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.6) !important;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
    color: #ffffff !important;
}

.timeline-time {
    color: var(--text-muted) !important; /* Softer muted gray for metadata */
}

.timeline-label {
    color: #e2e8f0 !important; /* Softer white for labels */
}

.timeline-message {
    color: #d1d5db !important; /* Softer light gray for timeline messages */
}

/* Badges corrections */
.incident-status-badge.investigating,
.update-status-badge.investigating {
    background: rgba(239, 68, 68, 0.15) !important;
    color: var(--danger-color) !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
}

.incident-status-badge.identified,
.update-status-badge.identified {
    background: rgba(255, 166, 0, 0.15) !important;
    color: var(--warning-color) !important;
    border: 1px solid rgba(255, 166, 0, 0.3) !important;
}

.incident-status-badge.monitoring,
.update-status-badge.monitoring {
    background: rgba(0, 212, 255, 0.15) !important;
    color: var(--primary-color) !important;
    border: 1px solid rgba(0, 212, 255, 0.3) !important;
}

.incident-status-badge.resolved,
.update-status-badge.resolved {
    background: rgba(0, 255, 127, 0.15) !important;
    color: var(--success-color) !important;
    border: 1px solid rgba(0, 255, 127, 0.3) !important;
}

.maintenance-card .status-badge.scheduled {
    background: rgba(0, 212, 255, 0.15) !important;
    color: var(--info-color) !important;
    border: 1px solid rgba(0, 212, 255, 0.3) !important;
}

.maintenance-card .status-badge.in_progress {
    background: rgba(255, 166, 0, 0.15) !important;
    color: var(--warning-color) !important;
    border: 1px solid rgba(255, 166, 0, 0.3) !important;
}

.maintenance-time {
    color: var(--gray-300) !important;
    background: rgba(0, 212, 255, 0.08) !important;
    border: 1px solid rgba(0, 212, 255, 0.15) !important;
}

.maintenance-title {
    color: #ffffff !important;
    font-weight: 700 !important;
}

.maintenance-card .incident-description,
.maintenance-card p strong {
    color: var(--text-dim) !important;
}

/* Forms styling in dark theme */
.form-control {
    background-color: rgba(255, 255, 255, 0.02) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
}

.form-control::placeholder {
    color: #5d6778 !important;
}

.form-control:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.25) !important;
    background-color: rgba(255, 255, 255, 0.04) !important;
}

.form-label {
    color: #ffffff !important;
    font-weight: 600 !important;
}

/* Fix option labels for notifications & checkboxes */
.notification-option {
    color: #ffffff !important;
}

.notification-option small {
    color: var(--text-muted) !important;
}

.service-checkbox {
    accent-color: var(--primary-color) !important;
}

.services-list-container {
    background: rgba(0, 0, 0, 0.25) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.services-list-container label {
    background: rgba(255, 255, 255, 0.02) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.03) !important;
    border-radius: 10px !important;
    transition: all 0.2s ease !important;
}

.services-list-container label:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(0, 212, 255, 0.2) !important;
}

/* Generic alert fix */
.alert-success {
    background: rgba(16, 185, 129, 0.1) !important;
    color: #34d399 !important;
    border: 1px solid rgba(16, 185, 129, 0.2) !important;
}
.alert-danger {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #ff6b6b !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
}
.alert-warning {
    background: rgba(245, 158, 11, 0.1) !important;
    color: #f59e0b !important;
    border: 1px solid rgba(245, 158, 11, 0.2) !important;
}

/* Table styling fixes */
.table th {
    background: rgba(255, 255, 255, 0.02) !important;
    color: #ffffff !important;
    border-bottom: 1px solid var(--border-color) !important;
    font-weight: 700 !important;
}

.table td {
    color: var(--text-dim) !important;
    border-bottom: 1px solid var(--border-color) !important;
}

.table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03) !important;
}

.no-data {
    color: var(--text-dim) !important;
    padding: 50px !important;
    text-align: center !important;
}

.no-data-icon {
    font-size: 3rem !important;
    margin-bottom: 16px !important;
}

/* Color adjustments for service card banners and badges in dark mode */
.service-incident-banner {
    color: #ffa600 !important;
}
.incident-impact-badge.minor {
    color: #ffa600 !important;
}
.incident-impact-badge.major {
    color: #ff4d4d !important;
}
.incident-impact-badge.critical {
    color: #ff4d4d !important;
}
.incident-impact-badge.none {
    color: #a0a7b1 !important;
}
.service-maintenance-banner {
    color: #60a5fa !important;
}
.maintenance-status-badge.scheduled {
    color: #60a5fa !important;
}
.maintenance-status-badge.in_progress {
    color: #fbbf24 !important;
}

/* Uptime Day visual scaling */
.uptime-day {
    border-radius: 4px !important;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.2s ease !important;
}

.uptime-day:hover {
    transform: scale(1.2) !important;
    filter: brightness(1.25) !important;
    z-index: 10;
}

.uptime-day.up {
    background: rgba(0, 255, 127, 0.8) !important;
}
.uptime-day.partial {
    background: rgba(255, 166, 0, 0.8) !important;
}
.uptime-day.down {
    background: rgba(255, 77, 77, 0.8) !important;
}
.uptime-day.unknown {
    background: rgba(255, 255, 255, 0.08) !important;
}

/* Section headers unifications */
.section-title {
    font-size: 2rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin: 60px 0 35px !important;
    text-align: center !important;
    position: relative !important;
    border-left: none !important;
    padding-left: 0 !important;
    line-height: 1.2 !important;
}

.section-title span {
    -webkit-text-fill-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.3) !important;
}

.active-incidents-banner {
    background: rgba(239, 68, 68, 0.03) !important;
    border: 1px dashed rgba(239, 68, 68, 0.25) !important;
    border-radius: 20px !important;
}

.active-incidents-banner h2 {
    color: #ff4d4d !important;
    font-weight: 800 !important;
}

/* ==========================================================================
   PAGE HEADER (ACCORD PARFAIT AVEC LE RESTE DU SITE)
   ========================================================================== */
.page-header {
    padding: 180px 8% 55px;
    text-align: center;
    background: radial-gradient(circle at center, rgba(0, 212, 255, 0.08) 0%, transparent 70%);
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 900;
    margin-bottom: 12px;
    text-transform: uppercase;
    background: linear-gradient(to bottom, #fff 40%, var(--gray-400) 110%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(0, 212, 255, 0.18));
}

.page-header h1 span {
    -webkit-text-fill-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.3) !important;
}

.page-header p {
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* ==========================================================================
   CARD SHINE EFFECT
   ========================================================================== */
.card .card-shine {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.card .card-shine::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -150%;
    width: 50%;
    height: 200%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.08), transparent);
    transform: rotate(35deg);
    transition: left 0.7s ease;
}

.card:hover .card-shine::before {
    left: 150%;
}

/* ==========================================================================
   FORM & UI SEPARATORS
   ========================================================================== */
.form-sep {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 20px 0;
}

.card-inner {
    position: relative;
    padding: 28px;
    z-index: 2;
}

.card-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.card-title h2 {
    font-size: 1.2rem;
    font-weight: 900;
    color: #ffffff;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary-color);
    padding: 8px 14px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 800;
    border: 1px solid rgba(0, 212, 255, 0.18);
    white-space: nowrap;
}

.badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
    animation: pulse-dot-badge 2s infinite;
}

@keyframes pulse-dot-badge {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(1.2); }
}

/* Prevent underline on buttons and nav items */
.btn, .btn-primary, .btn-client, .nav-item, .sidebar-logo, .sidebar-nav a, .action-btn,
.legal-links a, .dropdown-content a, .drop-item, .drop-item *, .main-footer a {
    text-decoration: none !important;
}
.btn:hover, .btn-primary:hover, .btn-client:hover, .nav-item:hover, .sidebar-logo:hover, .sidebar-nav a:hover, .action-btn:hover,
.legal-links a:hover, .dropdown-content a:hover, .drop-item:hover, .drop-item *:hover, .main-footer a:hover {
    text-decoration: none !important;
}