#@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 900;
    src: url('../fonts/Poppins-Black.ttf') format('truetype');
  }
  
  @font-face {
    font-family: 'Poppins';
    font-style: italic;
    font-weight: 900;
    src: url('../fonts/Poppins-BlackItalic.ttf') format('truetype');
  }
  
  @font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/Poppins-Bold.ttf') format('truetype');
  }
  
  @font-face {
    font-family: 'Poppins';
    font-style: italic;
    font-weight: 700;
    src: url('../fonts/Poppins-BoldItalic.ttf') format('truetype');
  }
  
  @font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 800;
    src: url('../fonts/Poppins-ExtraBold.ttf') format('truetype');
  }
  
  @font-face {
    font-family: 'Poppins';
    font-style: italic;
    font-weight: 800;
    src: url('../fonts/Poppins-ExtraBoldItalic.ttf') format('truetype');
  }
  
  @font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 200;
    src: url('../fonts/Poppins-ExtraLight.ttf') format('truetype');
  }
  
  @font-face {
    font-family: 'Poppins';
    font-style: italic;
    font-weight: 200;
    src: url('../fonts/Poppins-ExtraLightItalic.ttf') format('truetype');
  }
  
  @font-face {
    font-family: 'Poppins';
    font-style: italic;
    font-weight: 400;
    src: url('../fonts/Poppins-Italic.ttf') format('truetype');
  }
  
  @font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 300;
    src: url('../fonts/Poppins-Light.ttf') format('truetype');
  }
  
  @font-face {
    font-family: 'Poppins';
    font-style: italic;
    font-weight: 300;
    src: url('../fonts/Poppins-LightItalic.ttf') format('truetype');
  }
  
  @font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 500;
    src: url('../fonts/Poppins-Medium.ttf') format('truetype');
  }
  
  @font-face {
    font-family: 'Poppins';
    font-style: italic;
    font-weight: 500;
    src: url('../fonts/Poppins-MediumItalic.ttf') format('truetype');
  }
  
  @font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/Poppins-Regular.ttf') format('truetype');
  }
  
  @font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    src: url('../fonts/Poppins-SemiBold.ttf') format('truetype');
  }
  
  @font-face {
    font-family: 'Poppins';
    font-style: italic;
    font-weight: 600;
    src: url('../fonts/Poppins-SemiBoldItalic.ttf') format('truetype');
  }
  
  @font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 100;
    src: url('../fonts/Poppins-Thin.ttf') format('truetype');
  }
  
  @font-face {
    font-family: 'Poppins';
    font-style: italic;
    font-weight: 100;
    src: url('../fonts/Poppins-ThinItalic.ttf') format('truetype');
  }


/* Först definiera en ny CSS-variabel för den lila färgen */
:root {
  --bs-purple-rgb: 111, 66, 193; /* RGB-värde för lila */
}

body {
    font-family:'Poppins', Calibri, 'Trebuchet MS', sans-serif; 
}

.directory {cursor: pointer;}
ul {
list-style-type: none;
}
ul.breadcrumb a {
    color: #fff;
    text-decoration:none;
    background-color: #000 !important;
    padding:.2em .4em .2em .4em ;
    font-size:.8em;
    border-radius:.4em;
    margin-bottom:0;
    margin-top:.3em;
    display:inline-block;
    font-weight: 500;
}
ul.breadcrumb .activedir a {
    font-weight: 700;
}

#logoLink {
    color:var(--bs-body);
    text-decoration:none;
    font-weight:bold;
    font-size:.9em;
    display: block;
    padding: 1em;
    background-color: #000;
    border-radius: .25rem;
}
.breadcrumb-item+.breadcrumb-item::before {
    padding-right:unset;
}

.breadcrumb-item+.breadcrumb-item::before {
  content: var(--bs-breadcrumb-divider, " / ");
  margin-top:4px;
}

#player,audio {
    height:3em;
    width:100%;
    border-radius:0;
}
audio {
    border-radius: 0; /* Försök att sätta raka hörn */
  }
  
  /* För att anpassa ytterligare element inuti <audio> kan du behöva använda skugg-DOM selektorer, vilket inte alltid är tillåtet */
  
  .play-audio {
    border: 0px solid silver;
    display: block;
    padding-left: 2em;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23808080' viewBox='0 0 384 512'%3E%3C!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--%3E%3Cpath d='M73 39c-14.8-9.1-33.4-9.4-48.5-.9S0 62.6 0 80V432c0 17.4 9.4 33.4 24.5 41.9s33.7 8.1 48.5-.9L361 297c14.3-8.7 23-24.2 23-41s-8.7-32.2-23-41L73 39z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 16px 16px;
}
  
.play-audio.playing {
    border: 0px solid silver;
    display: block;
    padding-left: 2em;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23ffa500' viewBox='0 0 384 512'%3E%3C!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--%3E%3Cpath d='M73 39c-14.8-9.1-33.4-9.4-48.5-.9S0 62.6 0 80V432c0 17.4 9.4 33.4 24.5 41.9s33.7 8.1 48.5-.9L361 297c14.3-8.7 23-24.2 23-41s-8.7-32.2-23-41L73 39z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 16px 16px;
}

.skeleton-loader {
  margin: 40px 0 0 0;
  padding: 5px 0 0 0;
  /* max-width: 500px; */
}

.skeleton-line {
  height: 32px;
  background-color: #e0e0e0;
  border-radius: 4px;
  margin-bottom: 8px;
  animation: pulse .5s infinite ease-in-out;

}

.skeleton-line1 {
  width: 60%; /* Exempel: 300px av 500px max bredd */
}

.skeleton-line2 {
  width: 80%; /* Exempel: 400px av 500px max bredd */
}

.skeleton-line3 {
  width: 100%; /* Exempel: 500px av 500px max bredd */
}

.skeleton-line4 {
  width: 50%; /* Exempel: 250px av 500px max bredd */
}

.skeleton-line5 {
  width: 70%; /* Exempel: 350px av 500px max bredd */
}

@keyframes pulse {
  0% {
    background-color: #b2edff;
    opacity: .06;
  }
  20% {
    background-color: #0ebedd;
    opacity: .04;

  }
  50% {
    background-color: #d8ffd6;
    opacity: .03;

  }
  60% {
    background-color: #b2edff;
    opacity: .06;
  }
  80% {
    background-color: #0ebedd;
    opacity: .04;

  }
  100% {
    background-color: #d8ffd6;
    opacity: .03;

  }
}

/* Anpassningar för mindre skärmar (motsvarande Bootstrap "md" storlek och mindre) */
@media (max-width: 767.98px) {
  .user-list , .files-list {
    position: fixed;
    bottom: 0;
    z-index: 1030; /* Högre än standard för att säkerställa att den ligger över andra element */
    width: 100%; /* Full bredd */
    height: 60%; /* Justera enligt behov */
}
.user-list-list ,.files-list-list {
  position: fixed;
  bottom: 0;
  width: 100%; /* Full bredd */
  height: calc(60% - 32px); /* Justera enligt behov */
  overflow-y: auto; /* Aktiverar scrolling om innehållet överskrider höjden */
}



  .user-details,.files-details {
      position: fixed;
      top: 32px;
      z-index: 1030; /* Samma z-index för att säkerställa konsistens */
      width: 100%; /* Full bredd */
      height: calc(40% - 32px); /* Justera enligt behov */
      overflow-y: auto; /* Aktiverar scrolling om innehållet överskrider höjden */
  }
}

/* Anpassningar för större skärmar (större än Bootstrap "md") */
@media (min-width: 768px) {
  .user-details,.files-details {
      position: fixed;
      right: 0;
      top: 32px;
      width: 80%; 
      height: calc(100vh - 32px); /* Full skärmhöjd */
      overflow-y: auto; /* Aktiverar scrolling om innehållet överskrider höjden */
  }

  .user-list,.files-list {
      width: 20%;
      height: calc(100vh - 32px); /* Full skärmhöjd */
      position: fixed;
      left:0;
      top: 32px;
  }
  .user-list-list,.files-list-list {
    width: 100%;
    overflow-y: auto; /* Aktiverar scrolling för användarlistan */
    height: calc(100vh - 64px); /* Full skärmhöjd */
    overflow-y: auto; /* Aktiverar scrolling om innehållet överskrider höjden */

}
}
.usericon {
  font-size: .8em;
  opacity:.7;
}
.user-detail-link:hover,.files-detail-link:hover {
  background-color: #000;
  color:#fff !important;
}
.user-detail-link.active,.files-detail-link.active {
  background-color: #000; /* Exempelfärg, justera efter ditt tema */
  color: white;
}
.form-floating>.form-control-plaintext~label, .form-floating>.form-control:focus~label, .form-floating>.form-control:not(:placeholder-shown)~label, .form-floating>.form-select~label {
  transform: scale(.70) translateY(-.5rem) translateX(.15rem);
}
.form-floating>label {
  top: 0;
  left: 0;
  z-index: 2;
  height: 100%;
  padding: .7rem 0 0 .3rem;
}
.form-floating>.form-select,
.form-floating>.form-control-plaintext:focus, .form-floating>.form-control-plaintext:not(:placeholder-shown), .form-floating>.form-control:focus, .form-floating>.form-control:not(:placeholder-shown) {
  padding-top: 1.25rem;
  padding-bottom: .3rem;
}
.form-floating>.form-select,
.form-floating>.form-control, .form-floating>.form-control-plaintext, .form-floating>.form-select {
  height: unset;
  min-height: unset;
  line-height: 1.25;
}
.form-floating>.form-control, .form-floating>.form-control-plaintext {
  padding: 1rem 0 0 .3rem;
}
.form-floating>.form-select{
  padding: 1rem 0 .3rem .3rem;
}
.black-backdrop .modal-backdrop.show {
  opacity: 1 !important;
  background-color: #000 !important;
}
.modal-backdrop.show {
  opacity: 1 !important; /* Full opacitet */
  background-color: #000 !important; /* Svart bakgrundsfärg */
}
.directory-item {
  cursor: pointer;

}
.directory-item::before {
  font-family: 'Font Awesome 6 Pro';
  content:"\f07b";
  margin-right:.5em;

}
li.selected-dir .directory-item::before {
  font-family: 'Font Awesome 6 Pro';
  content:"\f07c";
  margin-right:.5em;

}

.directory-item-root::before {
  font-family: 'Font Awesome 6 Pro';
  content:"\2f";
  margin-right:.5em;

}
li.selected-dir .directory-item-root::before {
  font-family: 'Font Awesome 6 Pro';
  content:"\2f";
  margin-right:.5em;

}

.file-item-audio:before {
  content: "\f028"; /* FontAwesome ikon för audio */
  font-family: "Font Awesome 6 Pro";
  margin-right:.5em;
}

.video-item:before {
  content: "\f03d"; /* FontAwesome ikon för video */
  font-family: "Font Awesome 6 Pro";
  margin-right:.5em;
}

.image-item:before {
  content: "\f03e"; /* FontAwesome ikon för bilder */
  font-family: "Font Awesome 6 Pro";
  margin-right:.5em;
}

.document-item:before {
  content: "\f15c"; /* FontAwesome ikon för dokument */
  font-family: "Font Awesome 6 Pro";
  margin-right:.5em;
}

.text-item:before {
  content: "\f0f6"; /* FontAwesome ikon för textfiler */
  font-family: "Font Awesome 6 Pro";
  margin-right:.5em;
}
ul.tree li {
  font-size: 15px;
  border-radius: 6px;
}
ul.tree li:hover {
  font-size: 15px;
  background-color: rgba(255, 255, 0, 0.05);
  transition: background-color 0.3s ease;

}
.selected-dir,.selected-dir:hover,ul.tree li:active {
  background-color: #000 !important; 
  border-left: 4px solid #007bff;
}
.dirboxhead {
height:32px;
overflow: hidden;
}
.dirbox {
  height:calc(30vh - 68px);
  overflow-y: scroll;
}
.fileboxhead {
  height:32px;
  overflow: hidden;
  white-space: nowrap;
}
.filebox {
  height:calc(70vh - 68px);
  overflow-y: scroll;
  background-color: var(--bg-body-tertiary);
}
.selected-dir div {
padding-left:4px !important;
}
ol, ul {
  padding-left: 1rem;
}
.dirbox > ul.tree:first-of-type,.filebox > ul.tree:first-of-type {
  padding: 0;
}

#playlist .song-item {
  cursor: pointer;
}
.hidden { display: none; }
.hlyda-play-pause {
  width: 34px;
  height:34px;
  overflow: hidden;
  padding:0px;
  border:0;
  border-radius: 50%;
  font-size: 24px;
  background-color: #008000;
}
.songcontainer.playing .hlyda-play-pause:hover {
  background-color: rgb(180, 0, 180);
  scale:1.1;
}
.songcontainer.playing .hlyda-play-pause {
 background-color: rgb(180, 0, 180); /* Justera färgen efter ditt tema */
  animation: pulseAnimation 2s infinite ease-in-out;
}

@keyframes pulseAnimation {
  0%, 100% {
    transform: scale(1); /* Ursprunglig storlek */
    box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7); /* Startskugga */
  }
  50% {
    transform: scale(1.05); /* Lite större skala */
    box-shadow: 0 0 8px 0 rgba(255, 193, 7, 0.7); /* Utökad skugga */
  }
}



.progress-bar {
  box-shadow: 0 0 8px 0 rgba(255, 193, 7, 0.7); /* Utökad skugga */
}

ul#song-list {
  padding-left: 1rem;
  padding-right: 1.5rem;
  padding-top:3px;
  margin-top: 16px ;
}


.small {
  font-size: .8em;
}
.progresscontainer {
  background: rgba(0, 0, 0, 0.1);
}
.track-info {
  font-weight: 600;
}
.songcontainer:hover {
  border-radius: 4px;
  background-color:rgba(0, 0, 0, 0.1);
}
.songitem {
  background-size: 100% 40px; 
  background-position: center left;
  background-repeat:no-repeat;
  }
.playing {
  background-size: 100% 40px; 
  background-position: center left;
  background-repeat:no-repeat;
  }

html[data-bs-theme="dark"] .globalplayer  {
  background-color:rgba(0, 0, 0, 0.8);
}

 html[data-bs-theme="light"] .globalplayer  {
  background-color:rgba(255, 255, 255, 0.9);
}


.globalplayer {
  padding-top:16px;
}

.shadow-custom {
  box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.3);
}


#waveform .scroll .wrapper {
  margin-bottom: 11px;
}

.mypageicon {
  fill:#fff;
}

.waveform .scroll { 
  border: none !important; /* Ta bort denna rad senare när du inte längre behöver debug-borden */
  overflow: hidden !important; /* Döljer overflow, inklusive scrollbars */
  overflow-x: scroll !important; /* Tillåter horisontell scrolling */
  -ms-overflow-style: none !important; /* Internet Explorer och Edge */
  scrollbar-width: none !important; /* Firefox */
}

.waveform .scroll::-webkit-scrollbar {
  display: none !important; /* Chrome, Safari och Opera */
}

.text-purple {
  --bs-text-opacity: 1;
  color: rgba(var(--bs-purple-rgb), var(--bs-text-opacity)) !important;
}
.songitem {
  cursor: pointer;  
  border:2px solid transparent;
}

#maincontent {
  /* max-height: calc(100vh - 180px) !important; */
  overflow-y: auto;
}


.playing {
  --borderWidth: 5px;
  position: relative;
  border-radius: var(--borderWidth);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}


 html[data-bs-theme="dark"] .playing  {
  background: rgba(0, 0, 0, 1);
}

 html[data-bs-theme="light"] .playing  {
  background: rgba(255, 255, 255, 1);
}


.playing:after {
  content: '';
  position: absolute;
  top: calc(-1 * var(--borderWidth));
  left: calc(-1 * var(--borderWidth));
  height: calc(100% + var(--borderWidth) * 2);
  width: calc(100% + var(--borderWidth) * 2);
  background: linear-gradient(10deg, #008000, #ffa500, #008000, #009900, rgb(0, 85, 0), transparent, #ffa500, transparent);
  border-radius: calc(2 * var(--borderWidth));
  z-index: -1;
  animation: animatedgradient 20s ease alternate infinite;
  background-size: 300% 300%;
}


@keyframes animatedgradient {
	0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 50%;
	}
}
.text-success {
  --bs-text-opacity: 1;
  color: #16c916 !important;
}
.songitemdropdown:after {
  display: none;
}
li.mp3-item,
li.flac-item,
li.m4a-item,
li.aac-item,
li.wav-item,
li.ogg-item,
li.wma-item,
li.aiff-item,
li.opus-item {
  display: none;
}

li.mp4-item a  img  {
position: relative;
z-index: 1;
}

li.mp4-item  a::after {
text-decoration: none;
font-size: 3.5em;
padding-top:.11em;
text-align: center;
display: block;
content: "\f144";
font-family: 'Font Awesome 6 Pro';
position: relative;
width: 100px;
height: 100px;
top: -100px;
z-index: 2;
transition: color .2s linear;
}
 html[data-bs-theme="dark"] li.mp4-item  a::after  {
  background-color: rgba(0, 0, 0, .6);
  color:  orange;
}

 html[data-bs-theme="light"] li.mp4-item  a::after  {
  background-color: rgba(255, 255, 255, .4);
  color:  orangered;
}
html[data-bs-theme="dark"] li.mp4-item  a:hover::after {
color:  orangered;
}

html[data-bs-theme="light"] li.mp4-item  a:hover::after {
color:  red;
}