/* Base Styles */
:root {
    --primary-color: #1a73e8;
    --success-color: #34a853;
    --warning-color: #fbbc05;
    --danger-color: #ea4335;
    --neutral-color: #dadce0;
    --text-color: #202124;
    --text-light: #5f6368;
    --background-color: #ffffff;
    --background-alt: #f8f9fa;
    --border-color: #e0e0e0;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

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

/* Header Styles */
header {
    background-color: var(--background-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover, 
nav ul li a.active {
    color: var(--primary-color);
}

/* Main Content Styles */
main {
    padding: 40px 0;
}

section {
    margin-bottom: 40px;
}

h2 {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--text-color);
}

/* Status Overview Styles */
.status-overview {
    background-color: var(--background-alt);
    padding: 40px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.current-status h2 {
    font-size: 32px;
    color: var(--success-color);
    margin-bottom: 10px;
}

.updated-time {
    color: var(--text-light);
    font-size: 14px;
}

/* Services Styles */
.service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.service-name {
    font-weight: 500;
}

.service-status {
    display: flex;
    align-items: center;
}

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

.status-operational {
    background-color: var(--success-color);
}

.status-degraded {
    background-color: var(--warning-color);
}

.status-outage {
    background-color: var(--danger-color);
}

/* Uptime Styles */
.uptime-metric {
    margin-bottom: 30px;
}

.uptime-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.uptime-name {
    font-weight: 500;
}

.uptime-percentage {
    font-weight: 700;
    color: var(--success-color);
}

.uptime-bar {
    height: 8px;
    background-color: var(--neutral-color);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.uptime-segments {
    display: flex;
    height: 100%;
    width: 100%;
}

.segment {
    flex: 1;
    margin: 0 1px;
}

.segment-operational {
    background-color: var(--success-color);
}

.segment-degraded {
    background-color: var(--warning-color);
}

.segment-outage {
    background-color: var(--danger-color);
}

/* Past Incidents Styles */
.incident-item {
    border-left: 3px solid var(--primary-color);
    padding: 15px;
    margin-bottom: 20px;
    background-color: var(--background-alt);
}

.incident-date {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.incident-title {
    font-weight: 500;
    margin-bottom: 10px;
}

.incident-details {
    font-size: 14px;
    color: var(--text-light);
}

.view-all {
    display: inline-block;
    margin-top: 10px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

/* Footer Styles */
footer {
    background-color: var(--background-alt);
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: var(--background-color);
    margin: 10% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.close {
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-light);
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
}

/* Media Queries */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 20px;
    }
    
    nav ul li {
        margin-left: 15px;
        margin-right: 15px;
    }
}
