/* ----- GLOBALS ----- */

* {
  transition: all 2s ease-in-out;
}

html {
  position: relative;
  overflow: hidden;
}

body {
  line-height: 1;
  position: relative;
  overflow: hidden;
}

button,
input,
optgroup,
select,
textarea {
  font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol";
  font-size: 1rem !important;
}

img {
  width: 100%;
}

a {
  color: #212426 !important;
}

/* ----- GENERAL ----- */

.content {
  padding: 5px 25px !important;
}

.main-header {
  border-bottom: none !important;
}

.container {
  max-width: 95%;
}

.box {
  position: relative;
  border-radius: 3px;
  background: #ffffff;
  border-left: 5px solid #d2d6de;
  margin-bottom: 20px;
  width: 100%;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.btn {
  line-height: 0.75 !important;
  padding-bottom: -0.75rem !important;
  margin: 5px;
  padding: 10px 15px;
}

/* ----- BOOTSTRAP ----- */

.contents {
  display: contents !important;
}

.grid {
  display: grid !important;
}

.outline {
  outline: 1px solid rgba(0, 0, 0, 0.05);
}

.hide {
  display: none;
}

.syncing {
  animation: spinner 2s linear infinite;
}

/* ----- HEADER ----- */

.logo {
  font-family: "DoHyeon" !important;
  font-weight: 800;
}

.navbar-light .btn-navbar,
.navbar-light .form-control-navbar {
  background-color: white !important;
}

.navbar {
  background-color: #bdbdbd33;
  display: block;
}

/* ----- TAGS ----- */

.tags-container-header {
  padding-top: 10px;
  padding-bottom: 3px;
}

.tags-container {
  min-width: 100% !important;
  padding: 0;
  background-color: #bdbdbd66;
}

.tags-row {
  flex-wrap: nowrap;
  overflow: scroll hidden;
  scrollbar-width: none;
  margin: 0;
  padding: 0;
}

.tags-col {
  overflow: scroll;
  scrollbar-width: none;
  flex-wrap: nowrap;
  display: flex;
  white-space: nowrap;
}

.tag {
  color: #0009;
  background-color: transparent;
  border: 1px solid transparent;
  border-radius: 50px;
}

.tag:hover {
  color: #0009;
  background-color: rgba(0, 0, 0, 0.25);
  border: 1px solid transparent;
  border-radius: 50px;
}

.tag-active {
  background-color: black;
  border: 1px solid transparent;
  border-radius: 50px;
  color: wheat;
}

.tag-active:hover {
  background-color: rgba(0, 0, 0, 0.55);
  border: 1px solid transparent;
  border-radius: 50px;
  color: wheat;
}

.tag-big {
  font-size: smaller;
  color: grey;
  border: none;
  background-color: transparent;
}

.tag-big:hover {
  color: black;
}

.tag-settings {
  font-size: smaller;
  color: grey;
  border: none;
  background-color: transparent;
  margin-left: 2.5em;
}

.tag-settings:hover {
  color: black;
}

.tag-null {
  margin-right: 0.5em;
  margin-left: 2.5em;
}

.tag-active-big-red {
  background-color: transparent;
  border-radius: 0;
  color: red !important;
}

.tag-active-big-blue {
  background-color: transparent;
  border-radius: 0;
  color: blue !important;
}

.tag-option {
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
  margin-bottom: 0px !important;
  background-color: transparent;
  border-left: 0px solid black;
  border-radius: 0;
  text-align: left;
  width: 100%;
  padding: 0 0 0px 1px !important;
  font-family: "DoHyeon";
  color: white;
  font-size: smaller !important;
}

.tag-option:hover {
  color: white;
}

.tag-sort {
  margin: 3px 10px;
}

.content-wrapper {
  background-color: #323232;
  color: white;
}

.item-link,
.item-artist,
.item-icon {
  color: white !important;
}

/* ----- ITEMS ----- */

.item-info {
  display: block;
  word-wrap: break-word;
  overflow: scroll;
  scrollbar-width: none;
  height: 5em;
  line-height: 1em;
  text-overflow: ellipsis;
  margin-top: -38.5px;
  font-size: large;
  padding: 10px 5px;
}

.item-info > div.flex {
  padding: 3px 0 8px 0;
}

.item-info > div.flex > span {
  float: left;
  width: 85%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-info > div > svg {
  float: right;
}

.row-library {
  height: auto;
}

.player {
  position: relative;
  width: 100% !important;
  color: black;
  transition: all 0.5s;
  top: -40px;
  opacity: 0; /* Přidáno */
}

.tags-section {
  position: relative;
}

.modal-tag {
  padding: 8px;
  margin: 4px 0;
  background: #f8f9fa;
  border-radius: 4px;
  cursor: move;
}

.modal-tag.dragging {
  opacity: 0.5;
}

.modal-backdrop {
  z-index: 10;
}

.tag-select {
  position: relative;
  width: 100%;
  background-color: #0000009a;
  color: white;
  padding: 10px 15px;
  opacity: 0;
  transition: all 0.5s;
  top: 38px;
  margin-top: -30px;
  font-size: 1.25rem;
}

.tag-select:hover {
  opacity: 1;
  color: white;
}

/* ----- MODALS ----- */

.modal-body {
  margin: 1em 1.5em;
  padding: 0 1em;
}

.modal-foter {
  justify-content: flex-start;
}

.modal-tags > ol {
  padding-left: 0;
}

.modal-tag {
  text-align: left;
  padding: 10px 5px;
  list-style: lower-greek;
  font-size: large;
}

.modal-tag:hover {
  text-align: left;
  color: black;
  cursor: default;
  background-color: #f1f1f1;
}

.modal-tag:hover:before {
  background-color: #f1f1f1;
}

/* Tag Container */
.tags-container {
   padding: 0 0.5rem;
  background: #f8f9fa;
}

/* Tag Buttons */
.tag {
  margin: 0.25rem;
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  border: 1px solid #dee2e6;
  transition: all 0.2s;
}

.tag:hover {
  background: #e9ecef;
}

.tag-active {
  background: #007bff;
  color: white;
}

/* Modal Tags */
.modal-tag {
  padding: 0.75rem;
  margin: 0.5rem 0;
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  cursor: move;
}

.modal-tag.dragging {
  opacity: 0.5;
  background: #e9ecef;
}

.tag-actions .badge {
  cursor: pointer;
  transition: all 0.2s;
}

.tag-actions .badge:hover {
  background: #6c757d;
}

.rename-tag:hover {
  background: #28a745;
}

.delete-tag:hover {
  background: #dc3545;
}

.userDiv {
   margin-left: 10px;
}

/* Tag Count Badge */
.tag .badge {
  margin-left: 0.5rem;
  background: #6c757d;
}

/* Add Tag Form */
#addCategoryForm {
  display: flex;
  gap: 0.5rem;
  padding: 1rem;
}

#categoryName {
  flex: 1;
}

.tag-active {
  background: #007bff !important;
  color: white !important;
}

.tag-null.tag-active {
  background: #6c757d !important;
  color: white !important;
}

/* ----- IDs ----- */

#addCategoryForm {
  display: flex;
}

#sync,
#log-off {
  font-size: small;
  padding: 0 0 0 0.25em !important;
}

#log-off {
  font-size: medium;
}

#library {
  overflow-y: scroll;
  overflow-x: hidden;
  max-height: 86vh;
  scrollbar-width: none;
  padding: 5em 1.25cm;
}

#placeholder {
  width: 106%;
  opacity: 0.5;
  filter: grayscale(1);
}

#username {
  padding-right: 0.5em;
}

#menu {
  height: 40px;
}

#menu > a,
#menu > a > span {
  line-height: 40px;
  vertical-align: middle;
}

#library-switch {
  display: flow-root !important;
}

.tag-active-big-red {
  color: red !important;
}

.tag-active-big-blue {
  color: blue !important;
}

.tag-big {
  font-size: smaller;
  color: grey;
  border: none;
  background-color: transparent;
  transition: color 0.3s ease;
}

.tag-big:hover {
  color: black;
}

/* Pro sync button */
.syncing {
  animation: spinner 2s linear infinite;
}

@keyframes spinner {
  to {
    transform: rotate(360deg);
  }
}

/* ----- MEDIA QUERY ----- */

@media only screen and (max-width: 992px) {
  .col4 .text-center {
    text-align: left;
  }
}

@media only screen and (max-width: 540px) {
  .btn {
    font-size: 1rem;
    padding: 0.6rem;
  }
  .navbar {
    padding: 0.5rem 0;
  }
  .content {
    padding: 0;
  }
  div.col4.text-left {
    padding-left: 0 !important;
  }
  .tags-col {
    padding-left: 0;
    padding-right: 0;
  }

  .tag-null {
    margin-right: 0;
    margin-left: 1em;
  }

  .tag-settings {
    margin-right: 2em;
    margin-left: 2em;
  }
  .logo {
    display: none;
  }
  .small-logo {
    display: inherit;
  }
  #menu > a:first-child {
    padding-right: 3px;
    padding-left: 5px;
  }
  #loading {
    font-size: 5em;
    margin-top: 1em;
  }
  .btn-group {
    padding: 0 1.914em;
  }
  .userDiv {
    text-align: center;
    width: 100vw;
  }
  .navbar-brand {
    margin: auto;
  }
  #library {
   padding: 10em 1.25em !important;
  }
}

