/* MAIN STYLING */
div {
  margin-top: 5%;
  width: 100%;
  align-items: center;
  justify-content: center;
  display: grid;
  text-align: center;
}

button {
  width: 100%;
  max-width: 208px;
  height: 40px;
  margin-left: auto;
  margin-right: auto;
  border: none;
  border-radius: 3px;
  transition: 1s background-color;
}

button:hover {
  background-color: #c7b299;
  cursor: pointer;
}

input {
  width: 100%;
  max-width: 208px;
  height: 25px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 3px;
  transition: 1s background-color;
  text-align: center;
}

body {
  min-width: 200px;
  scroll-behavior: smooth;
  font-family: "futura-medium";
  color: #1a1a1a;
  font-size: 18px;
  cursor: default;
  letter-spacing: 1px;
  overflow-x: hidden;
}

footer {
  text-align: center;
  position: fixed;
  top: 0;
  left: 20px;
}

table {
  width: 90%;
  margin: 30px auto;
  border-collapse: collapse;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
  font-size: 16px;
}

th,
td {
  padding: 12px 15px;
  border: 1px solid #ddd;
  text-align: center;
}

th {
  background-color: #f4f4f4;
  font-weight: bold;
  position: sticky;
  top: 0;
  z-index: 2;
}

tr:nth-child(even) {
  background-color: #f9f9f9;
}

tr:hover {
  background-color: #f1f1f1;
}

input,
button {
  font-weight: normal;
  background-color: #f9f9f9;
  border: 1px solid #ccc;
}

/* CUSTOM STYLING */
.logo {
  border-radius: 3px;
  width: 100%;
  max-width: 200px;
  height: 68px;
}

.logo-small {
  border-radius: 3px;
  width: 100%;
  max-width: 140px;
  max-height: 47px;
  position: absolute;
  top: 10px;
  left: 10px;
  text-align: left;
}

input[type="text"],
input[type="number"] {
  border: 1px solid #ccc;
  font-size: 16px;
  padding: 5px;
  box-sizing: border-box;
}

input.no-edit {
  background-color: #f5f5f5;
  border: none;
  color: #333;
}

input.no-edit:hover {
  cursor: not-allowed;
  background-color: #e0e0e0; /* Slight visual hint */
}

button.save {
  background-color: #4caf50;
  color: white;
  font-weight: bold;
}

button.save:hover {
  background-color: #45a049;
}

button.delete {
  background-color: #e53935; /* kräftiges Rot */
  color: white;
  font-weight: bold;
  transition: 0.3s background-color;
}

button.delete:hover {
  background-color: #c62828; /* dunkleres Rot beim Hover */
  cursor: pointer;
}

.sticky-header {
  position: sticky;
  top: 0;
  background-color: #eee;
  z-index: 10;
}

form[name="view_options"] {
  margin: 20px auto;
  text-align: center;
}

form[name="view_options"] h4 {
  display: inline;
  margin-left: 10px;
  font-weight: normal;
}

.timer {
  position: absolute;
  top: 5px;
  right: 20px;

  padding: 10px 20px;
  font-size: 16px;
  font-family: "futura-medium", sans-serif;
  color: #1a1a1a;
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: fit-content;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.button-back {
  width: fit-content;
  max-width: 160px;
  padding: 10px 20px;
  font-size: 16px;
  margin: 20px 0;
  border-radius: 5px;
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  transition: 0.3s background-color;
}

.button-back:hover {
  background-color: #c7b299;
  cursor: pointer;
}

button.sort-btn {
  display: inline-block;
  width: auto; /* oder z.B. 32px für gleichbleibende Breite */
  min-width: 32px;
  height: 28px;
  margin: 2px 2px;
  padding: 0 6px;
  border: 1px solid #ccc;
  border-radius: 3px;
  background-color: #f9f9f9;
  transition: 0.3s background-color;
  font-size: 14px;
  vertical-align: middle;
}

button.sort-btn:hover {
  background-color: #c7b299;
  cursor: pointer;
}

/* GLOBAL FONT RESET */
body,
table,
th,
td,
input,
button,
form,
h4 {
  font-family: "futura-medium", sans-serif;
  font-size: 16px;
  color: #1a1a1a;
}

/* COURSES STYLES */
.msg-error {
  margin: 0;
  color: red;
  font-family: monospace;
  font-size: 15px;
  text-align: center;
}

.msg-success {
  margin: 0;
  color: green;
  font-family: monospace;
  font-size: 15px;
  text-align: center;
}

.msg-warning {
  margin: 0;
  color: deeppink;
  font-family: monospace;
  font-size: 15px;
  text-align: center;
}

.msg-info {
  margin: 0;
  color: #1a1a1a;
  font-family: monospace;
  font-size: 15px;
  text-align: center;
}

.msg-system {
  margin: 0;
  color: #c7b299;
  font-family: monospace;
  font-size: 17px;
  text-align: center;
}

.welcome-msg {
  margin: 0;
  color: #c7b299;
}

.msg-copyright {
  margin: 30px 0 10px 0;
  width: 100%;
  text-align: center;
  color: #1a1a1a;
  font-family: monospace;
  font-size: 15px;
}

.logo_svg {
  width: 20px;
  height: 20px;
}

.top-left-logo {
  position: absolute;
  top: 20px;
  left: 20px;
  max-width: 150px; /* nach Bedarf anpassen */
  height: auto;
}

/* Dropdown styled exactly like the Refresh button */
select.group-select {
  width: 100%;
  max-width: 208px; /* same as buttons */
  height: 40px; /* same height as buttons */
  margin-left: auto;
  margin-right: auto;
  border: none;
  border-radius: 3px;
  background-color: #f9f9f9;
  font-family: "futura-medium", sans-serif;
  font-size: 16px;
  color: #1a1a1a;
  font-weight: normal;
  text-align: center;
  cursor: pointer;
  transition: 1s background-color;

  /* remove native arrow */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  /* custom arrow, positioned like a button icon 
  background-image: linear-gradient(45deg, transparent 50%, #1a1a1a 50%),
    linear-gradient(135deg, #1a1a1a 50%, transparent 50%);
  background-position: calc(100% - 20px) center, calc(100% - 12px) center;
  background-size: 8px 8px, 8px 8px;
  background-repeat: no-repeat; */
}

select.group-select:hover {
  background-color: #c7b299; /* same hover as buttons */
}
