body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    padding: 20px;
}

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

th,
td {
    border: 1px solid #ccc;
    padding: 8px 10px;
}

th {
    background: #f4f4f4;
}

.user-row td {
    transition: background 0.3s;
}

.solo-badge {
    margin-left: 8px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 600;
    color: #555;
    background: #fff;
    border: 1px solid #bbb;
    border-radius: 4px;
}

.pair-spacer td {
    border: none;
    height: 14px;
    padding: 0;
    background: transparent;
}

.empty {
    color: #777;
    text-align: center;
}

/* Refresh toggle */
.refresh-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0 18px;
}

.label-text {
    font-size: 14px;
    color: #444;
}

.switch {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #ccc;
    border-radius: 20px;
    transition: 0.2s;
}

.slider::before {
    content: "";
    position: absolute;
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    border-radius: 50%;
    transition: 0.2s;
}

input:checked+.slider {
    background-color: #4caf50;
}

input:checked+.slider::before {
    transform: translateX(18px);
}

#map {
    width: 100%;
    height: 70vh;
    border: 1px solid #ccc;
    border-radius: 6px;
}

#userTable {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 6px;
    /* space between pairs */
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

#userTable th {
    background: #f4f4f4;
    text-align: left;
    padding: 10px 12px;
    font-weight: 600;
}

#userTable td {
    padding: 8px 12px;
    color: #111;
}

.user-row {
    border-radius: 6px;
    color: #fff;
}

.solo-row {
    background: #888;
    color: #fff;
}