/* Status Page Styles */

/* Status Indicators */
.status-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-indicator.operational {
    background-color: #00c853;
}

.status-indicator.degraded {
    background-color: #ffc107;
}

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

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

.status-indicator.maintenance {
    background-color: #3f51b5;
}

/* System Status Badge */
.system-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background-color: #f5f9ff;
    border-radius: 40px;
    margin-top: 20px;
}

.system-status-badge .status-indicator {
    width: 16px;
    height: 16px;
}

.system-status-badge .status-text {
    font-size: 18px;
    font-weight: 600;
}

.last-updated {
    margin-top: 12px;
    font-size: 14px;
    color: #666;
}

/* Status Grid */
.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.status-card {
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.status-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.status-card.maintenance {
    border-left: 4px solid #3f51b5;
}

.status-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.status-header h3 {
    margin: 0;
    flex-grow: 1;
    font-size: 18px;
}

.status-header .status-indicator {
    margin-right: 8px;
}

.status-header .status-text {
    font-size: 14px;
    font-weight: 600;
}

.status-details {
    padding: 16px 20px;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.status-item:last-child {
    margin-bottom: 0;
}

.status-item .item-name {
    font-size: 14px;
}

.status-metrics {
    display: flex;
    justify-content: space-around;
    padding: 16px 20px;
    background-color: #f9fafb;
    border-top: 1px solid #f0f0f0;
}

.metric {
    text-align: center;
}

.metric-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.metric-value {
    display: block;
    font-size: 18px;
    font-weight: 600;
}

.status-message {
    padding: 12px 20px;
    background-color: #f0f4ff;
    border-top: 1px solid #e0e6ff;
    font-size: 14px;
}

.status-message p {
    margin: 0;
}

/* Uptime Metrics */
.uptime-metrics {
    margin-top: 40px;
}

.uptime-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
    overflow: hidden;
}

.uptime-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.uptime-header h3 {
    margin: 0;
    font-size: 18px;
}

.uptime-percentage {
    font-size: 20px;
    font-weight: 600;
    color: #00c853;
}

.uptime-chart {
    padding: 20px;
}

.chart-container {
    display: flex;
    align-items: flex-end;
    height: 120px;
    gap: 2px;
    margin-bottom: 8px;
}

.chart-bar {
    flex: 1;
    min-width: 4px;
    max-width: 20px;
    border-radius: 2px 2px 0 0;
    transition: all 0.3s ease;
}

.chart-bar:hover {
    opacity: 0.8;
    transform: scaleY(1.05);
}

.chart-bar.operational {
    background-color: #00c853;
}

.chart-bar.degraded {
    background-color: #ffc107;
}

.chart-bar.partial-outage {
    background-color: #ff9800;
}

.chart-bar.major-outage {
    background-color: #f44336;
}

.chart-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
}

/* Incidents Section */
.incidents-list {
    margin-top: 40px;
}

.incident-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
    overflow: hidden;
}

.incident-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.incident-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 16px;
}

.incident-status.resolved {
    background-color: #00c853;
}

.incident-status.investigating {
    background-color: #f44336;
}

.incident-status.identified {
    background-color: #ff9800;
}

.incident-status.monitoring {
    background-color: #ffc107;
}

.incident-header h3 {
    margin: 0;
    flex-grow: 1;
    font-size: 18px;
}

.incident-date {
    font-size: 14px;
    color: #666;
}

.incident-timeline {
    padding: 16px 20px;
}

.timeline-item {
    position: relative;
    padding-left: 24px;
    padding-bottom: 24px;
    border-left: 2px solid #e0e0e0;
    margin-left: 8px;
}

.timeline-item:last-child {
    padding-bottom: 0;
    border-left: 2px solid transparent;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #fff;
    border: 2px solid #ccc;
}

.timeline-item.investigating::before {
    border-color: #f44336;
}

.timeline-item.identified::before {
    border-color: #ff9800;
}

.timeline-item.monitoring::before {
    border-color: #ffc107;
}

.timeline-item.resolved::before {
    border-color: #00c853;
}

.timeline-time {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    display: block;
}

.timeline-status {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.timeline-status.investigating {
    background-color: #ffebee;
    color: #f44336;
}

.timeline-status.identified {
    background-color: #fff3e0;
    color: #ff9800;
}

.timeline-status.monitoring {
    background-color: #fffde7;
    color: #ffc107;
}

.timeline-status.resolved {
    background-color: #e8f5e9;
    color: #00c853;
}

.timeline-item p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

/* Maintenance Section */
.maintenance-list {
    margin-top: 40px;
}

.maintenance-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
    overflow: hidden;
}

.maintenance-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.maintenance-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 16px;
}

.maintenance-status.completed {
    background-color: #00c853;
}

.maintenance-status.upcoming {
    background-color: #3f51b5;
}

.maintenance-status.in-progress {
    background-color: #ff9800;
}

.maintenance-header h3 {
    margin: 0;
    font-size: 18px;
}

.maintenance-details {
    display: flex;
    padding: 16px 20px;
}

.maintenance-time {
    flex: 0 0 220px;
    padding-right: 20px;
    border-right: 1px solid #f0f0f0;
    font-size: 14px;
    line-height: 1.6;
}

.maintenance-description {
    flex: 1;
    padding-left: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.maintenance-description p {
    margin-top: 0;
    margin-bottom: 16px;
}

.maintenance-description p:last-child {
    margin-bottom: 0;
}

.maintenance-description ul {
    margin-top: 0;
    margin-bottom: 16px;
    padding-left: 20px;
}

/* Subscription Section */
.subscription-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.subscription-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 24px;
    text-align: center;
}

.subscription-icon {
    margin-bottom: 16px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #3f51b5;
}

.subscription-card h3 {
    margin-top: 0;
    margin-bottom: 16px;
}

.subscription-card p {
    margin-bottom: 24px;
    font-size: 15px;
    line-height: 1.6;
}

.subscription-form {
    text-align: left;
}

.subscription-form input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 16px;
    font-size: 14px;
}

.subscription-options-checkboxes {
    margin-bottom: 16px;
}

.subscription-options-checkboxes label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}

.subscription-success {
    text-align: center;
    padding: 20px 0;
}

.subscription-success svg {
    color: #00c853;
    margin-bottom: 16px;
}

.subscription-email {
    font-weight: 600;
}

.subscription-note {
    font-size: 12px;
    color: #666;
}

.feed-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.feed-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: #f9fafb;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
}

.feed-link:hover {
    background-color: #f0f0f0;
}

.feed-link svg {
    color: #ff9800;
}

.subscription-card ul {
    text-align: left;
    padding-left: 20px;
    margin-bottom: 24px;
}

.subscription-card ul li {
    margin-bottom: 8px;
    font-size: 14px;
}

/* Status Legend */
.status-legend {
    margin-top: 30px;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    padding: 12px 16px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.legend-item .status-indicator {
    width: 16px;
    height: 16px;
    margin-right: 16px;
}

.legend-description h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
}

.legend-description p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.view-more-container {
    text-align: center;
    margin-top: 32px;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .status-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .maintenance-details {
        flex-direction: column;
    }
    
    .maintenance-time {
        flex: 0 0 auto;
        padding-right: 0;
        padding-bottom: 16px;
        margin-bottom: 16px;
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .maintenance-description {
        padding-left: 0;
    }
}

@media (max-width: 768px) {
    .system-status-badge {
        padding: 8px 16px;
    }
    
    .system-status-badge .status-text {
        font-size: 16px;
    }
    
    .chart-container {
        height: 80px;
    }
    
    .subscription-options {
        grid-template-columns: 1fr;
    }
}