@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:wght@300;400;500&display=swap');

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

:root {
    --accent: #246BCE;
    --accent-dim: #1a518f;
    --bg: #0b0d10;
    --surface: #12151a;
    --surface2: #1a1e26;
    --border: rgba(255,255,255,0.07);
    --text: #f0f2f5;
    --muted: #8891a0;
    --radius: 12px;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    background-image: 
        linear-gradient(rgba(36, 107, 206, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(36, 107, 206, 0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    min-height: 100vh;
    color: var(--text);
}

.toolbar-frame {
    width: 100%;
    height: 70px;
    border: none;
    display: block;
    background: transparent;
}

.page {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-header h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
    font-family: 'Syne', sans-serif;
}

.subtitle {
    color: var(--muted);
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.filter-select {
    padding: 12px 16px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent);
}

.dismiss-all-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'DM Sans', sans-serif;
}

.dismiss-all-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

.dismiss-all-btn:hover {
    background: rgba(226, 75, 74, 0.15);
    color: #e24b4a;
}

.alerts-card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
}

.alerts-list {
    display: flex;
    flex-direction: column;
}

.alert-card {
    display: flex;
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s ease;
}

.alert-card:hover {
    background: var(--surface2);
}

.alert-card:last-child {
    border-bottom: none;
}

.alert-card.dismissed {
    opacity: 0.5;
}

.alert-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.alert-icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.5;
}

.alert-icon.critical {
    background: rgba(226, 75, 74, 0.15);
}

.alert-icon.critical svg {
    stroke: #e24b4a;
}

.alert-icon.high {
    background: rgba(239, 159, 39, 0.15);
}

.alert-icon.high svg {
    stroke: #ef9f27;
}

.alert-icon.medium {
    background: rgba(239, 159, 39, 0.15);
}

.alert-icon.medium svg {
    stroke: #e5a000;
}

.alert-icon.low {
    background: rgba(36, 107, 206, 0.15);
}

.alert-icon.low svg {
    stroke: var(--accent);
}

.alert-content {
    flex: 1;
    min-width: 0;
}

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

.alert-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
    font-family: 'Syne', sans-serif;
}

.alert-time {
    font-size: 12px;
    color: var(--muted);
    font-family: 'DM Sans', sans-serif;
}

.alert-description {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 12px;
    line-height: 1.6;
    font-family: 'DM Sans', sans-serif;
}

.alert-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--muted);
    font-family: 'DM Sans', sans-serif;
}

.meta-item svg {
    width: 14px;
    height: 14px;
    stroke: #666;
}

.alert-actions {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.action-btn {
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'DM Sans', sans-serif;
    display: flex;
    align-items: center;
    gap: 6px;
}

.action-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.action-btn.read {
    background: var(--surface2);
    color: var(--muted);
}

.action-btn.read:hover {
    background: #1f2430;
    color: var(--text);
}

.action-btn.dismiss {
    background: var(--surface2);
    color: var(--muted);
}

.action-btn.dismiss:hover {
    background: rgba(226, 75, 74, 0.15);
    color: #e24b4a;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--muted);
}

.empty-state svg {
    width: 64px;
    height: 64px;
    stroke: #444;
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 18px;
    font-weight: 700;
    color: #888;
    margin-bottom: 0.5rem;
    font-family: 'Syne', sans-serif;
}

.empty-state p {
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
}
