html {
    min-height: 100%;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
}

body {
    min-height: 100%;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
}

body {
    display: flex;
    flex-direction: column;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #222;
    color: white;
}

header div:first-child {
    display: flex;
    align-items: center;
}

header img {
    height: 40px;
    margin-right: 10px;
}

header span {
    font-size: 24px;
    font-weight: bold;
}

#darkmode-toggle {
    cursor: pointer;
}

main {
    flex: 1;
    display: flex;
    padding: 20px;
}

#sidebar {
    width: 200px;
    margin-right: 20px;
    background-color: #e0e0e0;
    padding: 10px;
    border-radius: 8px;
    font-size: 18px;
    height: 100%;
    box-sizing: border-box;
}

#content-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

#refresh-info {
    text-align: left;
    margin-bottom: 10px;
}

#leaderboard-container {
    flex-grow: 1;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
}

#view-select,
#board-select,
#player-select,
#config-select {
    width: 95%;
    padding: 5px 6px;
    font-size: 18px;
    margin-top: 10px;
}

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

th, td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}
tr:nth-child(even) td {
    background-color: #f9f9f9;
}

select {
    margin: 5px;
}

html.dark {
    background-color: #121212;
}

body.dark {
    background-color: #121212;
    color: white;
}
body.dark #leaderboard-container {
    background-color: #1e1e1e;
}
body.dark tr:nth-child(even) {
    background-color: #2a2a2a;
}
body.dark tr:nth-child(even) td {
    background-color: #2a2a2a;
}
body.dark tr:nth-child(odd) td {
    background-color: #1e1e1e;
}
body.dark #sidebar {
  background-color: #2b2a2a;
}
body.dark select {
  background-color: #e0e0e0;
}
body.dark .delete-btn {
  color: #ddd;
}
body.dark .delete-btn:hover {
  background-color: #6e312b;
}

.delete-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.delete-btn:hover {
    color: red;
    background-color: #fdd;
}

.delete-menu {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
    position: absolute;
    z-index: 1000;
    white-space: nowrap;
}

.delete-menu:hover {
    background-color: #fdd;
    color: red;
    font-weight: bold;
}



th.options, td.options {
    width: 40px;       /* breit genug für die drei Punkte */
    text-align: center; /* zentriert die drei Punkte */
    padding: 0 5px;    /* minimaler Abstand */
    vertical-align: middle;
}

#cooldown {
    margin-left: 20px;
    font-size: 16px;
    color: #555;
}

body.dark #cooldown {
    color: #ccc;
}

/* Update-Message Block: Überschrift bleibt schwarz im Darkmode */
#update-message-block label strong {
    color: #000;
}