/* sidebar.css – Modern Minimalist */
.sidebar {
  position: fixed;
  top: 68px;
  width: 14rem;
  height: 100%;
  background: linear-gradient(180deg, #2e2e2e, #1a1a1a);
  padding-left: 12px;
  overflow-y: auto;
  color: #e0e0e0;
  left: 0;
  bottom: 0;
}

/* Hide scrollbar */
.sidebar::-webkit-scrollbar {
  display: none;
}
.sidebar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.upload-button-wrapper,
.create-button-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Buttons */
.upload-button,
.create-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.5rem;
  background-color: #3a3a3a;
  color: #e0e0e0;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 4px;
  margin-top: 2rem;
}

.create-button {
  margin-bottom: 1.5rem;
  margin-top: 1rem;
}

/* Video Length Slider */
.lenght {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  width: 100px;
}

.lenght input[type="range"] {
  -webkit-appearance: none;
  width: 150px;
  height: 6px;
  background: #444;
  border-radius: 3px;
  outline: none;
}

.lenght input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #888;
  cursor: pointer;
  border: 2px solid #fff;
}

.lenght input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #888;
  cursor: pointer;
  border: none;
}

#duration-display {
  font-size: 16px;
  font-weight: bold;
  color: #e0e0e0;
  min-width: 30px;
  text-align: center;
}

/* Quality Buttons */
.quality button {
  color: #e0e0e0;
  background-color: #3a3a3a;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
}

/* Aspect Ratio */
.aspect-ratio button {
  color: #e0e0e0;
  background-color: #3a3a3a;
  font-weight: 400;
  border: none;
  border-radius: 4px;
  padding: 0.5rem;
}

/* Category Container */
.category-button-container {
  height: 40rem;
  overflow-y: auto;
}

.category-button-container::-webkit-scrollbar {
  display: none;
}
.category-button-container {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.category {
  width: 95%;
  height: 30px;
  font-weight: 600;
  margin-bottom: 2px;
  display: block;
  color: #e0e0e0;
  background-color: #3a3a3a;
  border-radius: 4px;
}

/* Responsive Sidebar */
@media (max-width: 1024px) {
  .sidebar {
    width: 10rem;
  }

  
  .lenght input[type="range"] {
    -webkit-appearance: none;
    width: 6rem;
    height: 6px;
    background: #444;
    border-radius: 3px;
    outline: none;
  }
}

@media (max-width: 768px) {
  .sidebar {
    /* Initially off-screen to the left */
    transform: translateX(-100%);
    transition: all 0.01s ease;
    display: block; /* ensure it is rendered */
  }
  .sidebar.open {
    transform: translateX(0);
  }
}


/* --- Modal Styles for Create Button --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}
.modal-content {
  background: gray;
  width: 80%;
  max-width: 800px;
  height: 600px;
  padding: 1rem;
  border-radius: 8px;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
}
.modal-content p {
  color: white;
  margin-bottom: 1rem;
  text-align: center;
}
.modal-content button.upload-init {
  display: block;
  margin: 0 auto;
  padding: 0.5rem 1rem;
  background: #333;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.split-modal-container {
  position: relative;
  background: #000; /* or desired modal background */
  border-radius: 8px;
  overflow: hidden;
}

/* Style the close button in the splitscreen modal */
.split-modal-container .modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
  z-index: 10;
}

/* --- Upload Modal CSS --- */
.upload-modal {
	background-color: rgb(38,38,38);
	padding: 20px;
	border-radius: 8px;
	max-width: 800px;

  max-height: 80dvh;

  vertical-align: middle;
  overflow-y: scroll;
	margin: auto;
 
	box-shadow: 0 2px 8px rgba(0,0,0,0.3);
	position: relative;
	color: white;
}

/* Hide scrollbar */
.upload-modal::-webkit-scrollbar {
  display: none;
}
.upload-modal {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.upload-metadata {
	margin-bottom: 20px;
}
.upload-metadata label {
	display: block;
	margin-bottom: 4px;
	font-weight: bold;
}
.upload-metadata input,
.upload-metadata select {
	width: 95%;
	padding: 8px;
	margin-bottom: 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
  background-color: #3a3a3a;
  margin: auto 0 12px 0;
}
#models-container {
	margin-bottom: 10px;
  max-height: 200px;
  overflow-y: scroll;
}




/* Hide scrollbar */
#models-container::-webkit-scrollbar {
  display: none;
}
#models-container {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.model-field {
	display: flex;
	align-items: center;
	margin-bottom: 5px;
  
}
.model-field input {
	flex: 1;
  
}
.delete-model ,.delete{
	margin-left: 5px;
	background-color: #a73f34;
	color: #fff;
	border: none;
	padding: 2px 2px;
	border-radius: 4px;
	cursor: pointer;
  margin-bottom: .7rem;
  
}
#add-model {
	background-color: #50e38e;
	color: #fff;
	border: none;
	padding: 6px 12px;
	border-radius: 4px;
	cursor: pointer;
}
.file-upload-container {
	border: 2px dashed #ccc;
	padding: 20px;
	border-radius: 8px;
	position: relative;
}
.upload-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(80, 80, 80, 0.7);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	pointer-events: none;
	border-radius: 8px;
	opacity: 0;
	transition: opacity 0.3s ease;
}

#video-categories {
  background-color: #2b2b2b;
  border: none;
  display: flex;
  width: 95%;
  text-align: center;
  align-items: center;
  margin: 0.75rem auto ;
}

#video-categories option {
display: flex;  
justify-content: center;
align-items: center;
  margin:  0.15rem auto;
}

#video-categories option:hover {
  background-color: #bc3a88;
  }


/* Hide scrollbar */
#video-categories::-webkit-scrollbar {
  display: none;
}
#video-categories {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.upload-button-wrapper,
.create-button-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}
.file-upload-container.draggedover .upload-overlay {
	opacity: 1;
}
.upload-icon {
	width: 48px;
	height: 48px;
	fill: #fff;
}

/* .file-upload-button{
  display: none;
} */
.upload-instructions {
	color: #fff;
	font-size: 1.2rem;
}
.file-section {
	padding: 10px;
}
.file-header {
	text-align: center;
	padding: 10px;
	border-bottom: 1px dashed #ccc;
}
.file-button {
	background-color: #3a3a3a;
	color: #fff;
	border: none;
	padding: 8px 12px;
	border-radius: 4px;
	cursor: pointer;
}
.upload-title {
	text-align: center;
	margin: 15px 0;
}
.file-gallery {
	list-style: none;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.file-empty {
	text-align: center;
	flex: 1;
}
.empty-image {
	width: 80px;
	height: 80px;
}
.empty-text {
	color: #888;
	font-size: 0.9rem;
}
.file-footer {
	display: flex;
	justify-content: flex-end;
	margin-top: 20px;
	gap: 10px;
}
.upload-submit,
.upload-cancel {
	padding: 8px 16px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
}
.upload-submit {
	background-color: #bc3a88;
	color: #fff;
}
.upload-cancel {
	background-color: #a6959b;
	color: #fff;
}
/* HIDE CHOOSE GILES BUTTON AND NO FILES CHOSEN TEXT UPLOAD PANE */
.hidden {
  display: none;
}


/* Hover effects from original inline styles */
.hasImage:hover section {
	background-color: rgba(5, 5, 5, 0.4);
}
.hasImage:hover button:hover {
	background: rgba(5, 5, 5, 0.45);
}
#overlay p,
#overlay i {
	opacity: 0;
}
#overlay.draggedover {
	background-color: rgba(166, 59, 59, 0.7);
}
#overlay.draggedover p,
#overlay.draggedover i {
	opacity: 1;
}
.group:hover .group-hover\:text-blue-800 {
	color: #bc3a88;
}

