:root {
    --sb-background: #d4eeff;
    --header-font-color: #6d6d6d;
    --header-background: #9cc4ff;
    --teamname-font-color: #000;
    --team-row-background: #f1fdff;
    --score-background: #fff;
    --score-border: #ddd;
    --score-border-win: #adadad;
    --drop-shadow: rgba(0,0,0,0.1);
}

body {
    margin: 0;
    padding: 0;
    /* Positioning the scoreboard in the upper left */
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    height: 100vh;
    width: 100vw;
    overflow: hidden; /* Prevent scrollbars if scaled */
}

.scoreboard {
    background: var(--sb-background);
    border-radius: 8px;
    padding: 16px;
    width: fit-content;
    /* min-width: 300px; */
    box-shadow: 0 2px 4px var(--drop-shadow);
    font-family: Roboto, sans-serif;
    /* Ensure scaling works smoothly */
    transition: transform 0.3s ease;
    /* Remove margin and ensure it sticks to top-left */
    margin: 0;
}

.header {
    background: var(--header-background);
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header input {
    border: none;
    background: transparent;
    color: var(--header-font-color);
    font-size: 18px;
    font-weight: bold;
    width: auto;
}

.set-controls {
    display: flex;
    align-items: center;
    gap: 4px;
}

.set-number {
    font-weight: bold;
    margin: 0 8px;
}

.team-row {
    background: var(--team-row-background);
    padding: 8px;
    margin: 4px 0;
    display: flex;
    align-items: center;
    border-radius: 4px;
    gap: 12px;
}

.team-name {
    font-size: 14px;
    font-weight: bold;
    width: 120px;
    color: var(--teamname-font-color);
    white-space: nowrap; /* remove for text wrap (2 lines) */
    overflow: hidden;
    text-overflow: ellipsis;
}

.sets-container {
    display: flex;
    gap: 12px;
}

.set {
    display: flex;
    align-items: center;
}

.set.inactive {
    opacity: 0.5;
}

.score {
    background: var(--score-background);
    border: 1px solid var(--score-border);
    padding: 4px 8px;
    min-width: 20px;
    text-align: center;
    border-radius: 4px;
    font-size: 16px; /* Adjust as needed */
}

.set.winner .score {
    border: 2px solid var(--score-border-win);
}

/* New Styles for Scale Control on Admin Page */
.scale-control {
    margin: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.scale-control label {
    font-weight: bold;
}

.scale-control input[type="range"] {
    width: 200px;
}

/* Ensure the scoreboard remains at the top-left */
body {
    position: relative;
}

.scoreboard {
    position: absolute;
    top: 0;
    left: 0;
}
