* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

::-webkit-scrollbar {
    width: 7px;
}

::-webkit-scrollbar-track {
    background-color: #005e27;
}

::-webkit-scrollbar-thumb {
    background: #00ff6a;
    border-radius: 10px;
}

body {
    background-color: rgb(175, 0, 0);
    padding: 20px;
    margin: 0;
    overflow-x: auto;
    box-sizing: border-box;
}


.categories-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    align-items: flex-start;
    min-width: max-content;
}

.categories button.items {
  margin-top: 20px;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 10px;
  background-color: dimgray;
  transition: ease-in-out 0.2s;
  min-width: 200px; 
}

.categories button.highlighted {
  margin-top: 20px;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 10px;
  background-color: rgb(182, 185, 1);
  transition: ease-in-out 0.2s;
}

.categories button.items:hover {
  background-color: rgb(61, 61, 61);
}

.categories button.highlighted:hover {
  background-color: rgb(134, 136, 1);
}

.categories {
    flex: 1; 
    min-width: 250px; 
    max-width: 300px; 
    border: 1px solid #ddd; 
    padding: 10px;
    text-align: center; 
    background-color: grey;
    border-radius: 10px;
}

/* Overlay pro ztmavení pozadí */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

/* Aktivní overlay */
.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Popup */
div[popover] {
  position: fixed; /* changed to fixed for better overlay centering */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgb(175, 0, 0);
  color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Když je popup aktivní */
div[popover][data-show] {
  opacity: 1;
  visibility: visible;
}

/* Close button */
div[popover] .close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #aaa;
  transition: color 0.2s ease;
}

div[popover] .close-btn:hover {
  color: white;
}


  select[multiple] {
    width: 100%;
    max-width: 400px;
    min-height: 150px;
    padding: 10px;
    border: 2px solid #ab47bc; /* fialová */
    border-radius: 8px;
    background-color: #fdf6ff;
    font-family: sans-serif;
    font-size: 16px;
    color: #333;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    outline: none;
    transition: border-color 0.3s ease;
  }

  select[multiple]:focus {
    border-color: #ec407a; /* růžová */
    background-color: #fff0f6;
  }

  select[multiple] option {
    padding: 6px;
    margin: 2px;
    border-radius: 4px;
  }

  select[multiple] option:checked {
    background-color: #ab47bc;
    color: white;
  }



table.su {
  width: 50%;
  border-collapse: collapse;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border-radius: 8px;
  overflow: hidden;
}

table.su thead {
  background-color: #7b5fff; /* fialová */
  color: white;
}

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

table.su tbody tr:hover {
  background-color: #f0f0ff;
}

table.su tbody tr:last-child td {
  border-bottom: none;
}

table.su a {
  color: #7b5fff;
  text-decoration: none;
  margin-right: 8px;
  font-weight: 600;
  transition: color 0.2s ease;
}

table.su a:hover {
  color: #5738a7;
  text-decoration: underline;
}

/* Akční odkazy oddělené svislou čárou */
table.su td:last-child a:not(:last-child)::after {
  margin-left: 8px;
  color: #aaa;
}

a {
    color: white;
}

table.atodo {
  width: 50%;
  border-collapse: collapse;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border-radius: 8px;
  overflow: hidden;
}

table.atodo thead {
  background-color: #7b5fff; /* fialová */
  color: white;
}

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

table.atodo tbody tr:hover {
  background-color: #f0f0ff;
}

table.atodo tbody tr:last-child td {
  border-bottom: none;
}

table.atodo a {
  color: #7b5fff;
  text-decoration: none;
  margin-right: 8px;
  font-weight: 600;
  transition: color 0.2s ease;
}

table.atodo a:hover {
  color: #5738a7;
  text-decoration: underline;
}

/* Akční odkazy oddělené svislou čárou */
table.atodo td:last-child a:not(:last-child)::after {
  margin-left: 8px;
  color: #aaa;
}

