* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    background-color: #fff;
    line-height: 1.6;
}

header {
    background-color: #fff;
    border-bottom: 1px solid #e5e5e5;
    padding: 20px 0;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.logo-circle {
    width: 32px;
    height: 32px;
    background-color: #333;
    border-radius: 50%;
}

.back-link {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.back-link:hover {
    color: #333;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
}

.status-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.status-banner.operational {
    background-color: #10b981;
    color: #fff;
}

.status-indicator {
    width: 12px;
    height: 12px;
    background-color: #fff;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-text h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 4px;
}

.last-updated {
    font-size: 14px;
    opacity: 0.9;
}

.uptime-section {
    margin-bottom: 48px;
}

.uptime-section h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #333;
}

.uptime-container {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 8px;
}

.uptime-label-left {
    font-size: 12px;
    color: #666;
    min-width: 80px;
}

.uptime-bars {
    flex: 1;
    display: flex;
    gap: 2px;
    height: 40px;
    align-items: flex-end;
}

.uptime-bar {
    flex: 1;
    background-color: #10b981;
    min-width: 2px;
    border-radius: 1px;
}

.uptime-label-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    min-width: 120px;
}

.uptime-label-right span:first-child {
    font-size: 12px;
    color: #666;
}

.uptime-percentage {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.system-status-section {
    margin-bottom: 48px;
}

.system-status-section h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.system-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.system-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background-color: #f9fafb;
    border-radius: 6px;
}

.system-name {
    font-size: 16px;
    color: #333;
}

.system-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.system-status.operational {
    color: #10b981;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    display: inline-block;
}

.subscribe-section {
    margin-bottom: 48px;
    padding: 32px;
    background-color: #f9fafb;
    border-radius: 8px;
}

.subscribe-section h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.subscribe-section p {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

.subscribe-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
}

.subscribe-form input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.subscribe-form input:focus {
    border-color: #333;
}

.subscribe-form button {
    padding: 12px 24px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.subscribe-form button:hover {
    background-color: #1a1a1a;
}

.page-nav {
    margin-top: 40px;
    text-align: center;
}

.page-nav a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.page-nav a:hover {
    color: #666;
}

/* Incident History Styles */
.page-title {
    margin-bottom: 32px;
}

.page-title h1 {
    font-size: 32px;
    font-weight: 600;
    color: #333;
}

.incidents-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.incident-card {
    background-color: #f9fafb;
    border-radius: 8px;
    padding: 24px;
    border: 1px solid #e5e5e5;
}

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

.incident-header h2,
.incident-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    flex: 1;
    margin: 0;
}

.incident-history-section {
    margin-bottom: 48px;
}

.incident-history-section h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.status-badge.completed,
.status-badge.resolved {
    background-color: #10b981;
    color: #fff;
}

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

.incident-timeline {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.timeline-item {
    display: flex;
    gap: 16px;
    padding-left: 16px;
    border-left: 2px solid #e5e5e5;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 0;
    width: 8px;
    height: 8px;
    background-color: #666;
    border-radius: 50%;
}

.timeline-time {
    font-size: 13px;
    color: #666;
    font-weight: 500;
    min-width: 120px;
    flex-shrink: 0;
}

.timeline-text {
    font-size: 14px;
    color: #333;
    flex: 1;
}

.date-section {
    margin-top: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e5e5;
}

.date-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.no-incidents {
    color: #666;
    font-size: 14px;
}

footer {
    background-color: #f9fafb;
    border-top: 1px solid #e5e5e5;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-left p {
    font-size: 14px;
    color: #666;
}

.footer-left a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.footer-left a:hover {
    text-decoration: underline;
}

.footer-right {
    display: flex;
    gap: 24px;
}

.footer-right a {
    font-size: 14px;
    color: #666;
    text-decoration: none;
}

.footer-right a:hover {
    color: #333;
}

.copyright {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}

.copyright p {
    font-size: 12px;
    color: #999;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .uptime-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .uptime-label-right {
        align-items: flex-start;
        margin-top: 8px;
    }

    .system-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

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

    .footer-content {
        flex-direction: column;
        gap: 24px;
    }

    .copyright {
        flex-direction: column;
        gap: 8px;
    }

    .incident-header {
        flex-direction: column;
        gap: 12px;
    }

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

