body { font-family: "Arial Narrow", Arial, sans-serif; font-size: 14px; margin:0; padding:0; background:#f9f9f9; }
.content { padding:10px; max-width:1000px; margin:auto; }
table { border-collapse:collapse; width:100%; margin:10px 0; font-size:13px; }
th, td { border:1px solid #aaa; padding:4px 6px; text-align:left; }
th { background:#ddd; }
footer { text-align:center; padding:8px; background:#eee; font-size:12px; }
.form { display:grid; gap:8px; max-width:300px; }
.form label { display:grid; gap:4px; font-size:13px; }
input,
select,
textarea {
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
}
.btn { padding:6px 10px; border:0; cursor:pointer; }
.btn.primary { background:#333; color:#fff; border-radius:4px; }
.error { color:#b00020; margin:6px 0; }

/* Reset a základ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
}

.navbar {
  background: #333;
  color: white;
}

.nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1rem;
}

.logo {
  font-size: 1.8rem; /* větší logo */
  font-weight: bold;
  color: white;
  text-decoration: none;
}

.nav-toggle {
  font-size: 1.8rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  display: none; /* skryté na desktopu */
}

/* Menu na desktopu */
.navbar {
  background: linear-gradient(to right, #2c3e50, #34495e);
  color: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 999;
}

.nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
}

.logo {
  font-size: 1.6rem;
  font-weight: bold;
  color: #f1f1f1;
  text-decoration: none;
  transition: color 0.3s;
}

.logo:hover {
  color: #e0e0e0;
}

.nav-toggle {
  font-size: 1.6rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  display: none;
}

.menu {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  padding: 0 1.5rem 1rem;
  flex-wrap: wrap;
}

.menu li {
  position: relative;
}

.menu a {
  display: block;
  padding: 0.5rem 1rem;
  color: white;
  text-decoration: none;
  font-size: 1rem;
  border-radius: 4px;
  transition: background 0.3s, color 0.3s;
}

.menu a:hover {
  background: rgba(255,255,255,0.1);
  color: #f9f9f9;
}

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #3c4a5a;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  min-width: 180px;
  z-index: 1000;
}

.submenu li a {
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
}

.dropdown:hover .submenu {
  display: block;
}

.menu .right {
  margin-left: auto;
}

/* Mobilní verze */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #2c3e50;
  }

  .menu.show {
    display: flex;
  }

  .menu li {
    text-align: left;
    width: 100%;
  }

  .submenu {
    position: static;
    box-shadow: none;
    background: #3c4a5a;
  }

  .dropdown:hover .submenu {
    display: none;
  }

  .dropdown.open .submenu {
    display: flex;
    flex-direction: column;
  }
}

/* Styl pro tabulku závodů */
#racesTable {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
  background-color: #fff;
  box-shadow: 0 0 6px rgba(0,0,0,0.05);
  border-radius: 6px;
  overflow: hidden;
}

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

#racesTable th {
  background-color: #f2f2f2;
  font-weight: bold;
  color: #333;
}

/* Hover efekt */
#racesTable tr[data-race-id]:hover {
  background-color: #f0f8ff;
  cursor: pointer;
}

/* Styl pro vybraný řádek */
#racesTable tr.selected {
  background-color: #cce5ff;
  font-weight: bold;
}


a.results-button {
    background-color: #E9FBA2;
    border: 1px solid white;
    border-radius: 2px;
    color: black;
    padding: 10px 15px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 28px;
    width: 80px;
}

a.results-button-not-active {
    background-color: #42b41e;
    border: 1px solid white;
    border-radius: 2px;
    color: black;
    padding: 10px 15px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 28px;
    width: 80px;
    pointer-events: none;
    cursor: default;
}

a.results-button-not-started {
    background-color: #ff9e9e;
    border: 1px solid white;
    border-radius: 2px;
    color: black;
    padding: 10px 15px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 28px;
    width: 80px;
}

a.category-list-item {
  display: inline-block;
  padding: 8px 14px;
  margin: 2px;
  background-color: #E9FBA2;
  color: black;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: background-color 0.3s, transform 0.2s;
  text-shadow: 1px 1px 2px rgba(0,0,0,.2);
}

a.category-list-item:hover {
  background-color: #d9f080;
  transform: translateY(-1px);
  box-shadow: 0 3px 5px rgba(0,0,0,0.15);
}

.category-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 10px 0
}

.wave-button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.wave-form {
  margin: 0;
}

div.round-box {
  border: solid 0.5px;
  border-color: #f2f2f2;
  padding: 10px;
  background-color: rgba(169, 169, 169, 0.32);

  display: flex;
  flex-wrap: wrap;
  gap: 6px; /* mezery mezi odkazy */
}

/* Formulářový styl */
/* --------------------*/

.custom-form {
  max-width: 600px;
  margin: 20px auto;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
  font-size: 14px;
}

/* Skrytí ohraničení tabulky */
.custom-form table {
  border-collapse: collapse;
  width: 100%;
}

.custom-form td {
  border: none;
  padding: 8px 6px;
  vertical-align: middle;
}

/* Nadpisy polí */
.custom-form h5 {
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: normal;
}

/* Vstupní pole */
.custom-form input[type="text"],
.custom-form select,
.custom-form textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

/* Tlačítko */
.custom-form input[type="submit"] {
  background-color: #333;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.3s;
}

.custom-form input[type="submit"]:hover {
  background-color: #555;
}

/* Styl pro datové tabulky */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
  background-color: #fff;
  box-shadow: 0 0 6px rgba(0,0,0,0.05);
  border-radius: 6px;
  overflow: hidden;
}

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

.data-table th {
  background-color: #f2f2f2;
  font-weight: bold;
  color: #333;
}

.data-table tr:hover {
  background-color: #f9f9f9;
}

/* Styl pro akční odkazy jako tlačítka */
a.table-button {
  display: inline-block;
  padding: 6px 12px;
  background-color: #333;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 13px;
  transition: background 0.3s;
}

a.table-button:hover {
  background-color: #555;
}


.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-box {
  background: #fff;
  padding: 20px 30px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  text-align: center;
  max-width: 300px;
  width: 100%;
}

.modal-box h3 {
  margin-bottom: 15px;
  font-size: 16px;
}

.modal-box input {
  width: 100%;
  padding: 8px 10px;
  font-size: 14px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.modal-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.modal-actions button {
  flex: 1;
  padding: 8px 12px;
  background-color: #333;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.modal-actions button:hover {
  background-color: #555;
}

