/* --- Tag barvy: výchozí (light mode) --- */
:root {
  --tag1:   #f8f8f8;
  --tag2:   #e0e0e0;
  --tag3:   #666;
  --tag4:   #000;
  --tag5:   hsl(45, 100%, 60%);
  --tag6:   hsl(0, 100%, 50%);
  --tag7:   hsl(210, 100%, 60%);
  --tag8:   hsl(120, 100%, 40%);

  --tag9:   hsla(60, 100%, 50%, 0.33);
  --tag10:  hsla(40, 100%, 50%, 0.33);
  --tag11:  hsla(0, 100%, 50%, 0.33);
  --tag12:  hsla(310, 100%, 55%, 0.33);
  --tag13:  hsla(257, 100%, 65%, 0.33);
  --tag14:  hsla(205, 100%, 60%, 0.33);
  --tag15:  hsla(175, 100%, 45%, 0.33);
  --tag16:  hsla(90, 100%, 45%, 0.33);
}


body {
    font-family: 'Atkinson Hyperlegible', Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
}

main {
    flex: 1;
    min-width: 320px;
    /* max-width: 1380px; */
    margin: 0 auto;
}
#songs-page {
  width: 97.5%;
}
#form-page {
  width: 95%;
  max-width: 600px;
}

footer {
  font-size: 0.85rem;
}
.hero-section {
  padding: 2rem 0 1rem;
  margin: 0;
}
.navbar-brand {
  font-weight: bold;
  font-size: 1.2rem;
  color: var(--bs-primary-color);
}
.navbar-btns {
  gap: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.navbar .btn-link {
  margin-left: 1rem;
  color: var(--bs-secondary-color);
}
.navbar-toggler {
    border: none !important;
    box-shadow: none !important;
}

h5 .badge {
  font-size: 0.67em;
  font-weight: normal;
  line-height: 1;
  padding: 0.2em 0.4em;
  transform: translateY(-0.2em);
}

.form-control::placeholder {
  font-style: italic;
  opacity: 0.5;
}

/* SONG list */

.song-row {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  grid-template-rows: auto auto;
  align-items: start;
  gap: 0.1em 0.75em;
  padding: 0.5em 0.75em;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--bs-border-color);
  transition: background 0.15s;
}

.songs-list .song-row:hover {
  background: var(--bs-secondary-bg-subtle);
}
/* .song-icon {
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
} */

.song-icon {
  grid-row: 1;
  grid-column: 1;
  align-self: center;
  justify-self: center;
}
.song-icon .lock,
.song-icon .cloud {
  opacity: 0.33;
}
.song-icon .user {
  color: var(--bs-primary);
}
.song-row .stars {
  grid-row: 2;
  grid-column: 1;
  align-self: center;
  justify-self: center;
}

.song-title {
  grid-row: 1;
  grid-column: 2;
  font-weight: bold;
  font-size: 1.1em;
  line-height: 1.1;
  padding-top: 0.1em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block; /* nebo inline-block, aby fungovalo ořezávání */
  max-width: 100%; /* zajistí, že se nebude roztahovat mimo sloupec */
}

.song-artist {
  grid-row: 2;
  grid-column: 2;
  color: var(--bs-secondary-color);
  font-size: 0.85em;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
}

.stars {
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 0.1rem;
  white-space: nowrap;
  color:var(--bs-primary);
}
.stars.list-stars {
  font-size: 0.5rem;
  gap: 0;
}
.stars.list-stars .bi{
  line-height: 1;
}
.stars.big-stars {
  margin: 0.5rem auto;
  gap: 0.2rem;
  font-size: 1.1rem;
}
.stars .bi-star {
  opacity: 0.5;
}
.stars-list {
  white-space: nowrap;
}
.stars-list .stars {
  display: inline-block;
}
.song-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.song-toolbar .left {
  flex: 0;
  justify-content: start;
}
.song-toolbar .right {
  flex: 0;
  justify-content: end;
}

.authors {
  margin-right: 1rem;
}

/* TAGS */

.tag-color-palette {
    display: grid;
    grid-template-columns: repeat(8, 24px);
    grid-template-rows: repeat(2, 24px);
    gap: 4px;
    margin-bottom: 0.5rem;
}
.tag {
    border-radius: 4px;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 0;
    border: none;
    padding: 0.1rem 0.3rem;
    font-size: 0.75rem;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
}
.tag-color-palette .tag {
  width: 24px;
  height: 24px;
}
.tags-editable .tag:hover {
    box-shadow: 0 0 0 1px var(--bs-secondary);
}
.tags-editable .tag.active {
    box-shadow: 0 0 0 2px var(--bs-body-color);
}
.tags-list .tag {
  padding: 0 0.3rem;
  cursor: default;
}
.tags-form .tag {
  padding: 0.2em 0.5rem;
  cursor: default;
}
.search-tags {
  line-height: 1.75;
}
.search-tags .tag {
  font-size: 1em;
}

.tag-color-1  { background: var(--tag1) }
.tag-color-2  { background: var(--tag2) }
.tag-color-3  { background: var(--tag3) }
.tag-color-4  { background: var(--tag4) }
.tag-color-5  { background: var(--tag5) }
.tag-color-6  { background: var(--tag6) }
.tag-color-7  { background: var(--tag7) }
.tag-color-8  { background: var(--tag8) }
.tag-color-9  { background: var(--tag9) }
.tag-color-10 { background: var(--tag10) }
.tag-color-11 { background: var(--tag11) }
.tag-color-12 { background: var(--tag12) }
.tag-color-13 { background: var(--tag13) }
.tag-color-14 { background: var(--tag14) }
.tag-color-15 { background: var(--tag15) }
.tag-color-16 { background: var(--tag16) }

.tag { color: rgba(0, 0, 0, 0.5) }

.tag-color-3,
.tag-color-4,
.tag-color-6,
.tag-color-7,
.tag-color-8,
html.dark .tag-color-9,
html.dark .tag-color-10,
html.dark .tag-color-11,
html.dark .tag-color-12,
html.dark .tag-color-13,
html.dark .tag-color-14,
html.dark .tag-color-15,
html.dark .tag-color-16 { color: rgba(255,255,255,0.75) }

.tag-color-0  { background: transparent; color: var(--bs-secondary-color) }

.tag:disabled {
    opacity: 0.33;
    cursor: not-allowed;
}
#add-tag-modal summary {
  margin: 2rem 0 1rem;
  font-size: 0.85rem;
}

#bulk-actions {
  display: none;
}
.bulk-mode #bulk-actions {
  display: block;
}
.bulk-mode .pager {
  display: none;
}
.song-row.bulk-mode {
    cursor: pointer !important;
}
.song-row.bulk-mode:hover {
    background-color: var(--bs-light) !important;
}
.bulk-checkbox:checked + .song-title {
    background-color: var(--bs-primary);
    color: white;
    border-radius: 3px;
    padding: 2px 4px;
}
#bulk-actions {
    transition: all 0.3s ease;
}


/* Styly pro dotyková zařízení */

@media (pointer: coarse) {
  .navbar-brand .title {
    display: none;
  }
  .stars {
  }
  .stars.big-stars {
    gap: 0.75rem;
    font-size: 1.5rem;
  }
}