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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

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

header {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

h1 {
    color: #333;
    margin-bottom: 10px;
}

.uptime-info {
    color: #666;
    font-size: 14px;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.service-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.service-card.operational::before {
    background: #10b981;
}

.service-card.down::before {
    background: #ef4444;
}

.service-card.unknown::before {
    background: #6b7280;
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.service-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.service-type {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.operational {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.down {
    background: #fee2e2;
    color: #991b1b;
}

.status-badge.unknown {
    background: #e5e7eb;
    color: #374151;
}

.service-details {
    font-size: 14px;
    color: #666;
}

.service-details div {
    margin: 5px 0;
}

.error-message {
    color: #ef4444;
    font-size: 13px;
    margin-top: 10px;
    padding: 10px;
    background: #fee2e2;
    border-radius: 5px;
}

.manual-override {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 10px;
    margin-top: 10px;
    border-radius: 5px;
    font-size: 13px;
    color: #92400e;
}

.section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.section-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
}

.outage-item {
    padding: 15px;
    border-left: 4px solid #ef4444;
    background: #fef2f2;
    margin-bottom: 15px;
    border-radius: 5px;
}

.outage-item.resolved {
    border-left-color: #10b981;
    background: #f0fdf4;
}

.outage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.outage-service {
    font-weight: 600;
    color: #333;
}

.outage-time {
    font-size: 13px;
    color: #666;
}

.outage-error {
    font-size: 13px;
    color: #666;
}

.ongoing-badge {
    background: #fecaca;
    color: #991b1b;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.resolved-badge {
    background: #d1fae5;
    color: #065f46;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.manual-notice-section {
    margin-top: 30px;
}

.manual-form {
    background: #f9fafb;
    padding: 20px;
    border-radius: 10px;
    margin-top: 15px;
}

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

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

input, select, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    font-size: 14px;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

button {
    background: #667eea;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: #5568d3;
}

.connection-status {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.connection-status.connected {
    background: #10b981;
    color: white;
}

.connection-status.disconnected {
    background: #ef4444;
    color: white;
}

.auth-section {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 400px;
    z-index: 1000;
}

.auth-section.minimized {
    padding: 10px 15px;
    max-width: 200px;
}

.auth-toggle {
    background: #667eea;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    text-align: center;
}

.auth-toggle:hover {
    background: #5568d3;
}

.auth-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f9fafb;
    border-radius: 5px;
    margin-bottom: 15px;
}

.auth-status.authenticated {
    background: #d1fae5;
    border: 2px solid #10b981;
}

.auth-status.unauthenticated {
    background: #fee2e2;
    border: 2px solid #ef4444;
}

.login-form {
    max-width: 400px;
}

.hidden {
    display: none;
}

button.logout-btn {
    background: #ef4444;
}

button.logout-btn:hover {
    background: #dc2626;
}

.chart-container {
    margin-top: 15px;
    height: 50px;
    display: flex;
    align-items: flex-end;
    gap: 2px;
}

.chart-bar {
    flex: 1;
    background: #e5e7eb;
    border-radius: 2px;
    transition: height 0.3s;
    min-height: 3px;
}

.chart-bar.success {
    background: #10b981;
}

.chart-bar.failure {
    background: #ef4444;
}

@media (max-width: 768px) {
    .status-grid {
        grid-template-columns: 1fr;
    }
}