body {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: sans-serif;
    line-height: 1.6;
}

nav {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ccc;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Utility classes to avoid inline styles */
.nav-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-link-staff {
    color: #b00;
    font-weight: bold;
}

.inline-form {
    display: inline;
}

.margin-bottom-10 { margin-bottom: 10px; }
.margin-bottom-20 { margin-bottom: 20px; }
.margin-bottom-0 { margin-bottom: 0; }
.margin-top-0 { margin-top: 0; }
.margin-top-5 { margin-top: 5px; }
.margin-right-15 { margin-right: 15px; }
.padding-btn { padding: 5px 15px; }
.width-80 { width: 80px; }
.width-60 { width: 60px; }
.width-100-max-800 { width: 100%; max-width: 800px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.inline-flex-gap-5 { display: inline-flex; align-items: center; gap: 5px; }
.btn-small { padding: 1px 8px; font-size: 0.9em; }

.card {
    border: 1px solid #ccc;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.card-dashed {
    border: 1px dashed #ccc;
    padding: 15px;
    margin-top: 30px;
    border-radius: 5px;
    background: #f9f9f9;
}

.compact-form {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.compact-form label {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.levels-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Score background colors */
.bg-score-100 {
    background-color: #d4edda;
    padding: 2px 6px;
    border-radius: 4px;
}

.bg-score-partial {
    background-color: #fff3cd;
    padding: 2px 6px;
    border-radius: 4px;
}

.bg-score-0 {
    background-color: #f8d7da;
    padding: 2px 6px;
    border-radius: 4px;
}

.bg-score-notes {
    background-color: #e2d9f3;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Primary Button */
.btn-primary {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0066cc;
    color: white !important;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    border: 1px solid #005bb5;
    font-size: 1.1em;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-primary:hover {
    background-color: #005bb5;
}

/* Danger Button */
.btn-danger {
    padding: 5px 15px;
    background-color: #d9534f;
    color: white;
    font-weight: bold;
    border-radius: 5px;
    border: 1px solid #d43f3a;
    cursor: pointer;
}

.btn-danger:hover {
    background-color: #c9302c;
}

/* Tables */
.table-ranking {
    width: 100%;
    border-collapse: collapse;
}

.table-ranking th,
.table-ranking td {
    text-align: left;
    padding: 6px 10px;
    border-bottom: 1px solid #ddd;
}

.table-ranking thead th {
    border-bottom: 2px solid #999;
}

/* Code block */
.code-block {
    background: #f5f5f5;
    border: 1px solid #ddd;
    padding: 12px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}