* {

    margin: 0;
    padding: 0;
    box-sizing: border-box;

}

:root {

    --bg: #0f172a;
    --card: rgba(255,255,255,0.08);
    --text: white;
    --button: #2563eb;

}

body.light {

    --bg: #f5f5f5;
    --card: white;
    --text: #222;
    --button: #2563eb;

}

body {

    min-height: 100vh;

    background: var(--bg);

    font-family: Segoe UI, sans-serif;

    color: var(--text);

    padding: 40px;

}

.container {

    width: 500px;

    margin: auto;

    padding: 30px;

    border-radius: 20px;

    background: var(--card);

    backdrop-filter: blur(15px);

    color: var(--text);

}

h1 {

    text-align: center;

    margin-bottom: 30px;

}

.dashboard {

    display: grid;

    grid-template-columns:
        repeat(auto-fit,
        minmax(250px, 1fr));

    gap: 20px;

}

.card {

    padding: 25px;

    border-radius: 15px;

    text-align: center;

}

.healthy {

    background: #16a34a;

}

.warning {

    background: #ca8a04;

}

.critical {

    background: #dc2626;

}

.summary {

    display: grid;

    grid-template-columns:
        repeat(auto-fit,
        minmax(250px, 1fr));

    gap: 20px;

    margin-top: 30px;

}

.summary-card {

    padding: 25px;

    border-radius: 15px;

    background:
        rgba(255,255,255,0.08);

    text-align: center;

}

.toolbar {

    display: flex;

    justify-content: flex-end;

    margin-bottom: 20px;

}

#themeToggle {

    width: 60px;

    padding: 10px;

    border: none;

    border-radius: 10px;

    cursor: pointer;

}

.back-button {

    display: inline-block;

    margin-bottom: 20px;

    text-decoration: none;

    color: white;

    background: #2563eb;

    padding: 10px 16px;

    border-radius: 10px;

}

.navbar {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 30px;

    padding: 20px;

    border-radius: 16px;

    background: rgba(255,255,255,0.08);

}

.logo a {

    color: white;

    text-decoration: none;

    font-size: 22px;

    font-weight: bold;

}

.nav-links {

    display: flex;

    gap: 20px;

}

.nav-links a {

    color: white;

    text-decoration: none;

    font-size: 16px;

}