:root {
    --bg-color: #fcfaf8;
    --text-primary: #1d1d1f;
    --text-secondary: #6e6e73;
    --status-green: #74ae43;
    --status-red: #ffb700;
    /* Yellow Orange */
    --status-orange: #ffd966;
    /* Light Yellow Orange */
    --border-color: #e5e5e5;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.5;
    padding-bottom: 50px;
}

.header {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 32px;
    height: 32px;
    filter: brightness(0);
    /* Make it black */
}

.logo-text {
    font-size: 24px;
    font-weight: 500;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.status-banner {
    padding: 20px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 18px;
    margin-bottom: 40px;
    text-align: left;
}

.status-banner.operational {
    background-color: var(--status-green);
    color: white;
}

.status-banner.outage {
    background-color: var(--status-orange);
    color: #1d1d1f;
    /* Darker text for yellow background */
}

.uptime-legend {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.uptime-history-text {
    font-size: 12px;
    color: var(--text-secondary);
}

.uptime-history-text a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid #ccc;
}

.services-list {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.service-row {
    padding: 25px;
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.service-name-wrapper {
    display: flex;
    align-items: center;
}

.service-name {
    font-size: 14px;
    font-weight: 500;
}

.service-status {
    font-size: 13px;
    font-weight: 500;
}

.status-operational {
    color: var(--status-green);
}

.status-outage {
    color: var(--status-orange);
    filter: contrast(1.2) brightness(0.8);
}

.uptime-graph {
    display: flex;
    gap: 2px;
    height: 34px;
    margin-bottom: 10px;
}

.bar {
    flex: 1;
    background-color: var(--status-green);
    border-radius: 1px;
    position: relative;
    cursor: pointer;
}

.bar:hover::after {
    content: attr(data-date);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    white-space: nowrap;
    margin-bottom: 5px;
    z-index: 10;
}

.bar.down {
    background-color: var(--status-red);
}

.bar.degraded {
    background-color: var(--status-orange);
}

.hidden {
    display: none !important;
}

.history-details {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
    max-height: 300px;
    overflow-y: auto;
    animation: slideDown 0.3s ease-out;
}

.history-details h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.history-details ul {
    list-style: none;
}

.history-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 13px;
}

.history-item:last-child {
    border-bottom: none;
}

.history-date {
    color: var(--text-secondary);
    font-weight: 500;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.uptime-footer {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #999;
    padding-top: 10px;
    border-top: 1px solid #f5f5f5;
}

.uptime-percentage {
    color: #777;
}

.footer {
    max-width: 900px;
    margin: 40px auto 0;
    padding: 0 20px;
    font-size: 14px;
}

.footer a {
    color: var(--text-secondary);
    text-decoration: none;
}

.footer a:hover {
    text-underline-offset: 4px;
    text-decoration: underline;
}