/* Estelia Status - Styles CSS */

:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --primary-light: rgba(99, 102, 241, 0.1);
    --success-color: #10b981;
    --success-light: rgba(16, 185, 129, 0.1);
    --warning-color: #f59e0b;
    --warning-light: rgba(245, 158, 11, 0.1);
    --danger-color: #ef4444;
    --danger-light: rgba(239, 68, 68, 0.1);
    --info-color: #3b82f6;
    --info-light: rgba(59, 130, 246, 0.1);
    --dark-color: #1f2937;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --bg-color: #f9fafb;
    --card-bg: #ffffff;
    --card-bg-hover: #ffffff;
    --text-color: #111827;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.2);
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s ease;
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    --gradient-warning: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    --gradient-danger: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
}

/* Mode sombre */
[data-theme="dark"] {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --card-bg-hover: #334155;
    --text-color: #f1f5f9;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --gray-50: #1e293b;
    --gray-100: #334155;
    --gray-200: #475569;
    --gray-300: #64748b;
    --gray-400: #94a3b8;
    --gray-500: #cbd5e1;
    --gray-600: #e2e8f0;
    --gray-700: #cbd5e1;
    --gray-800: #e2e8f0;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
    --glass-bg: rgba(30, 41, 59, 0.8);
    --glass-border: rgba(51, 65, 85, 0.5);
}

/* Mode sombre - Incidents */
[data-theme="dark"] .active-incidents-banner {
    background: linear-gradient(135deg, #422006 0%, #451a03 100%);
    border-color: #b45309;
    box-shadow: 0 4px 20px rgba(180, 83, 9, 0.3);
}

[data-theme="dark"] .banner-title h2 {
    color: #fbbf24;
}

[data-theme="dark"] .banner-title p {
    color: #fcd34d;
}

[data-theme="dark"] .banner-header {
    border-bottom-color: rgba(180, 83, 9, 0.4);
}

[data-theme="dark"] .incident-detail-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .incident-info h3 {
    color: var(--text-color);
}

[data-theme="dark"] .timeline-content {
    background: var(--gray-100);
}

[data-theme="dark"] .timeline-item.first .timeline-content {
    background: linear-gradient(135deg, #450a0a 0%, #7f1d1d 100%);
}

[data-theme="dark"] .timeline-item.current .timeline-content {
    background: linear-gradient(135deg, #2e1065 0%, #4c1d95 100%);
    border-color: #8b5cf6;
}

[data-theme="dark"] .timeline-dot {
    border-color: var(--card-bg);
}

[data-theme="dark"] .incident-footer {
    border-top-color: var(--border-color);
}

[data-theme="dark"] .incident-impact.minor {
    background: #1e3a5f;
    color: #60a5fa;
}

[data-theme="dark"] .incident-impact.major {
    background: #422006;
    color: #fbbf24;
}

[data-theme="dark"] .incident-impact.critical {
    background: #450a0a;
    color: #f87171;
}

[data-theme="dark"] .incident-status-badge.investigating {
    background: #450a0a;
    color: #fca5a5;
}

[data-theme="dark"] .incident-status-badge.identified {
    background: #422006;
    color: #fcd34d;
}

[data-theme="dark"] .incident-status-badge.monitoring {
    background: #1e3a5f;
    color: #93c5fd;
}

[data-theme="dark"] .incident-status-badge.resolved {
    background: #064e3b;
    color: #6ee7b7;
}

[data-theme="dark"] .timeline-message {
    color: var(--text-muted);
}

[data-theme="dark"] .maintenance-card {
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.5) 0%, rgba(49, 46, 129, 0.3) 100%);
    border-color: rgba(59, 130, 246, 0.4);
}

[data-theme="dark"] .maintenance-title {
    color: var(--text-color);
}

[data-theme="dark"] .maintenance-time {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}

/* Update status badges en dark mode */
[data-theme="dark"] .update-status-badge.investigating {
    background: #450a0a;
    color: #fca5a5;
}

[data-theme="dark"] .update-status-badge.identified {
    background: #422006;
    color: #fcd34d;
}

[data-theme="dark"] .update-status-badge.monitoring {
    background: #1e3a5f;
    color: #93c5fd;
}

[data-theme="dark"] .update-status-badge.resolved {
    background: #064e3b;
    color: #6ee7b7;
}

/* Timeline dots en dark mode */
[data-theme="dark"] .timeline-dot.detected {
    background: #ef4444;
    box-shadow: 0 0 0 2px #7f1d1d;
}

[data-theme="dark"] .timeline-dot.investigating {
    background: #f97316;
    box-shadow: 0 0 0 2px #7c2d12;
}

[data-theme="dark"] .timeline-dot.identified {
    background: #eab308;
    box-shadow: 0 0 0 2px #713f12;
}

[data-theme="dark"] .timeline-dot.monitoring {
    background: #3b82f6;
    box-shadow: 0 0 0 2px #1e3a5f;
}

[data-theme="dark"] .timeline-dot.resolved {
    background: #10b981;
    box-shadow: 0 0 0 2px #064e3b;
}

[data-theme="dark"] .timeline-dot.current {
    background: #8b5cf6;
    box-shadow: 0 0 0 2px #4c1d95;
}

@keyframes pulse-dot-dark {

    0%,
    100% {
        box-shadow: 0 0 0 2px #4c1d95, 0 0 0 4px transparent;
    }

    50% {
        box-shadow: 0 0 0 2px #4c1d95, 0 0 0 8px rgba(139, 92, 246, 0.3);
    }
}

[data-theme="dark"] .timeline-dot.current.pulse {
    animation: pulse-dot-dark 2s infinite;
}

/* Timeline labels et time en dark mode */
[data-theme="dark"] .timeline-time {
    color: var(--gray-300);
}

[data-theme="dark"] .timeline-label {
    color: var(--gray-400);
}

* {
    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;
    transition: background-color var(--transition-normal), color var(--transition-normal);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 5px;
    border: 2px solid var(--gray-100);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

[data-theme="dark"] ::-webkit-scrollbar-track {
    background: var(--gray-800);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: var(--gray-600);
    border-color: var(--gray-800);
}

/* Animation de mise à jour */
.updated {
    animation: highlight-update 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes highlight-update {
    0% {
        background-color: rgba(99, 102, 241, 0.4);
        transform: scale(1.08);
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
    }

    100% {
        background-color: transparent;
        transform: scale(1);
        box-shadow: none;
    }
}

/* Animation de nouveau contenu */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

.fade-in-up {
    animation: fadeInUp 0.5s ease;
}

/* Animation d'entrée pour les cartes */
.service-card {
    animation: fadeInUp 0.4s ease backwards;
}

.service-card:nth-child(1) {
    animation-delay: 0.05s;
}

.service-card:nth-child(2) {
    animation-delay: 0.1s;
}

.service-card:nth-child(3) {
    animation-delay: 0.15s;
}

.service-card:nth-child(4) {
    animation-delay: 0.2s;
}

.service-card:nth-child(5) {
    animation-delay: 0.25s;
}

.response-time,
.status-badge {
    transition: all var(--transition-normal);
}

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 */
.header {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background var(--transition-normal), box-shadow var(--transition-normal);
}

.header.scrolled {
    box-shadow: var(--shadow-lg);
}

/* Toggle mode sombre */
.theme-toggle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--gray-100);
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    background: var(--gray-200);
    transform: rotate(15deg);
}

.theme-toggle .fa-sun,
.theme-toggle .fa-moon {
    position: absolute;
    transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.theme-toggle .fa-sun {
    opacity: 1;
    transform: rotate(0deg);
}

.theme-toggle .fa-moon {
    opacity: 0;
    transform: rotate(-90deg);
}

[data-theme="dark"] .theme-toggle {
    background: var(--gray-700);
}

[data-theme="dark"] .theme-toggle:hover {
    background: var(--gray-600);
}

[data-theme="dark"] .theme-toggle .fa-sun {
    opacity: 0;
    transform: rotate(90deg);
}

[data-theme="dark"] .theme-toggle .fa-moon {
    opacity: 1;
    transform: rotate(0deg);
    color: #fbbf24;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.nav-links {
    display: flex;
    gap: 8px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    transition: all var(--transition-fast);
    padding: 8px 16px;
    border-radius: var(--radius);
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-color);
    background: var(--primary-light);
    text-decoration: none;
}

.nav-links a.active {
    color: var(--primary-color);
    background: var(--primary-light);
}

/* Menu mobile */
.mobile-menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    border: none;
    background: var(--gray-100);
    border-radius: var(--radius);
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.mobile-menu-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-color);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 80px 0 50px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, var(--primary-light) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, var(--success-light) 0%, transparent 50%);
    opacity: 0.6;
    animation: heroGradient 15s ease infinite;
    z-index: -1;
}

@keyframes heroGradient {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(2%, 2%) rotate(1deg);
    }

    66% {
        transform: translate(-2%, 1%) rotate(-1deg);
    }
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--card-bg);
    padding: 18px 36px;
    border-radius: 60px;
    box-shadow: var(--shadow-xl);
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.status-indicator:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.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-xl);
    padding: 0;
    display: flex;
    flex-direction: column;
    transition: all var(--transition-normal);
    overflow: hidden;
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-success);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.service-card.has-incident::before {
    background: var(--gradient-danger);
    opacity: 1;
}

.service-card.has-maintenance::before {
    background: linear-gradient(90deg, var(--info-color), var(--primary-color));
    opacity: 1;
}

.service-card .service-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    width: 100%;
}

.service-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
    border-color: var(--primary-color);
}

.service-card:hover::before {
    opacity: 1;
}

/* Skeleton loading */
.service-card.loading .service-name,
.service-card.loading .service-url,
.service-card.loading .status-badge {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    color: transparent;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Service avec incident */
.service-card.has-incident {
    border-color: rgba(249, 115, 22, 0.5);
    border-left: 4px solid #f97316;
}

.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: #c2410c;
    font-weight: 500;
}

.service-incident-banner i {
    color: #f97316;
    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: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
    transition: transform var(--transition-fast);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.service-url {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.service-status {
    display: flex;
    align-items: center;
    gap: 20px;
}

.uptime-bars {
    display: flex;
    gap: 3px;
    height: 32px;
    align-items: flex-end;
    padding: 4px;
    background: var(--gray-100);
    border-radius: var(--radius);
}

.uptime-bar {
    width: 5px;
    border-radius: 3px;
    transition: all var(--transition-fast);
    cursor: pointer;
    position: relative;
}

.uptime-bar:hover {
    transform: scaleY(1.3);
    filter: brightness(1.1);
}

.uptime-bar.up {
    background: var(--gradient-success);
}

.uptime-bar.down {
    background: var(--gradient-danger);
}

.uptime-bar.degraded {
    background: var(--gradient-warning);
}

.uptime-bar.unknown {
    background: var(--gray-300);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.status-badge::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    left: 12px;
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.status-badge.operational {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(52, 211, 153, 0.1));
    color: var(--success-color);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
    padding-left: 24px;
}

.status-badge.operational::before {
    background: var(--success-color);
}

.status-badge.degraded {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(251, 191, 36, 0.1));
    color: var(--warning-color);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
    padding-left: 24px;
}

.status-badge.degraded::before {
    background: var(--warning-color);
}

.status-badge.partial_outage {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(251, 191, 36, 0.1));
    color: var(--warning-color);
    padding-left: 24px;
}

.status-badge.partial_outage::before {
    background: var(--warning-color);
}

.status-badge.major_outage {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(248, 113, 113, 0.1));
    color: var(--danger-color);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
    padding-left: 24px;
    animation: dangerGlow 2s infinite;
}

@keyframes dangerGlow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
    }

    50% {
        box-shadow: 0 0 30px rgba(239, 68, 68, 0.5);
    }
}

.status-badge.major_outage::before {
    background: var(--danger-color);
}

.status-badge.maintenance {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(96, 165, 250, 0.1));
    color: var(--info-color);
    padding-left: 24px;
}

.status-badge.maintenance::before {
    background: var(--info-color);
}

.status-badge.incident {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(251, 146, 60, 0.1));
    color: #f97316;
    padding-left: 24px;
}

.status-badge.incident::before {
    background: #f97316;
}

.status-badge.unknown {
    background: var(--gray-100);
    color: var(--gray-500);
    padding-left: 24px;
}

.status-badge.unknown::before {
    background: var(--gray-400);
}

.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: var(--text-muted);
    margin-bottom: 16px;
}

.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: var(--gray-600);
    margin-bottom: 12px;
    line-height: 1.6;
}

.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: 50px 0;
    margin-top: 80px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-text {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-text i {
    color: var(--primary-color);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
    text-decoration: none;
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--gray-200);
    transform: translateY(-1px);
}

.btn-success {
    background: var(--gradient-success);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
}

.btn-danger {
    background: var(--gradient-danger);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.35);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: var(--radius);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
}

/* 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, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.2);
}

.banner-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(245, 158, 11, 0.3);
}

.banner-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 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(245, 158, 11, 0.5);
    }

    50% {
        box-shadow: 0 0 0 15px rgba(245, 158, 11, 0);
    }
}

.banner-title h2 {
    font-size: 1.3rem;
    color: #92400e;
    margin-bottom: 4px;
}

.banner-title p {
    color: #a16207;
    font-size: 0.9rem;
}

/* Incident Detail Card */
.incident-detail-card {
    background: white;
    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(--gray-800);
    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(--gray-600);
}

.incident-impact.minor {
    background: #dbeafe;
    color: #1e40af;
}

.incident-impact.major {
    background: #fef3c7;
    color: #92400e;
}

.incident-impact.critical {
    background: #fee2e2;
    color: #991b1b;
}

.affected-services {
    color: var(--text-muted);
    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: #fee2e2;
    color: #991b1b;
}

.incident-status-badge.identified {
    background: #fef3c7;
    color: #92400e;
}

.incident-status-badge.monitoring {
    background: #dbeafe;
    color: #1e40af;
}

.incident-status-badge.resolved {
    background: #d1fae5;
    color: #065f46;
}

/* Timeline */
.incident-timeline {
    margin: 20px 0;
    padding-left: 20px;
    border-left: 3px solid var(--gray-200);
    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 white;
    box-shadow: 0 0 0 2px var(--gray-200);
}

.timeline-dot.detected {
    background: #ef4444;
    box-shadow: 0 0 0 2px #fecaca;
}

.timeline-dot.investigating {
    background: #ef4444;
    box-shadow: 0 0 0 2px #fecaca;
}

.timeline-dot.identified {
    background: #f59e0b;
    box-shadow: 0 0 0 2px #fde68a;
}

.timeline-dot.monitoring {
    background: #3b82f6;
    box-shadow: 0 0 0 2px #bfdbfe;
}

.timeline-dot.resolved {
    background: #10b981;
    box-shadow: 0 0 0 2px #a7f3d0;
}

.timeline-dot.current {
    background: #8b5cf6;
    box-shadow: 0 0 0 2px #ddd6fe;
}

.timeline-dot.current.pulse {
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        box-shadow: 0 0 0 2px #ddd6fe, 0 0 0 4px transparent;
    }

    50% {
        box-shadow: 0 0 0 2px #ddd6fe, 0 0 0 8px rgba(139, 92, 246, 0.2);
    }
}

.timeline-content {
    background: var(--gray-100);
    padding: 12px 16px;
    border-radius: var(--radius);
}

.timeline-time {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
    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(--gray-600);
}

.update-status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.update-status-badge.investigating {
    background: #fee2e2;
    color: #991b1b;
}

.update-status-badge.identified {
    background: #fef3c7;
    color: #92400e;
}

.update-status-badge.monitoring {
    background: #dbeafe;
    color: #1e40af;
}

.update-status-badge.resolved {
    background: #d1fae5;
    color: #065f46;
}

.timeline-message {
    margin-top: 8px;
    color: var(--gray-700);
    font-size: 0.9rem;
    line-height: 1.5;
}

.timeline-item.current .timeline-content {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    border: 1px dashed #8b5cf6;
}

.timeline-item.first .timeline-content {
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
}

/* Incident Footer */
.incident-footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
    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: 1024px) {
    .container {
        padding: 0 24px;
    }

    .hero h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-wrap: wrap;
        gap: 12px;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 4px;
        padding-top: 16px;
        border-top: 1px solid var(--border-color);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 12px 16px;
        text-align: center;
    }

    .service-card .service-content {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .service-status {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 12px;
    }

    .uptime-bars {
        flex: 1;
        min-width: 100%;
        order: 3;
    }

    .hero {
        padding: 60px 0 40px;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .status-indicator {
        padding: 14px 24px;
        font-size: 0.9rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .active-incidents-banner {
        padding: 16px;
    }

    .banner-header {
        flex-direction: column;
        text-align: center;
    }

    .incident-detail-header {
        flex-direction: column;
        gap: 12px;
    }

    .incident-timeline {
        padding-left: 16px;
    }

    .timeline-dot {
        left: -28px;
        width: 12px;
        height: 12px;
    }

    .section-title {
        font-size: 1.15rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .status-indicator {
        padding: 12px 20px;
        gap: 8px;
    }

    .service-card .service-content {
        padding: 16px;
    }

    .service-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .service-name {
        font-size: 1rem;
    }

    .btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
}

/* Préférence de mouvement réduit */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {

    .header,
    .footer,
    .theme-toggle,
    .uptime-bars {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .service-card {
        break-inside: avoid;
        border: 1px solid #ccc;
    }
}

/* ===== NOUVELLES FONCTIONNALITÉS ===== */

/* Statistiques rapides */
.quick-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.quick-stat {
    text-align: center;
    padding: 16px 24px;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.quick-stat:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.quick-stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

.quick-stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 4px;
}

/* Tooltip personnalisé */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    padding: 8px 12px;
    background: var(--gray-800);
    color: white;
    font-size: 0.8rem;
    white-space: nowrap;
    border-radius: var(--radius);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
    z-index: 1000;
}

[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

/* Progress bar pour uptime */
.uptime-progress {
    width: 100%;
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 8px;
}

.uptime-progress-bar {
    height: 100%;
    background: var(--gradient-success);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.uptime-progress-bar.warning {
    background: var(--gradient-warning);
}

.uptime-progress-bar.danger {
    background: var(--gradient-danger);
}

/* Badge compteur notifications */
.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    background: var(--danger-color);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--card-bg);
    animation: badgePop 0.3s ease;
}

@keyframes badgePop {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius);
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeleton-text {
    height: 1em;
    margin-bottom: 0.5em;
}

.skeleton-text.short {
    width: 60%;
}

/* Toast notifications */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.3s ease;
    max-width: 350px;
}

.toast.success {
    border-left: 4px solid var(--success-color);
}

.toast.error {
    border-left: 4px solid var(--danger-color);
}

.toast.warning {
    border-left: 4px solid var(--warning-color);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Focus visible pour accessibilité */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip link pour accessibilité */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    z-index: 10000;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 0;
}

/* Loader/Spinner */
.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner.large {
    width: 48px;
    height: 48px;
    border-width: 4px;
}

/* Empty state amélioré */
.empty-state {
    text-align: center;
    padding: 80px 24px;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.4;
}

.empty-state-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.empty-state-description {
    max-width: 400px;
    margin: 0 auto;
}

/* Tags/Pills */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    background: var(--gray-100);
    color: var(--gray-700);
}

.tag.primary {
    background: var(--primary-light);
    color: var(--primary-color);
}

.tag.success {
    background: var(--success-light);
    color: var(--success-color);
}

.tag.warning {
    background: var(--warning-light);
    color: var(--warning-color);
}

.tag.danger {
    background: var(--danger-light);
    color: var(--danger-color);
}