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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.5;
}

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

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e0e0e0;
}

header h1 {
    font-size: 1.5rem;
    color: #1a1a1a;
}

.refresh-btn {
    padding: 8px 16px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background 0.2s;
}

.refresh-btn:hover {
    background: #1d4ed8;
}

.refresh-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

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

.card h2 {
    font-size: 0.875rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.card .count {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
}

.card .severity-breakdown {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 4px;
}

#aws-card {
    border-left: 4px solid #ff9900;
}

#gcp-card {
    border-left: 4px solid #4285f4;
}

#total-card {
    border-left: 4px solid #10b981;
}

.filters {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.filters label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: #4b5563;
}

.filters select {
    padding: 6px 10px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: white;
    font-size: 0.875rem;
}

.filters input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.last-updated {
    margin-left: auto;
    font-size: 0.75rem;
    color: #9ca3af;
}

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

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px 16px;
    text-align: left;
}

th {
    background: #f9fafb;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    border-bottom: 1px solid #e5e7eb;
}

td {
    font-size: 0.875rem;
    border-bottom: 1px solid #f3f4f6;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover {
    background: #f9fafb;
}

.loading {
    text-align: center;
    color: #9ca3af;
    padding: 40px;
}

.no-incidents {
    text-align: center;
    color: #10b981;
    padding: 40px;
}

.error {
    text-align: center;
    color: #ef4444;
    padding: 40px;
}

.provider-aws {
    color: #ff9900;
    font-weight: 600;
}

.provider-gcp {
    color: #4285f4;
    font-weight: 600;
}

.severity-high {
    color: #dc2626;
}

.severity-medium {
    color: #f59e0b;
}

.severity-low {
    color: #10b981;
}

.severity-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.severity-badge.high {
    background: #fef2f2;
    color: #dc2626;
}

.severity-badge.medium {
    background: #fffbeb;
    color: #d97706;
}

.severity-badge.low {
    background: #f0fdf4;
    color: #16a34a;
}

@media (max-width: 768px) {
    .container {
        padding: 12px;
    }

    header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .filters {
        flex-wrap: wrap;
    }

    .last-updated {
        margin-left: 0;
        width: 100%;
    }

    th, td {
        padding: 8px;
        font-size: 0.75rem;
    }
}
