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

html, body {
    overflow-x: hidden;
    width: 100%;
}

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

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

header {
    padding: 40px 0 30px;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 48px;
    height: 48px;
    mix-blend-mode: multiply;
}

header h1 {
    font-size: 2rem;
    font-weight: 400;
    color: #1a1a1a;
    margin: 0;
}

main {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Status Banner */
.status-banner {
    padding: 30px 40px;
    text-align: left;
    font-size: 1.5rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.status-banner.up {
    background-color: #2ea44f;
    color: white;
}

.status-banner.down {
    background-color: #d73a49;
    color: white;
}

.status-banner.unknown {
    background-color: #6a737d;
    color: white;
}

/* Uptime Section */
.uptime-section {
    padding: 40px;
    padding-bottom: 80px;
    border-bottom: 1px solid #e1e4e8;
}

.uptime-section h2 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.status-indicator-text {
    color: #2ea44f;
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.status-indicator-text.down {
    color: #d73a49;
}

.status-indicator-text.unknown {
    color: #6a737d;
}

/* Uptime Timeline */
.uptime-timeline {
    margin-bottom: 15px;
    overflow: visible;
}

.timeline-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #6a737d;
    margin-bottom: 8px;
}

.timeline-center {
    font-weight: 600;
    color: #1a1a1a;
}

/* Uptime Bars */
.uptime-bars {
    display: flex;
    gap: 0px;
    height: 40px;
    align-items: flex-end;
    background: #f6f8fa;
    padding: 5px;
    border-radius: 4px;
}

.uptime-bar {
    flex: 1;
    min-width: 2px;
    height: 100%;
    background-color: #2ea44f;
    border-radius: 2px;
    border-right: 2px solid #f6f8fa;
    transition: background-color 0.2s;
    position: relative;
}

.uptime-bar:last-child {
    border-right: none;
}

.uptime-bar.down {
    background-color: #d73a49;
}

.uptime-bar.unknown {
    background-color: #dbdee1;
}

.uptime-bar:hover {
    background-color: #1f7a33;
}

.uptime-bar.down:hover {
    background-color: #b52a37;
}

.uptime-bar.unknown:hover {
    background-color: #b8bcc1;
}

.tooltip-popup {
    position: fixed;
    background: #ffffff;
    color: #1a1a1a;
    padding: 8px 14px;
    border-radius: 6px;
    border: 1px solid #d1d5da;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
    font-size: 0.8rem;
    white-space: pre-line;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
    z-index: 10002;
    line-height: 1.4;
    min-width: 220px;
    max-width: calc(100vw - 20px);
    text-align: left;
}

.tooltip-arrow {
    position: fixed;
    width: 10px;
    height: 10px;
    background: #ffffff;
    border: 1px solid #d1d5da;
    border-bottom: none;
    border-right: none;
    transform: rotate(45deg);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
    z-index: 10001;
}

/* Last Checked */
.last-checked {
    font-size: 0.85rem;
    color: #6a737d;
    margin-top: 15px;
}

.last-checked span {
    color: #1a1a1a;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 0;
    color: #6a737d;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 10px;
    }

    .logo {
        width: 36px;
        height: 36px;
    }

    header h1 {
        font-size: 1.5rem;
    }

    .status-banner {
        font-size: 1.2rem;
        padding: 20px;
    }

    .uptime-section {
        padding: 25px 20px;
        padding-bottom: 80px;
    }

    .timeline-labels {
        font-size: 0.75rem;
    }

    .uptime-bars {
        height: 30px;
    }
}
