body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f5f7fb;
    color: #1f2937;
}

.topbar {
    background: white;
    border-bottom: 1px solid #e5e7eb;

    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 20px;

    padding: 18px 40px;
}

.brand {
    font-size: 22px;
    font-weight: 700;
    flex-shrink: 0;
}

nav a {
    text-decoration: none;
    color: #374151;
    font-weight: 600;
}

nav a:hover {
    color: #111827;
}

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

h1 {
    margin-bottom: 8px;
}

h2 {
    margin-top: 35px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(180px, 1fr)
    );

    gap: 18px;

    margin-top: 25px;
    margin-bottom: 35px;
}

.card {
    background: white;

    border-radius: 12px;

    padding: 22px;

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.06);
}

.card .value {
    font-size: 30px;
    font-weight: 700;

    margin-top: 8px;
}

form {
    background: white;

    padding: 24px;

    border-radius: 12px;

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.05);

    margin-bottom: 30px;
}

label {
    font-weight: 600;
}

input,
select {
    width: 100%;
    max-width: 420px;

    padding: 10px;

    margin-top: 6px;

    border: 1px solid #d1d5db;
    border-radius: 8px;

    box-sizing: border-box;
}

button {
    padding: 10px 18px;

    border: none;
    border-radius: 8px;

    background: #111827;
    color: white;

    cursor: pointer;

    font-weight: 600;
}

button:hover {
    opacity: 0.9;
}

table {
    width: 100%;

    border-collapse: collapse;

    background: white;

    border-radius: 12px;
    overflow: hidden;

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.04);
}

th,
td {
    padding: 14px;

    text-align: left;

    border-bottom:
        1px solid #e5e7eb;
}

th {
    background: #f9fafb;

    font-size: 14px;
}

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

a {
    color: #2563eb;
}

code {
    background: #f3f4f6;
    padding: 4px 7px;
    border-radius: 6px;
    font-size: 12px;
}

.risk-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    margin-right: 8px;
}

.risk-low {
    background: #dcfce7;
    color: #166534;
}

.risk-medium {
    background: #fef3c7;
    color: #92400e;
}

.risk-high {
    background: #fee2e2;
    color: #991b1b;
}

.risk-score {
    font-size: 13px;
    color: #6b7280;
}

.difficulty-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.difficulty-easy {
    background: #dcfce7;
    color: #166534;
}

.difficulty-medium {
    background: #fef3c7;
    color: #92400e;
}

.difficulty-hard {
    background: #fee2e2;
    color: #991b1b;
}

.topbar nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 18px;

    flex-wrap: wrap;
}

.topbar nav a {
    text-decoration: none;
    color: #374151;
    font-weight: 600;

    white-space: nowrap;
}

.topbar nav a:hover {
    color: #111827;
}

.topbar .logout-form {
    display: inline-flex;

    margin: 0;
    padding: 0;

    background: transparent;

    border: none;
    border-radius: 0;

    box-shadow: none;

    width: auto;
}

.topbar .logout-button {
    display: inline-block;

    margin: 0;
    padding: 0;

    background: transparent;
    color: #374151;

    border: none;
    border-radius: 0;

    box-shadow: none;

    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;

    cursor: pointer;

    white-space: nowrap;
}

.topbar .logout-button:hover {
    color: #111827;
    text-decoration: underline;
    opacity: 1;
}