/* Admin Dashboard Styles */
.admin-page {
    background-color: #f5f6f8;
    color: #1f2937;
    min-height: 100vh;
}

.admin-dashboard {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-bottom: 2rem;
}
.incident-form label{
    color:black;
}
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.admin-actions {
    display: flex;
    gap: 0.5rem;
}

.overall-status-panel {
    padding: 1.5rem;
    border-radius: 5px;
    color: white;
    margin-bottom: 1.5rem;
}

.overall-status-grid {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.overall-status-main {
    flex: 1 1 60%;
}

.overall-status-side {
    flex: 1 1 40%;
}

.affected-inline-card {
    background: rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(6px);
}

.affected-inline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.affected-count-badge {
    background: rgba(255, 255, 255, 0.25);
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.85rem;
}

.ignored-count-badge {
    background: rgba(255, 200, 150, 0.35);
    color: #fff7ed;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.ignored-count-badge:hover {
    color: #ffffff;
    text-decoration: underline;
}

.affected-inline-link {
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.35rem;
}

.affected-inline-link:hover {
    color: #ffe8cc;
    text-decoration: underline;
}

.affected-inline-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-height: 150px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.affected-inline-list li {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    padding: 0.6rem 0.75rem;
    min-height: 90px;
}

.affected-inline-empty {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    text-align: center;
    padding: 0.9rem 0.75rem;
    min-height: auto;
}

.affected-inline-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.affected-inline-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    opacity: 0.9;
}

.affected-inline-footer {
    margin-top: 0.6rem;
    font-size: 0.8rem;
    opacity: 0.85;
}

.overall-status-panel h2 {
    margin: 0;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.status-details { 
    gap: 2rem;
    margin-bottom: 1rem;
}

.status-metric {
    display: flex;
    flex-direction: column;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: bold;
}

.metric-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.last-updated {
    font-size: 0.9rem;
    opacity: 0.8;
}

.status-operational {
    background-color: #2ecc71;
}

.status-degraded {
    background-color: #f39c12;
}

.status-partial-outage {
    background-color: #e67e22;
}

.status-major-outage {
    background-color: #e74c3c;
}

.status-maintenance {
    background-color: #3498db;
}

.status-unknown {
    background-color: #95a5a6;
}

.active-incidents-panel {
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.active-incidents-panel h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.incidents-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.incident-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color:black;
    padding: 0.75rem;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.incident-title {
    font-weight: 500;
}

.incident-time {
    color: #6c757d;
    font-size: 0.9rem;
}

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

.region-tabs-container {
    margin-top: 2rem;
}

.nav-tabs {
    margin-bottom: 1.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.service-type-card {
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.service-type-header {
    padding: 1rem;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.service-type-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.status-badge {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    background-color: rgba(255,255,255,0.2);
}

.service-type-body {
    padding: 1rem;
    background-color: white;
}

.operational-percentage {
    margin-bottom: 0.75rem;
}

.progress {
    height: 1.5rem;
    margin-bottom: 0.5rem;
}

.progress-bar {
    font-weight: bold;
}

.percentage-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #6c757d;
}

.affected-services-info {
    font-size: 0.9rem;
    color: #e74c3c;
    margin-bottom: 0.75rem;
}

.regions-list {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0.75rem;
}

.service-actions {
    display: flex;
    justify-content: flex-end;
}

.no-services-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.alerts-toolbar {
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.alerts-table {
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.sortable {
    cursor: pointer;
    user-select: none;
}

.sort-indicator {
    margin-left: 0.25rem;
    font-size: 0.8em;
    color: #6b7280;
}

.alert-message {
    max-width: 360px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.alert-badge {
    font-weight: 600;
}

.alert-row.alert-repeat {
    background-color: #fff1f2;
    border-left: 4px solid #ef4444;
}

.alert-row.alert-repeat td:first-child {
    border-left: none;
}

.service-row.alert-repeat {
    background-color: #fff1f2;
}

.alerts-pagination-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    background-color: rgba(255, 255, 255, 0.96);
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.08);
    padding: 0.6rem 1rem;
}

.alerts-pagination-content {
    max-width: 1400px;
    margin: 0 auto;
}

.alerts-pagination-spacer {
    height: 76px;
}

@media (max-width: 576px) {
    .alerts-pagination-footer {
        padding: 0.75rem 0.75rem;
    }

    .alerts-pagination-content .pagination {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 992px) {
    .overall-status-grid {
        flex-direction: column;
    }
}

.uptime-card {
    border: 1px solid #e5e7eb;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.uptime-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: #111827;
    margin: 0.4rem 0 0.2rem;
}

.uptime-toolbar {
    border: 1px solid #e5e7eb;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.uptime-tab-group .btn {
    min-width: 110px;
}

.uptime-year-tabs .btn.active,
.uptime-tab-group .btn.active {
    background-color: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}

.uptime-pagination-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    background-color: rgba(255, 255, 255, 0.96);
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.08);
    padding: 0.6rem 1rem;
}

.uptime-pagination-content {
    max-width: 1400px;
    margin: 0 auto;
}

.uptime-pagination-spacer {
    height: 70px;
}

.diagnostics-debug {
    border: 1px dashed #d1d5db;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    background: #f9fafb;
}

.diagnostics-debug summary {
    font-weight: 600;
    cursor: pointer;
}

.diagnostics-debug pre {
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 0.85rem;
    color: #374151;
}
