/* ==========================================
   Status Page Styles
   ========================================== */

/* Hero Section */
.status-hero {
    padding: 30px 20px;
    background-image: url('/assets/images/status-monitoring-visual_0_2025-11-13_19-28-38.webp'), linear-gradient(135deg, #0f0a1e 0%, #1a0a2e 100%);
    background-size: cover;
    background-position: 0 -140px;
    background-repeat: no-repeat;
    background-attachment: fixed;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 80px;
    position: relative;
    overflow: hidden;
    min-height: 280px;
    display: flex;
    align-items: center;
}

/* Black tint overlay for status hero */
.status-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    pointer-events: none;
    z-index: 0;
}

.status-hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.status-hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: var(--weight-light);
    color: #ffffff;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    line-height: 1.15;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    padding: 0 var(--space-4);
}

@media (max-width: 768px) {
    .status-hero-title {
        font-size: 2rem;
    }
}

.status-hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* Status Sections */
.status-section {
    padding: 60px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background-color: #0a0511;
}

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

.section-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 40px;
    letter-spacing: -0.01em;
}

/* Overall Status Card */
.overall-status-section {
    padding-top: 80px;
}

.status-card {
    background: linear-gradient(135deg, rgba(30, 20, 50, 0.8) 0%, rgba(20, 40, 70, 0.7) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 32px;
    backdrop-filter: blur(10px);
}

.status-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.status-card-header h2 {
    font-size: 1.5rem;
    color: #ffffff;
    margin: 0;
}

.last-updated {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 16px;
}

.status-dot {
    display: flex;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-indicator.operational .status-dot {
    background-color: #10b981;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
}

.status-indicator.degraded .status-dot {
    background-color: #f59e0b;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.5);
}

.status-indicator.down .status-dot {
    background-color: #ef4444;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.5);
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.status-text {
    margin: 0;
}

.status-label {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.status-uptime {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* System Health Row Layout */
.system-health-row {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    width: 100%;
}

.health-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.health-item .last-updated {
    white-space: nowrap;
}

.health-item .status-indicator {
    gap: 12px;
}

.health-item .status-uptime {
    white-space: nowrap;
}

/* Health History Section */
.health-history-section {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.health-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.health-history-header h3 {
    font-size: 1.25rem;
    color: #ffffff;
    margin: 0;
    font-weight: 600;
}

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

.service-card {
    background: linear-gradient(135deg, rgba(30, 20, 50, 0.75) 0%, rgba(20, 40, 70, 0.65) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 24px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.service-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, rgba(40, 25, 65, 0.85) 0%, rgba(25, 50, 85, 0.75) 100%);
    transform: translateY(-2px);
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.service-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.service-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.service-status-badge.operational {
    background-color: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.service-status-badge.degraded {
    background-color: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.service-status-badge.down {
    background-color: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.service-description {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 16px 0;
    line-height: 1.5;
}

.service-metrics {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.metric-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.75);
}

.metric-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
}

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

.metric-card {
    background: linear-gradient(135deg, rgba(30, 20, 50, 0.75) 0%, rgba(20, 40, 70, 0.65) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 28px 24px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.metric-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, rgba(40, 25, 65, 0.85) 0%, rgba(25, 50, 85, 0.75) 100%);
    transform: translateY(-2px);
}

.metric-card-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.75);
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.metric-card-value {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px 0;
    letter-spacing: -0.02em;
}

.metric-card-trend {
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0;
}

.metric-card-trend.stable {
    color: rgba(255, 255, 255, 0.7);
}

.metric-card-trend.improving {
    color: #10b981;
}

.metric-card-trend.declining {
    color: #f59e0b;
}

/* Incidents Section */
.incidents-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.incident-card {
    background: linear-gradient(135deg, rgba(30, 20, 50, 0.75) 0%, rgba(20, 40, 70, 0.65) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 4px solid;
    border-radius: 10px;
    padding: 24px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.incident-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, rgba(40, 25, 65, 0.85) 0%, rgba(25, 50, 85, 0.75) 100%);
}

.incident-card.critical {
    border-left-color: #ef4444;
}

.incident-card.major {
    border-left-color: #f97316;
}

.incident-card.minor {
    border-left-color: #f59e0b;
}

.incident-card.maintenance {
    border-left-color: #3b82f6;
}

.incident-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.incident-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.incident-date {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.65);
    margin: 6px 0 0 0;
}

.incident-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.incident-status-badge.resolved {
    background-color: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.incident-status-badge.investigating {
    background-color: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.incident-body {
    margin-top: 12px;
}

.incident-details {
    display: flex;
    gap: 24px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.detail-item {
    display: flex;
    gap: 8px;
    align-items: center;
}

.detail-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.75);
}

.detail-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
}

.detail-value.critical {
    color: #ef4444;
}

.detail-value.major {
    color: #f97316;
}

.detail-value.minor {
    color: #f59e0b;
}

.detail-value.maintenance {
    color: #3b82f6;
}

.incident-resolution {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.5;
}

.no-incidents {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
}

/* Notifications Section */
.notifications-section {
    padding: 60px 20px 80px;
}

.notifications-card {
    background: linear-gradient(135deg, rgba(30, 20, 50, 0.8) 0%, rgba(20, 40, 70, 0.7) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.notifications-card h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 12px 0;
}

.notifications-card p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.65);
    margin: 0 0 28px 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Form Styles */
.notification-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.form-input {
    flex: 1;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 0 3px rgba(102, 51, 153, 0.1);
}

.form-note {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* Health Graph Section */
.health-graph-section {
    padding-top: 40px;
    padding-bottom: 40px;
}

.health-graph-card {
    display: flex;
    flex-direction: column;
}

.health-graph-container {
    width: 100%;
    margin: 16px 0 20px 0;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.health-graph {
    width: 100%;
    height: auto;
    max-height: 80px;
    display: block;
}

.health-graph-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 16px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-color {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    flex-shrink: 0;
}

.legend-color.operational {
    background-color: #10b981;
}

.legend-color.degraded {
    background-color: #f59e0b;
}

.legend-color.partial {
    background-color: #f97316;
}

.legend-color.down {
    background-color: #ef4444;
}

.legend-label {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
}

.health-graph-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

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

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
}

/* Health graph rect styling */
.health-bar {
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.health-bar:hover {
    opacity: 0.85;
}

.health-bar-tooltip {
    display: none;
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.875rem;
    white-space: nowrap;
    pointer-events: none;
    z-index: 1000;
}

/* Responsive Design */
@media (max-width: 768px) {
    .status-hero-title {
        font-size: 2rem;
    }

    .status-hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 28px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .status-card,
    .notifications-card {
        padding: 24px 16px;
    }

    .service-card,
    .metric-card,
    .incident-card {
        padding: 20px 16px;
    }

    .incident-header {
        flex-direction: column;
    }

    .incident-status-badge {
        align-self: flex-start;
    }

    .form-group {
        flex-direction: column;
    }

    .metric-card-value {
        font-size: 1.75rem;
    }

    .status-section {
        padding: 40px 20px;
    }

    .notifications-section {
        padding: 40px 20px 60px;
    }

    .health-graph-legend {
        gap: 16px;
        margin-bottom: 24px;
    }

    .health-graph-stats {
        grid-template-columns: 1fr;
    }

    .legend-label {
        font-size: 0.8125rem;
    }

    .system-health-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .health-item {
        width: 100%;
    }

    .health-history-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .health-history-header h3 {
        margin-bottom: 8px;
    }
}

@media (max-width: 480px) {
    .status-hero {
        padding: 40px 16px;
        margin-top: 70px;
    }

    .status-hero-title {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.25rem;
        margin-bottom: 20px;
    }

    .service-card,
    .metric-card {
        padding: 16px;
    }

    .incident-details {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .detail-item {
        flex-direction: column;
        align-items: flex-start;
    }
}
