/* CORRECTED: Removed old hero styles, which are now handled by arh24-rdp.css */

/* Final styles for the Incident History header */
#incident-history .section-header {
    text-align: center; /* Center align the container */
    margin-bottom: 2rem;
}
#incident-history .section-header h2 {
    display: inline-block; /* Make the h2 only as wide as its content */
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--accent-primary);
}
/* END CORRECTION */

.title-highlight-blue {
    color: var(--accent-primary);
}


/* Overall Status Box */
.arh24-overall-status-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem 2.5rem;
    border-radius: var(--border-radius-xl);
    border-width: 1px;
    border-style: solid;
    box-shadow: var(--shadow-md);
    text-align: center;
}
.arh24-overall-status-box .status-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}
.arh24-overall-status-box .status-text-content {
    text-align: center;
}
.arh24-overall-status-box .status-title {
    font-size: var(--h4-font-size);
    font-weight: 700;
    display: block;
    line-height: 1.2;
}
.arh24-overall-status-box .status-subtitle {
    font-size: var(--font-size-base);
    display: block;
}

/* Status Color Schemes */
.arh24-overall-status-box.operational { background-color: var(--accent-primary-soft); color: var(--accent-primary-hover); border-color: var(--accent-primary); }
.arh24-overall-status-box.operational .status-icon { color: var(--accent-primary); }
.arh24-overall-status-box.degraded { background-color: #fefce8; color: #854d0e; border-color: #fde047; }
.arh24-overall-status-box.degraded .status-icon { color: #eab308; }
.arh24-overall-status-box.maintenance { background-color: #fff7ed; color: #9a3412; border-color: #fdba74; }
.arh24-overall-status-box.maintenance .status-icon { color: #f97316; }
.arh24-overall-status-box.outage { background-color: #fee2e2; color: #991b1b; border-color: #fca5a5; }
.arh24-overall-status-box.outage .status-icon { color: #ef4444; }


/* Service List */
.arh24-service-category {
    margin-bottom: 2.5rem;
}
.arh24-service-category:last-child {
    margin-bottom: 0;
}
.arh24-service-category-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--accent-primary);
    display: inline-block;
}
.arh24-service-list {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color-light);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--accent-primary);
    transition: all 0.2s ease-in-out;
}

.arh24-service-list:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--accent-primary-hover);
}

.arh24-service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}
.arh24-service-item:not(:last-child) {
    border-bottom: 1px solid var(--border-color-light);
}
.arh24-service-name {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}
.arh24-status-indicator {
    font-size: 1.1rem;
}
.arh24-status-indicator.operational { color: var(--accent-primary); } 
.arh24-status-indicator.degraded { color: #f59e0b; }
.arh24-status-indicator.maintenance { color: #f97316; }
.arh24-status-indicator.outage { color: #ef4444; }

.arh24-status-badge {
    font-size: var(--font-size-xs);
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.arh24-status-badge.operational { background-color: var(--accent-primary-soft); color: var(--accent-primary-hover); }
.arh24-status-badge.degraded { background-color: #fef9c3; color: #854d0e; }
.arh24-status-badge.maintenance { background-color: #ffedd5; color: #9a3412; }
.arh24-status-badge.outage { background-color: #fee2e2; color: #991b1b; }

.arh24-service-details {
    flex-basis: 100%;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    background-color: #f8f9fc;
    padding: 0.75rem 1rem;
    margin-top: 0.75rem;
    border-radius: var(--border-radius-sm);
    border-left: 3px solid var(--border-color);
}

/* Incident History */
.arh24-no-incidents-message {
    text-align: center;
    padding: 3rem 1.5rem;
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    border: 1px dashed var(--border-color);
    border-left: 4px solid var(--accent-primary);
}
.arh24-no-incidents-message i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent-primary);
}
.arh24-no-incidents-message h4 {
    font-size: var(--font-size-lg);
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}
.arh24-no-incidents-message p {
    color: var(--text-muted);
    margin: 0;
}

.arh24-incident-card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius-lg);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color-light);
    border-left-width: 4px;
    transition: all 0.2s ease-in-out;
}
.arh24-incident-card.resolved-incident,
.arh24-incident-card.monitoring-incident,
.arh24-incident-card.investigating-incident,
.arh24-incident-card.identified-incident {
    border-left-color: var(--accent-primary);
}
.arh24-incident-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-left-color: var(--accent-primary-hover);
}

.arh24-incident-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color-light);
}
.arh24-incident-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}
.arh24-incident-body {
    padding: 0.5rem 0;
}
.arh24-incident-update {
    padding: 1rem 1.5rem;
}
.arh24-incident-update:not(:last-child) {
    border-bottom: 1px dashed var(--border-color-light);
}
.arh24-incident-update p {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    margin: 0 0 0.25rem 0;
    line-height: 1.6;
}
.arh24-incident-update strong {
    color: var(--text-primary);
}
.arh24-incident-update .update-timestamp {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    display: block;
}

/* Responsive */
@media (max-width: 600px) {
    .arh24-overall-status-box {
        padding: 1.5rem;
    }
}