* {
    font-family: "Source Sans 3", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}



::-webkit-scrollbar-track {
  background: #1E1E1E;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: #555; 
  border-radius: 10px;
}


::-webkit-scrollbar {
  width: 0.5rem; /* Width of the vertical scrollbar */
  height: 0.5rem; /* Height of the horizontal scrollbar */
  border-radius: 10px;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden; /* Prevents global scrollbars */
}

.empty{
    display: flex;
    justify-content: center;
    align-items: center;
    color: #838383;
    font-size: 5rem;
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.folder-tree {
  padding: 0.5em;
  margin-top: 1em;
  padding-left: 1em;;
  display: flex;
  justify-content: space-between; /* Distribute space between folder tree and buttons */
  align-items: center; /* Align folder tree and buttons vertically in the center */
  color: #FAFAFA;
  margin-bottom: 0.5em;
  margin-left: 2em;
  margin-right: 2em;
  text-decoration: none;
  background-color: #1a1a1a;
  border-radius: 5px;
  border-left: 8px solid #027777 !important;
}

a:link{
  text-decoration: none!important;
}

.text-white {
  color:#FAFAFA;
  text-decoration: none !important;
}

.top-bar{
  display: flex;
  padding: 0.5em;
  width: 100%;
  height: 2.5em;
  background-color: #1a1a1a;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 0 0.8rem 0.1rem rgba(255, 255, 255, 0.2);
}

.loading-container {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: #1f1f1f;
}
.centered-svg {
  
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* z-index: -1; */
}

.logo{
  margin-left: 1.5em;
  height: 100%;
  margin-right: 3em;
}

.buttons {
  display: inline-flex;
  margin-left: auto;
  margin-right: 0.5em;
  flex-wrap: nowrap;
  overflow: hidden;
}

@container (width < 300px) {
  .button-1 .btn-text {
    display: none;
  }
}

.button-1 {
  background-color: #222222;
  border-radius: 0.8rem;         /* 20px */
  border: none;
  color: white;
  padding: 0.6rem 1.1rem;        /* 12px 24px */
  font-size: 1rem;                /* 16px */
  font-weight: 500;
  cursor: pointer;
  margin-right: 0.2em;
  /* box-shadow: 0rem 0.25rem 0.75rem rgba(0, 0, 0, 0.1); */
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  /* border: 2px solid rgb(44, 44, 44); */
  background: linear-gradient(-100deg, rgba(10, 10, 10, 1), rgba(25, 25, 25, 0.4));
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 16px 0px rgba(255, 255, 255, 0.1);
}

.button-1:hover {
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 15px -10px rgba(0, 255, 255, 0.8);
}

.button-1:focus {
  outline: none;
}



.cancel-button {
  background-color: #c50000;
  border-radius: 6px;
  border: none;
  color: white;
  padding: 0.5em 1em;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.cancel-button:hover {
  box-shadow: 0 5px 5px -2px #5c5c5c, 0 -5px 5px -2px #5c5c5c, 5px 0 5px -2px #5c5c5c, -5px 0 5px -2px #5c5c5c;
}

/* Thumbnail Cards */
.keyframe-container {
  z-index: 1;
  width: 350px;
  height: 200px;
  position: relative;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
  transition: opacity 0.5s ease-in;
  /* box-shadow: 0 5px 5px -2px #ffffff; */
}

.keyframe-container:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}


.video-info {
  padding-right: 1rem;
  /* display: flex; */
  justify-content: space-between;
  width: 100%;
  color: #FAFAFA;
}

.video-title {
  font-size: 1rem;
  margin-bottom: 0.1rem;
  text-align: left;
  color: white;
}

.video-duration, .video-size, .video-createdTime {
  margin-right: 0.1em;
  font-size: 12px;
  color: white;
}

/* Video Title on Hover */
.keyframe-container .video-info {
  bottom: 0px;
  position: absolute;
  font-size: 1.1rem;
  color: #e0e0e0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px); /* <-- the blur effect */
  -webkit-backdrop-filter: blur(4px); /* Safari support */
  padding: 5px 10px;
  width: 100%;
  visibility: visible;
  opacity: 1;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 2;
}


.keyframe-container:hover .video-info {
  visibility: hidden;
  opacity: 0;
}

.video-checkbox {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10; /* Ensure the checkbox appears above the keyframe */
}

.top-bar, .folder-tree {
  flex-shrink: 0; /* Prevents them from shrinking */
}

.parent-container {
  background-color: #10110F;
  display: flex;
  flex-direction: column; /* Align elements in a column */
  height: 100vh; /* Full viewport height */
}

.thumbnail_container {
  flex-grow: 1; /* Allows it to fill the remaining space */
  overflow-y: auto; /* Keeps internal scrolling for the thumbnail content */
  margin-left: 2rem;
  margin-top: 0.5rem;
  margin-bottom: 2rem;
  margin-right: 2rem;
  padding: 0.5rem 0.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(335px, 1fr));
  gap: 20px;
  background-color: #1a1a1a;
  border-radius: 5px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.05);
  transition: opacity 1s ease, transform 1s ease;
  padding-bottom: 2em;
}

.subfolder_container {
  clear: both;
  border: none;
  margin: 0 2rem;
  display: flex;
  opacity: 0;
  padding: 0.1rem 1rem;
  flex-wrap: wrap;
  background-color: #1a1a1a;
  border-radius: 5px;
  transition: opacity 1s ease, transform 1s ease;
}

@keyframes tealBlink {
  0%, 100% {
    box-shadow: none;
  }
  50% {
    box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 15px -10px rgba(0, 255, 255, 0.8);
  }
}
.teal-blink {
  animation: tealBlink 1s ease-in-out 3; /* duration × repeats */
}


.subfolder {
  margin-top: 0.3rem;
  margin-bottom: 0.3rem;
  background-color: rgb(34, 34, 34);
  border-radius: 0.4rem;        
  color: white;
  padding-left: 0.8rem;
  padding-right: 0.8rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-size: 1.2rem;                /* 16px */
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0rem 0.25rem 0.75rem rgba(0, 0, 0, 0.1); /* 0px 4px 12px */
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  background-size: auto 100%;
  background-repeat: no-repeat;
  background-position: center;
  margin-right: 0.5rem;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 16px 0px rgba(255, 255, 255, 0.1);
}

.subfolder:hover {
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 15px -10px rgba(0, 255, 255, 0.8);
}

.subfolder:focus {
  outline: none;
}


/* .subfolder {
  border-radius: 5px;
  text-shadow: 1px 1px 3px rgb(0, 0, 0);
  text-align: center;
  padding: 0.5em 1em;
  overflow: hidden;
  background-position: center center;
  background-size: cover;
  background-color: #2c2c2c;
  border: 2px solid rgb(119, 119, 119);
  margin: 0.3rem 0.15rem;
  color: #FAFAFA;
  vertical-align: top;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.subfolder:hover {
  border: 2px solid rgb(18, 204, 211);
}

.subfolder strong {
  font-size: 1.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
} */



.overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Dark background */
    z-index: 1000; /* Ensure it sits on top */
    justify-content: center;
    align-items: center;
}

.overlay iframe {
    background-color: rgb(27, 27, 27);
    margin: auto;
    display: block;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

.video-wrapper {
  position: relative;
  display: inline-block;
}

.arrow {
  position: absolute;
  top: 50%;
  font-size: 60px;
  color: white;
  cursor: pointer;
  user-select: none;
  padding: 5px 20px 0px 20px;
  z-index: 1001;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  transition: background 0.2s;
}

.arrow:hover {
  background: rgba(0, 0, 0, 0.6);
}

.left-arrow {
  left: -2em; /* 5em left from iframe */
}

.right-arrow {
  right: -2em; /* 5em right from iframe */
}

#videoTitle {
  position: absolute;
  top: -2.5em;
  width: 100%;
  text-align: center;
  color: white;
  font-size: 1.5em;
  font-weight: bold;
  z-index: 1002;
  pointer-events: none;
}


.checkbox-wrapper-46 input[type="checkbox"] {
    display: none;
    visibility: hidden;
  }

  .checkbox-wrapper-46 .cbx {
    position: absolute; 
    top: 10px; 
    left: 10px;
    margin: auto;
    -webkit-user-select: none;
    user-select: none;
    cursor: pointer;
  }
  .checkbox-wrapper-46 .cbx span {
    display: inline-block;
    vertical-align: middle;
    transform: translate3d(0, 0, 0);
  }
  .checkbox-wrapper-46 .cbx span:first-child {
    position: relative;
    width: 18px;
    height: 18px;
    border-radius: 3px;
    transform: scale(1);
    vertical-align: middle;
    border: 1px solid #9098A9;
    transition: all 0.2s ease;
  }
  .checkbox-wrapper-46 .cbx span:first-child svg {
    position: absolute;
    top: 3px;
    left: 2px;
    fill: none;
    stroke: #FFFFFF;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 16px;
    stroke-dashoffset: 16px;
    transition: all 0.3s ease;
    transition-delay: 0.1s;
    transform: translate3d(0, 0, 0);
  }
  .checkbox-wrapper-46 .cbx span:first-child:before {
    content: "";
    width: 100%;
    height: 100%;
    background: #50bbec;
    display: block;
    transform: scale(0);
    opacity: 1;
    border-radius: 50%;
  }
  .checkbox-wrapper-46 .cbx span:last-child {
    padding-left: 8px;
  }
  .checkbox-wrapper-46 .cbx:hover span:first-child {
    border-color: #50bbec;
  }

  .checkbox-wrapper-46 .inp-cbx:checked + .cbx span:first-child {
    background: #50bbec;
    border-color: #50bbec;
    animation: wave-46 0.4s ease;
  }
  .checkbox-wrapper-46 .inp-cbx:checked + .cbx span:first-child svg {
    stroke-dashoffset: 0;
  }
  .checkbox-wrapper-46 .inp-cbx:checked + .cbx span:first-child:before {
    transform: scale(3.5);
    opacity: 0;
    transition: all 0.6s ease;
  }

  @keyframes wave-46 {
    50% {
      transform: scale(0.9);
    }
  }

  @keyframes indeterminate {
    0% {
        left: -50%;
        width: 50%;
    }
    50% {
        left: 100%;
        width: 50%;
    }
    100% {
        left: 100%;
        width: 50%;
    }
}

  .individualProgressBar
  {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: rgba(0, 0, 0, 0.5); */
  }

  .progress-bar {
    width: 100%;
    background-color: #ddd; /* Background of the progress bar */
    overflow: hidden;
    height: 3%; /* Height of the progress bar */
}

  .progress-fill {
    display: block;
    width: 0%;
    background-color: blue;
    transition: width 0.2s ease;
    position: absolute; /* Position absolutely within the progress bar */
    left: 0; /* Default position */
    height: 3%;
  }

  .progress-fill.downloading 
  {
    background: linear-gradient(90deg, #ff6b35 0%, #f7931e 100%);
    box-shadow: 
      0 0 20px rgba(255, 107, 53, 0.8),
      0 0 40px rgba(255, 107, 53, 0.6),
      0 0 60px rgba(255, 107, 53, 0.4);
  }

  .progress-fill.transcoding {
    background: linear-gradient(90deg, #00d4ff 0%, #0099cc 100%);
    box-shadow: 
      0 0 20px rgba(0, 212, 255, 0.7),
      0 0 40px rgba(0, 212, 255, 0.5),
      0 0 60px rgba(0, 212, 255, 0.3);
  }

  .progress-fill.indeterminate {
    width: 30%;
    display: block;
    animation: indeterminate 2s infinite, pulse-glow 1.5s infinite alternate;
    background: linear-gradient(90deg, #ff6b35 0%, #f7931e 100%);
    box-shadow: 
      0 0 20px rgba(255, 107, 53, 0.8),
      0 0 40px rgba(255, 107, 53, 0.6),
      0 0 60px rgba(255, 107, 53, 0.4);
}

.progress-fill.error {
  display: block;
  width: 100%;
  background: linear-gradient(90deg, #ff0b0b 0%, #ff0000 100%);
  box-shadow: 
    0 0 20px rgba(255, 11, 11, 0.8),
    0 0 40px rgba(255, 11, 11, 0.6),
    0 0 60px rgba(255, 11, 11, 0.4);
  }

.progress-fill.queued {
  display: block;
  background: linear-gradient(90deg, #b300fa 0%, #f71ec8 100%);
  box-shadow: 
    0 0 20px rgba(179, 0, 250, 0.8),
    0 0 40px rgba(179, 0, 250, 0.6),
    0 0 60px rgba(179, 0, 250, 0.4);
  width: 100%;
}


.download-queue {
  z-index: 9999;
  position: fixed;
  bottom: 4em;
  right: 20px;
  width: 340px;
  background: #141414;
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  font-family: "Source Sans 3", sans-serif;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease, opacity 0.3s ease;
  background: rgba(40, 40, 40, 0.75); /* frosted glass */
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  transform: translateY(150%); /* hidden by default */
  opacity: 0;
  pointer-events: none;
}

.download-queue.open {
  transform: translateY(0);
  opacity: 0.98;
  pointer-events: auto;
}

#queueHeader {
  padding: 12px 16px;
  background: #2a2a2a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#queueHeader span:first-child {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#queueHeader a {
  color: #ddd;
  font-size: 0.85rem;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #555;
  transition: all 0.2s ease;
}

#queueHeader a:hover {
  background-color: #ff4d4d;
  color: #fff;
  border-color: #ff4d4d;
  text-decoration: none;
}

#queueContent {
  padding: 12px 16px;
  max-height: 250px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Each file entry */
.file-download {
  background-color: #1d1d1d;
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: inset 0 0 4px rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
  transition: background-color 0.2s ease;
}

.file-download:hover {
  background-color: #353535;
}

.file-name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  flex: 1;
  margin-right: 10px;
}

.progress-circle {
  position: relative;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.circle-bg,
.circle-progress {
  stroke-width: 4;
}

.circle-bg {
  stroke: #444;
}

.circle-progress {
  stroke: #12cdd3;
  stroke-dasharray: 113.1; /* Will override below */
  stroke-dashoffset: 113.1;
  transition: stroke-dashoffset 0.5s ease;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

.progress-text {
  font-size: 11px;
  fill: white;
}



.cancel-icon {
  cursor: pointer;
  pointer-events: none;
}


.hidden {
    display: none;
}


@keyframes glowing {
  0% {
    box-shadow: 0 0 1px #ffff09, 0 0 1px #ffff09, 0 0 1px #ffff09, 0 0 1px #ff9900;
  }
  50% {
    box-shadow: 0 0 5px #ff9900, 0 0 5px #ffff09, 0 0 5px #ff9900, 0 0 5px #ff9900;
  }
  100% {
    box-shadow: 0 0 1px #ffff09, 0 0 1px #ffff09, 0 0 1px #ffff09, 0 0 1px #ff9900;
  }
}

.unseenVideo {
  /* border-bottom: 3px solid #00ffff !important; */
  position: relative;
  color: black;
  overflow: hidden;
  box-shadow: 0 5px 5px -2px #00ffff;
}

/* Profile container */
.profile-container {
  position: relative;
  margin-right: 2.5rem;
  cursor: pointer;
}

/* Profile Picture */
#profile-pic {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgb(165, 165, 165);
  transition: box-shadow 0.3s;
}

#profile-pic:hover {
  border: 2px solid rgb(18, 204, 211);
}

/* Dropdown Content */
.dropdown-content {
  display: none; /* Initially hidden */
  position: absolute;
  right: 0;
  min-width: 160px;
  padding: 6px 0;
  background: rgba(40, 40, 40, 0.65); /* translucent */
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  z-index: 20;
  animation: fadeIn 0.1s ease-in-out;
}

.dropdown-content a {
  color: #f8f8f8;
  padding: 10px 16px;
  text-decoration: none;
  display: block;
  font-size: 14px;
  transition: background 0.25s, color 0.25s;
  border-radius: 6px;
  margin: 2px 6px;
}

.dropdown-content a:hover {
  background: rgba(6, 255, 255, 0.6);
  color: #ffffff;
}

/* Fade & slight slide animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.subfolder-context-menu {
  background: rgba(40, 40, 40, 0.65); /* frosted glass */
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  color: #FAFAFA;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  z-index: 1000;
  cursor: pointer;
  border-radius: 10px;
  padding: 6px 0;
  animation: fadeIn 0.2s ease-in-out;
}

.subfolder-context-menu div {
  padding: 0.5em;
  transition: background 0.25s, color 0.25s;
  border-radius: 6px;
  margin: 2px 6px;
}

.subfolder-context-menu .menu-item:hover,
.subfolder-context-menu .submenu-item:hover {
  background: rgba(6, 255, 255, 0.6);
  color: #ffffff;
}

/* Reuse the same subtle animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Make room for arrow */
.subfolder-context-menu .menu-item.has-submenu {
  position: relative;
  padding-right: 26px;
}

/* Sideways arrow */
.subfolder-context-menu .menu-item.has-submenu::after {
  content: "▸";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.85;
}

/* Invisible hover bridge to cover the tiny gap */
.subfolder-context-menu .menu-item.has-submenu::before {
  content: "";
  position: absolute;
  top: 0;
  right: -8px;          /* extend beyond the item */
  width: 12px;          /* bridge width */
  height: 100%;
  /* no background – it's invisible, but it's part of the hover hitbox */
}

/* Submenu: match your frosted look */
.subfolder-context-menu .submenu {
  position: absolute;
  top: 0;
  left: calc(100% - 8px);   /* overlap by 8px to kill the gap */
  min-width: 220px;
  padding: 6px 0;
  display: none;
  z-index: 1100;

  background: rgba(40, 40, 40, 0.65);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  color: #FAFAFA;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  border-radius: 10px;
}

/* Show submenu on hover */
.subfolder-context-menu .menu-item.has-submenu:hover > .submenu {
  display: block;
}

/* Items inside submenu (inherits your hover glow) */
.subfolder-context-menu .submenu .submenu-item {
  padding: 0.5em;
  border-radius: 6px;
  margin: 2px 6px;
  white-space: nowrap;
}
.subfolder-context-menu .submenu .submenu-item.new { font-weight: 600; }

/* Separator inside submenu */
.subfolder-context-menu .submenu .submenu-sep {
  height: 1px;
  padding: 0px;
  background: rgba(250, 250, 250, 0.12);
  margin: 6px 2px;
  border-radius: 1px;
}

/* If you flip the submenu to the left in JS, give it a tiny overlap on that side too */
.subfolder-context-menu .submenu.flip-left {
  left: auto;
  right: calc(100% - 8px);
}


/* Show dropdown when container is active */
.profile-container.active #dropdown {
  display: block;
}

.access-message
{
  text-align: center;
  color: white;
}

.request-access-button {
  background-color: #034f6d;
  border: none;
  color: white;
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.request-access-button:hover {
  background-color: #027777;
}

.request-access-button:disabled {
  background-color: #444;
}

.info-popup {
  position: fixed;
  bottom: 10em; /* Adjust to be above the download queue */
  right: 2em;
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  width: 20rem;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.info-popup.show {
  opacity: 1;
  transform: translateY(0);
}

.close-popup {
  cursor: pointer;
  font-weight: bold;
  margin-right: 1em;
}

.job-details {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
}

.job-text {
  display: flex;
  flex-direction: column;

}

.job-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

.job-item {
  line-height: normal;
  font-size: 90%;
  display: flex;
  background-color: #383838;
  padding: 15px;
  border-radius: 6px;
  color: #FAFAFA;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  width: 60%;
  align-items: flex-start;
  justify-content: space-between;
}

.job-queue-content {
  background-color: #2e2e2e;
  border-radius: 8px;
  padding: 20px;
  margin-top: 30px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.3);
}



.video-player-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background-color: #2e2e2e;
}

.video-player {
  width: 80%;
  max-width: 800px;
  border-radius: 8px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.3);
}

.controls {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.control-button {
  background-color: #034f6d;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.toggle-button {
  background-color: #034f6d;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 0.3em 3em;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.control-button:disabled {
  background-color: #444;
  cursor: not-allowed;
}

.control-button:hover {
  background-color: #027777;
}

.volume-slider {
  appearance: none;
  background: #034f6d;
  border-radius: 5px;
  height: 5px;
  width: 100px;
  outline: none;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  appearance: none;
  width: 15px;
  height: 15px;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
}

.time-display {
  color: #fff;
  font-size: 14px;
}

button:focus,
input:focus {
  outline: none;
}


.range-container {
  margin-top: 20px;
  position: relative;
  width: 1280px;
  height: 20px;
  background-color: #ddd;
  border-radius: 20px;
}

.range-bar {
  position: absolute;
  height: 100%;
  background-color: #4caf50;
}

.handle {
  position: absolute;
  top: 0;
  width: 5px;
  height: 20px;
  background-color: #007bff;
  cursor: pointer;
  transform: translateX(-50%);
}


.meta-icon {
  margin-bottom: 0.1em;
  width: 14px;
  height: 14px;
  vertical-align: middle;
  margin-right: 4px;
}
.video-metadata small {
  display: inline-flex;
  align-items: center;
  margin-right: 0.5em;
  font-size: 0.75rem;
}


.play-icon-overlay {
  position: absolute;
  bottom: 0.7em;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.play-icon {
  cursor: pointer;
  width: 2em;
  height: 2em;
  opacity: 0.9;
}

/* Hover effect to hide video info and show play icon */
.keyframe-container:hover .video-info {
  opacity: 0;
  visibility: hidden;
}

.keyframe-container:hover .play-icon-overlay {
  opacity: 1;
}

.play-icon {
  transform: scale(0.5);
  transition: transform 0.2s ease;
}
.keyframe-container:hover .play-icon {
  transform: scale(1.2);
}


.chat-box {
  z-index: 9999;
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 10em;
  background: #1f1f1f;
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  opacity: 0.6;
}

#chatHeader {
  padding: 12px 16px;
  background: #2a2a2a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-messages {
  padding: 12px 16px;
  max-height: 200px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.85rem;
}

.chat-input-container {
  display: flex;
  padding: 10px;
  background-color: #2a2a2a;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#chatInput {
  flex: 1;
  padding: 8px;
  background-color: #3a3a3a;
  border: none;
  border-radius: 6px;
  color: #fff;
  margin-right: 8px;
}

#chatInput:focus {
  outline: none;
}

.chat-input-container button {
  background-color: #027777;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
}

.chat-input-container button:hover {
  background-color: #03a0a0;
}

.search-container {
  position: relative;
  margin-left: 1.5rem;
  display: flex;
  align-items: center;
}

#searchInput {
  height: 1.2em;
  width: 25em;
  padding: 0.6rem 1rem 0.6rem 2.2rem;
  border-radius: 1rem;
  border: none;
  background: linear-gradient(-100deg, rgba(10, 10, 10, 1), rgba(25, 25, 25, 0.4));
  color: white;
  font-size: 1rem;
  font-weight: 500;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 16px 0px rgba(255, 255, 255, 0.1);
  transition: box-shadow 0.3s ease;
}

#searchInput::placeholder {
  color: #aaa;
}

#searchInput:focus {
  outline: none;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 15px -10px rgba(0, 255, 255, 0.8);
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #bbb;
  font-size: 0.9rem;
  pointer-events: none;
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  max-height: 200px;
  overflow-y: auto;
  background-color: #2a2a2a;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  list-style: none;
  margin: 0;
  padding: 0;
  z-index: 100;
}

.search-suggestions li {
  padding: 0.6rem 1rem;
  cursor: pointer;
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.search-suggestions li:hover {
  background-color: #027777;
}

.hidden {
  display: none;
}


.icon-only .btn-text {
  display: none;
}

/* Mosaic grid inside collection card */
.collection-card { position: relative; overflow: hidden; }

.collection-thumb {
  position: absolute;
  inset: 0; /* fill the card (350x200) */
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 2px;
  z-index: 1; /* behind info/overlay but above background */
  background: #111;
}

/* Each cell wrapper crops vertically to the cell height */
.collection-thumb .thumb-tile,
.collection-thumb .thumb-empty,
.collection-thumb .thumb-fallback {
  width: 100%;
  height: 100%;       /* each cell ~100px tall in a 2x2 of 200px card */
  overflow: hidden;   /* <-- does the actual cropping */
  background: #222;
}

/* The actual image: keep aspect, let it be tall, stick to the top */
.collection-thumb .thumb-tile img {
  display: block;
  width: 100%;
  height: auto;        /* natural tall sprite height */
  transform: translateY(0); /* shows the top; change to shift frame */
}

/* Optional alt layouts */
.collection-thumb .thumb-empty { background: #1e1e1e; }

.collection-thumb .thumb-fallback {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Make info bar readable over thumbnails */
.collection-card .video-info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0));
}

/* Keep play/rename overlay above everything */
.collection-card .play-icon-overlay { z-index: 3; }



/* ===== Modal: overlay & container ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  animation: modalFadeIn 160ms ease-out forwards;
}

@keyframes modalFadeIn {
  to { opacity: 1; }
}

.modal {
  width: min(520px, 90vw);
  background: rgba(40, 40, 40, 0.65); /* frosted glass to match menu */
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  color: #FAFAFA;
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.45);
  transform: translateY(8px) scale(0.98);
  opacity: 0;
  animation: modalPopIn 180ms cubic-bezier(.2,.8,.2,1) 60ms forwards;
  border: 1px solid rgba(255,255,255,0.06);
}

@keyframes modalPopIn {
  to { transform: translateY(0) scale(1); opacity: 1; }
}

/* ===== Modal layout ===== */
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 8px 18px;
}

.modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .2px;
}

.modal-close {
  background: transparent;
  border: none;
  color: #FAFAFA;
  opacity: .8;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  border-radius: 8px;
  padding: 4px 6px;
}
.modal-close:hover { opacity: 1; background: rgba(250,250,250,0.08); }

.modal-body {
  padding: 8px 18px 0 18px;
}

.modal-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 16px 18px 18px 18px;
}

/* ===== Form bits ===== */
.modal-label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 8px;
  opacity: .95;
}

.modal-input {
  width: 90%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(20,20,20,0.35);
  color: #FAFAFA;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.modal-input::placeholder { color: rgba(250,250,250,0.55); }
.modal-input:focus {
  border-color: rgba(6, 255, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(6, 255, 255, 0.22);
  background: rgba(25,25,25,0.45);
}

/* ===== Buttons ===== */
.btn {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(25,25,25,0.35);
  color: #FAFAFA;
  cursor: pointer;
  font-weight: 600;
  transition: background .2s, transform .04s ease, border-color .2s;
}
.btn:hover {
  background: rgba(250,250,250,0.08);
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(180deg, rgba(6,255,255,0.75), rgba(6,255,255,0.55));
  color: #001112;
  border: none;
  box-shadow: 0 8px 18px rgba(6,255,255,0.25);
}
.btn-primary:hover {
  filter: brightness(1.05);
}
.btn-primary:disabled {
  opacity: .6;
  cursor: not-allowed;
  box-shadow: none;
}

/* Small helper for error text */
.input-hint {
  font-size: 0.85rem;
  color: rgba(255,120,120,0.95);
  margin-top: 6px;
  min-height: 1.2em;
}

.icon-bar {
  position: absolute;
  top: 0.8em;
  right: 0.8em;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 15;
}

.info-icon { color: rgb(255, 146, 56);}
.downloaded-icon { color: rgba(255, 255, 255, 0.486); cursor: pointer; font-size: 1.1rem !important; }

.tooltip-info {
  position: absolute;
  left: 50%;
  top: 10%;
  transform: translateY(-50%);
  transform: translateX(-50%);
  width: 30em;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.85rem;
  line-height: 1.3;
  color: #fff;
  background: rgba(40,40,40,0.65);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s ease;
  z-index: 20;
  pointer-events: none;
  text-align: center;
}

.tooltip.tooltip-info.show {
  opacity: 1;
  visibility: visible;
}

