/* GLOBAL STYLING */
.page-container {
  gap: 16px;
}

.content-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  width: 100%;
  max-width: 700px;
  margin: 8px auto 0;
}

.content-section {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
}

.response-message {
  box-sizing: border-box;
  display: none;
  align-items: center;
  gap: 12px;
  color: #ffffffe3;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 500;
  border-radius: 8px;
  text-align: center;
  line-height: 1.5;
  font-size: 16px;
  padding: 6px 12px;
}

.response-message.valid {
  color: #84ff6b;
  background: #273325;
}

.response-message.invalid {
  color: #fff36b;
  background: #323124;
}

/* FORM ELEMENTS */
form {
  gap: 16px;
}

input,
textarea {
  width: 100%;
  padding: 10px;
  background-color: #1a1a1d;
  border-color: transparent;
}

textarea {
  resize: vertical;
  min-height: 60px;
  max-height: 200px;
}

.form-input {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  position: relative;
}

.form-input label {
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.form-input .counter {
  color: #ffffff9e;
  font-variant-numeric: tabular-nums;
}

/* File Drop Zone */
.file-drop-zone {
  box-sizing: border-box;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  border: 2px dashed rgba(var(--accent-rgb), 0.25);
  border-radius: 8px;
  text-align: center;
  line-height: 1.4;
  background: rgba(var(--accent-rgb), 0.06);
}

.drop-zone-text-main {
  font-size: 18px;
  font-weight: 500;
  margin: 0;
}

.status-icon.valid {
  color: #b3ffa8;
}

.status-icon.invalid {
  color: #fff9b0;
}

.drop-zone-text-sub {
  font-size: 14px;
  color: rgba(var(--accent-rgb), 0.55);
  margin: 4px 0;
}

.file-drop-zone.drag-over {
  border-color: rgba(var(--accent-rgb), 0.6);
  background-color: rgba(var(--accent-rgb), 0.12);
}

#choose-file {
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent);
}

.video-player {
  width: 100%;
  max-width: 468px;
  max-height: 300px;
  margin: 4px 0;
  border-radius: 8px;
  object-fit: contain;
  background: #14151c;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  outline: 1px solid #22242f;
}

/* admin only */
.admin-only {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-top: 4px;
}

.admin-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #4a4a52;
  font-size: 13px;
  white-space: nowrap;
}

.admin-divider::before,
.admin-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #4a4a52;
}

/* Dropdown Styling */
.creator-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: #16171f;
  border: 1px solid #3b3d52;
  border-radius: 8px;
  z-index: 50;
  max-height: 200px;
  overflow-y: auto;
  list-style: none;
  padding: 0;
  margin: 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

.creator-dropdown li {
  padding: 10px 12px;
  color: #f5f5f7;
  font-size: 14px;
  cursor: pointer;
  border-bottom: 1px solid #2a2b38;
  transition: background 0.2s;
}

.creator-dropdown li:last-child {
  border-bottom: none;
}

.creator-dropdown li:hover {
  background-color: #1e1f2b;
  color: #fff;
}

/* Container for the list of added tags */
.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  padding: 4px 0;
}

/* Tag Pills */
.tag-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #0f0f0f;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgb(7 7 9);
  font-size: 13px;
  background: var(--accent);
  animation: fadeIn 0.3s ease;
}

/* Remove 'X' button */
.remove-tag {
  cursor: pointer;
  font-weight: bold;
  color: #0f0f0f;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.remove-tag:hover {
  opacity: 1;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* UPLOAD VIDEO SECTION */
#upload-video.uploading {
  cursor: not-allowed;
}

.upload-progress {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.upload-progress-track {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.15);
}

.upload-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.upload-progress-percent {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}
