/* General Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  width: 100%;
}

:root {
  --navbar-bg: #fff;
  --navbar-text: #000;
  --page-bg: #f9f9f9;
  --page-text: #333;
  --icon-color: #000;
}

.dark {
  --navbar-bg: #181818;
  --navbar-text: #eee;
  --page-bg: #121212;
  --page-text: #eee;
  --icon-color: skyblue;
}


.hamburger,
.search-icon,
.close-search-button i,
.theme-toggle-icon {
  color: var(--icon-color);
  fill: var(--icon-color); /* for SVGs */
  transition: color 0.3s ease;
}

/* Optional: for <img> icons */
.theme-toggle-icon,
.skynet-logo,
.profile-pic {
  filter: var(--icon-filter, none);
}

/* Add inversion for dark mode if needed */
.dark .theme-toggle-icon,
.dark .skynet-logo,
.dark .profile-pic {
  filter: invert(1);
}

body {
     background-color: var(--page-bg);
  color: var(--page-text);
  transition: background-color 0.3s, color 0.3s;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
     background-color: var(--navbar-bg);
  color: var(--navbar-text);
  transition: background-color 0.3s, color 0.3s;
    padding: 10px 20px;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 1;
    /* border: 1px solid red; */
}

.theme-toggle-icon {
  width: 20px;
  height: 20px;
  filter: var(--icon-filter, none);
}

.nav-left,
.nav-center,
.nav-right {
    display: flex;
    align-items: center;
    margin-right: -10px;

}

.hamburger {
    font-size: 20px;
    background: none;
    border: none;
    cursor: pointer;
    margin-right: 10px;
}

.logo {
    height: 30px;
    margin-right: 10px;
}



.skynet-logo {
     width: 30px;
  height: 30px;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.2s;
    margin-top: -2px;
    vertical-align: middle;
}

.skynet-logo:hover {
    transform: scale(1.1);
    background-color: rgba(255, 0, 0, 0.1);
}

.brand-text {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: skyblue;
}

.dark .brand-text {
    color: #90cdf4;
}


.dark .sidebar {
  background-color: #121212;
  color: skyblue;
}

.dark .sidebar .sidebar-text,
.dark .sidebar .your-channel,
.dark .sidebar .channel-name {
  color: skyblue;
}

.dark .sidebar-icon {
  filter: invert(1); /* makes icons suitable for dark background */
}


.site-name {
    font-weight: bold;
    font-size: 18px;
}

.search-bar {
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 14px;
   width: 85%;              /* Reduced width */
  max-width: 300px;        /* Smaller max width */
  margin-left: 12px;       /* Slight shift to the right */
}

.search-button,
.close-search-button {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  margin-left: 10px;
}

.search-icon {
    margin-left: -25px;
    cursor: pointer;
    color: #888;
}

.nav-icon {
    margin: 0 10px;
    cursor: pointer;
}

.create-btn {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    padding: 6px 12px;
    border-radius: 20px;
    background: #f1f1f1;
    cursor: pointer;
    margin-right: 10px;
}

.create-icon {
    margin-right: 5px;
}

.profile-pic {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}


/* Mobile search behavior */
.middle-section.search-active {
  flex-grow: 1;
  justify-content: center;
}

/* Layout */
.main-layout {
    display: flex;
    height: calc(100vh - 60px);
}

/* Sidebar base styles */
.sidebar {
    width: 220px;
    transition: width 0.3s;
  background-color: #fff;
    padding: 10px;
    overflow-x: hidden;
      min-height: 100vh;
      transition: background-color 0.3s ease, color 0.3s ease;
}


.sidebar .sidebar-text,
.sidebar .your-channel,
.sidebar .channel-name {
  color: #333;
}


/* Collapsed sidebar */
.sidebar.collapsed {
    width: 60px;
}

.sidebar-profile-pic {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 10px;
    margin-left: 55px;
    transition: opacity 0.3s ease, filter 0.3s ease;
    cursor: pointer;

}


.sidebar-profile-pic:hover {
    opacity: 0.7;
    /* makes it semi-transparent */
    filter: brightness(0.9);
    /* slightly dim the brightness for depth */
}

/* Sidebar profile image shrink */
.sidebar.collapsed .sidebar-profile-pic {
    width: 40px;
    height: 40px;
    margin-left: -500px;

}


/* Hide text content when collapsed */
.sidebar.collapsed .your-channel,
.sidebar.collapsed .channel-name,
.sidebar.collapsed .sidebar-text,
.sidebar.collapsed .feedback-link .sidebar-text {
    display: none;
}



/* Sidebar link styles */
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    text-decoration: none;
}

.sidebar-link a {
    display: flex;
    align-items: center;
}

.sidebar-icon {
    width: 24px;
    height: 24px;
}

.sidebar-text {
    transition: opacity 0.2s ease;
}

.sidebar-link img.sidebar-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

/* Center icons when collapsed */
.sidebar.collapsed .sidebar-link {
    justify-content: center;
}

/* Make icons slightly bigger when collapsed */
.sidebar.collapsed .sidebar-link img.sidebar-icon {
    width: 28px;
    height: 28px;
    margin-left: -15px;
}

/* .sidebar.collapsed {
  width: 180px;
} */


.your-channel {
      margin-top: 12px;  /* ⬆ push it down from the profile pic */
  font-weight: bold;
  font-size: 14px
}

.channel-name {
  margin-top: 6px;   /* ⬆ space between 'Your Channel' and channel name */
      color: #666;
}

.your-channel,
.channel-name {
    text-align: center;
}




.sidebar-nav a {
    display: flex;
    align-items: center;
    margin-top: 17px;
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    color: #333;
}

.sidebar-nav img {
    width: 24px;
    height: 24px;
    margin-right: 12px;
}

.sidebar-nav hr {
    margin: 20px 0;
}

/* Divider */
.divider {
    width: 1px;
    background: #ddd;

}

/* Main Content */
.main-content {
    width: 75%;
    padding: 20px;
    overflow-y: auto;
    position: relative;
}

/* Upload Dialog */
.upload-dialog {
    position: fixed; /* ensure it's above everything */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 999; /* ABOVE the overlay */
  background-color: #1e1e1e; /* or whatever your dark bg is */
  padding: 20px;
  border-radius: 8px;
  width: 500px; /* or whatever your size is */
}
.upload-header {
    position: fixed;
    top: 20px;
    /* shift down from top of screen */
    left: 50%;
    transform: translateX(-68%);
    /* shift slightly right from center */
    width: 870px;
    max-width: 100%;
    background: #1a1a1a;
    color: white;
    /* make text/icons visible */
    padding: 20px;
    /* z-index: 10; */
    border-bottom: 1px solid #333;
    border-radius: 8px;
    box-sizing: border-box;
    z-index: 1000;
display: flex;
  align-items: center;
  justify-content: space-between; /* keeps children apart */
  overflow: visible; /* allow tooltips to show */
}




.upload-header h2 {
    margin: 0;
}


#uploadedVideoTitle {
  flex: 1;
  font-size: 18px;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
  padding-right: 16px;
}

.upload-icons {
    display: flex;
    /* justify-content: flex-end; */
    /* Keeps them aligned to the right */
    align-items: center;
    /* Ensures vertical alignment */
    gap: 15px;
    /* Even spacing between icons */
    /* padding-right: 20px; */
    /* Optional: add some breathing room from the edge */
      flex-shrink: 0; /* prevent shrinking */
}


.tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
      color: inherit;
}

/* Soul Search tooltip text in dark mode */
.dark .tooltip {
  color: skyblue;
}

.tooltip img {
    width: 20px;
    height: 20px;
}

.tooltiptext {
    visibility: hidden;
    width: max-content;
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 4px 8px;
    border-radius: 4px;
    position: absolute;
    z-index: 2;
    left: 20%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    white-space: normal;
    /* allow multi-line text */
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}


.tooltip .tooltiptext {
    visibility: hidden;
    max-width: 270px;
    background-color: #333;
    color: #fff;
    text-align: left;
    padding: 8px;
    border-radius: 4px;
    font-size: 14px;
    position: absolute;
    z-index: 10;
    /* bottom: 170%; */
    /* Position adjustments */
    top: 65%;
    /* move it further down */
    left: -30%;
    /* center it more */
    transform: translateX(-30%);
    /* shift it more to the right */
    opacity: 0;
    transition: opacity 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-align: left;
}


/* Dark mode: Soul Search becomes skyblue */
.dark .tooltip .tooltiptext {
  color: skyblue !important;
  background-color: white;
}

/* New styling for the heading and bullet list */
.tooltip-heading {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 8px;
    display: block;
    color: skyblue;
}

.tooltip-list {
    list-style-type: disc;
    padding-left: 20px;
    text-align: left;
    /* Changed from center */
    margin: 0;
}


.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}

.dark .tooltip .tooltiptext::after {
  border-color: #1a1a1a transparent transparent transparent;
}



.thumbnail-section .subtext {
    margin-bottom: 16px;
    /* adds space below the text */
    color: #ccc;
    font-size: 14px;
}


/* Style the "Learn more" link */
.thumbnail-section .subtext a {
    color: #7dd3fc;
    /* light blue / skyblue */
    text-decoration: none;
}

.thumbnail-section .subtext a:hover {
    text-decoration: underline;
    /* optional: underline on hover */
    color: #bae6fd;
    /* slightly lighter on hover */
}

.tooltip-list li {
    margin: 6px 0;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}





/* Upload Body */
.upload-body {
    text-align: center;
    padding: 30px 0;
}

.upload-icon img {
    width: 80px;
    height: 80px;
    cursor: pointer;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.upload-text {
    margin-top: 15px;
    font-size: 18px;
    font-weight: bold;
    color: skyblue;
}

.upload-subtext {
    color: #777;
    margin-top: 5px;
}

.select-files-btn {
    margin-top: 20px;
    padding: 10px 20px;
    font-weight: bold;
    background: #065fd4;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.terms {
    font-size: 12px;
    color: #777;
    margin-top: 20px;
    line-height: 1.5;
}

.terms a {
    color: #065fd4;
    text-decoration: none;
}






/* Channel Content */
.channel-content {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  color: skyblue;
    overflow-x: hidden; /* optional, to prevent scrollbars on outer container */
}

.channel-title {
  font-size: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 16px;
}


.channel-content,
.upload-dialog,
.upload-details-dialog {
  max-width: 100vw;
  box-sizing: border-box;
}


.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}

.filter-tabs::-webkit-scrollbar {
  display: none;
}

.filter-tabs button {
      padding: 6px 10px;
        white-space: nowrap;
          flex: 0 0 auto;
    border: 1px solid #ccc;
    background: #f1f1f1;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
}


.filter-tabs,
.content-table-scroll {
  max-width: 100%;
}


.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 15px 0;
}


.filter-bar img {
  width: 18px;
  height: 18px;
}


.filter-label {
  font-weight: 500;
}


.content-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  scrollbar-width: none; /* Firefox */
}

.content-table-scroll::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}



.content-table-header {
  display: flex;
  align-items: center;
  min-width: 750px; /* wide enough */
  font-size: 13px;
  gap: 10px;
}


/* Left header group */
.left-header {
  display: flex;
  align-items: center;
  flex: 2; /* or whatever width */
}



/* Right header group */
.right-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 8; /* wider */
}

/* Checkbox + Video takes up more space */
.content-table-header input[type="checkbox"] {
      flex: 0 0 auto;
  margin-right: 66px;
}

.content-table-header span {
  min-width: 100px;
  color: skyblue;
  font-weight: bold;
  white-space: nowrap;
  flex: 0 0 auto;
}


.header-video {
  flex-grow: 2;
  min-width: 180px;
  padding-left: 8x;
}

.header-visibility {
  margin-left: 40px;
}



.header-visibility,
.header-restrictions,
.header-date,
.header-views,
.header-comments,
.header-likes {
  flex-grow: 1;
}

/* Optional: consistent min-widths for layout alignment */
.header-visibility    { min-width: 120px; }
.header-restrictions  { min-width: 120px; }
.header-date          { min-width: 120px; }
.header-views         { min-width: 90px;  }
.header-comments      { min-width: 100px; }
.header-likes         { min-width: 140px; }

/* Stretch HR to full width */
.channel-content hr {
  border: 0;
  border-top: 1px solid #444;
  margin: 12px 0;
  width: 100%;
}


.filter-tabs button {
  color: rgb(29, 138, 29); /* or any color you prefer */
  background: transparent;
  border: none;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 12px;
  transition: color 0.2s;
}

.filter-tabs button:hover {
  color: red;
}


/* Content Video Channel*/

/* Rows */
.video-row {
  display: flex;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #ddd;
  min-width: 750px;
  gap: 10px;
}

/* ✅ Hover effect for full video row */
.video-row:hover {
  background-color: rgba(135, 206, 235, 0.1); /* light skyblue with some transparency */
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

/* Optional: smooth the appearance of each cell inside when hovered */
.video-left,
.video-right {
  transition: background-color 0.2s ease-in-out;
}

/* Left side in row */
.video-left {
  display: flex;
  align-items: center;
  flex: 2;
}

/* Thumbnail spacing */
.video-thumbnail {
  width: 160px;
  height: 90px;
  object-fit: cover;
  margin-left: 8px;
  border-radius: 4px;
}



/* Checkbox spacing */
.video-left input[type="checkbox"] {
  margin-right: 8px;
}



/* Span widths inside right section to align perfectly */
.video-right span {
  min-width: 100px;
  text-align: center;
  white-space: nowrap;
}



/* Vertical divider between left and right headers */
.vertical-divider {
  width: 1px;
  background-color: #444;
  height: 40px; /* height of header row */
  margin: 0 12px;
}

/* Right side in row */
.video-right {
  display: flex;
  flex: 8;
  justify-content: space-between;
  font-size: 0.9rem;
}

/* Each info item in right part */
.video-info-item {
  min-width: 80px; /* adjust per content */
  text-align: center;
}


/* Adjust specific min-widths for better alignment */
.visibility    { min-width: 120px; }
.restrictions  { min-width: 120px; }
.date          { min-width: 120px; }
.views         { min-width: 90px;  }
.comments      { min-width: 100px; }
.likes         { min-width: 140px; }




/* Shift visibility and restrictions details slightly to the right */
.video-right .visibility {
  padding-left: 70px;
}

.video-right .restrictions {
  padding-left: 50px;
}





/* Collapsed Sidebar */
.sidebar.collapsed {
    width: 60px;
    padding: 10px;
    transition: width 0.3s ease;
}

.sidebar.collapsed .sidebar-profile-pic {
    width: 30px;
    height: 30px;
    margin-left: 5px;
}

.sidebar.collapsed .your-channel,
.sidebar.collapsed .channel-name,
.sidebar.collapsed .sidebar-text,
.sidebar.collapsed hr,
.sidebar.collapsed a:not(:first-child):not(:last-child) {
    justify-content: center;
    display: none;
}

.sidebar.collapsed .sidebar-nav img {
    margin-right: 0;
    width: 28px;
    height: 28px;
}

.sidebar.collapsed .sidebar-nav {
    display: flex;
    flex-direction: column;
    align-items: center;

}


.sidebar.collapsed {
    width: 80px;

}

/* Expand main content width when sidebar is collapsed */
.main-content.expanded {
    width: calc(100% - 80px);
    transition: width 0.3s ease;
}

/* Shift divider to match new sidebar width */
.divider.shifted {
    margin-left: -10px;
    transition: margin 0.3s ease;
}

/* Tooltip wrapper for hamburger */
.hamburger-wrapper {
    position: relative;
    display: inline-block;
}

.hamburger-wrapper .tooltiptext {
    top: 35px;
    left: 95%;
    transform: translateX(-50%);
    background-color: #222;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 12px;
    color: #fff;
    visibility: hidden;
    position: absolute;
    z-index: 999;
}

.hamburger-wrapper:hover .tooltiptext {
    visibility: visible;
}


/* Tooltip wrapper */
.tooltip-wrapper {
    position: relative;
}

/* Tooltip content */
.tooltip-wrapper::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -2px;
    left: 40%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 12px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 999;
}

/* Show tooltip only when sidebar is collapsed and hovering */
.sidebar.collapsed .tooltip-wrapper:hover::after {
    opacity: 1;
}


.profile-tooltip-wrapper {
    position: relative;
    display: inline-block;
}

.profile-tooltip-wrapper a {
    text-decoration: none;
}

.profile-tooltip {
    visibility: hidden;
    position: absolute;
    bottom: -9px;
    left: 70%;
    transform: translateX(-50%);
    background-color: #222;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.profile-tooltip-wrapper:hover .profile-tooltip {
    visibility: visible;
    opacity: 1;
}


.profile-dialog {
  display: none;
  position: absolute;
  top: 60px;
  right: 20px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  width: 300px;
}

.profile-dialog.show {
  display: block;
}




.upload-error {
    margin-top: 1rem;
    padding: 0.5rem;
    background-color: #2f1e1e;
    color: #f87171;
    font-size: 0.9rem;
    border-radius: 6px;
}

.upload-error a {
    color: #60a5fa;
    text-decoration: underline;
}

.upload-progress {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: #cbd5e1;
    font-size: 0.95rem;
}

.upload-spinner {
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

.hidden {
    display: none;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


.upload-details-dialog {
    background: #121212;
    color: #fff;
    padding: 30px;
    margin-top: 20px;
    border-radius: 8px;
    display: none;
      width: 900px;
  max-width: 90%;
  max-height: 90vh;
    box-sizing: border-box;
    overflow-y: auto;
    position: relative;
}

.upload-details-dialog .upload-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

}

.upload-details-dialog .upload-steps {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.upload-steps {
    position: fixed;
    top: 60px;                           /* was 110px — now higher up */
    left: 50%;
    transform: translateX(-68%);
    width: 870px;
    max-width: 100%;
    background: #1a1a1a;
    display: flex;
    justify-content: space-evenly;
    text-align: center;
    gap: 10px;
    z-index: 1000;
    padding: 10px 0;
    border-bottom: 1px solid #333;
    border-radius: 6px;
}


.upload-steps .step {
    flex: 1;
    text-align: center;
    /* border-bottom: 2px solid gray; */
    cursor: pointer;
    border-bottom: 3px solid transparent;
    padding-bottom: 5px;
    transition: border-color 0.3s;
}


.upload-steps .step:hover {
    border-bottom: 3px solid #ccc;
}


.upload-details-dialog .step {
    position: relative;
    padding: 5px 10px;
    border-bottom: 2px solid gray;
}




.upload-details-dialog .step.active {
    border-color: #0f9d58;
}


.upload-steps .step.active {
    border-bottom: 3px solid green;
    font-weight: bold;
}


/* Red underline when blocked */
.upload-steps .step.blocked {
    border-bottom: 3px solid red !important;
}



/* Disable interaction */
.upload-steps.disabled .step {
    pointer-events: none;
    opacity: 0.5;
}




.details-container {
    display: block;
    /* reset any flex style */
    width: auto;
    /* natural width */
    max-width: 100%;
    transition: min-height 0.3s ease;
    min-height: 400px;
    box-sizing: border-box;
}


/* Ensure original styles on details-body */
.details-body {
    display: flex !important;
    gap: 30px !important;
}

/* Left side of dialog box */
.details-left {
    overflow-y: auto;
    max-height: 70vh;
    padding-right: 10px;
}
.details-right {
  position: relative;
  top: -5px;
  left: 20px;
  width: 45%;
  max-width: 350px;
  background-color: #1e1e1e;
  padding: 12px;
  border-radius: 10px;
  z-index: 10;

  display: flex;
  flex-direction: column;
  align-items: center;
}


.textarea-label {
    display: block;
    margin-bottom: 20px;
}

textarea {
    width: 100%;
    min-height: 60px;
    padding: 10px;
    background: #181818;
    border: 1px solid #333;
    color: white;
    resize: none;
    font-size: 14px;
}

.char-counter {
    font-size: 12px;
    text-align: right;
    color: #aaa;
    margin-top: 4px;
}

.thumbnail-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.thumbnail-box {
    border: 2px dashed #555;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    position: relative;
    flex: 1;
    min-height: 90px;
    min-width: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.thumbnail-box.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.thumbnail-tooltip {
  color: skyblue;
  font-weight: bold;
  font-size: 16px;
  position: absolute;
  top: 4px;
  right: 4px;
  cursor: pointer;
}


#uploadDetailsDialog {
    width: 900px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    /* make inner content scrollable */
    /* margin: -70px auto 0 auto; */
    margin: -60px auto;
    background: #1a1a1a;
    /* padding: 30px; */
    padding-bottom: 100px;
    /* height of fixed footer */
    padding-top: 80px;
    /* height of fixed header */
    border-radius: 10px;
    color: white;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    gap: 20px;
    position: fixed;
    /* ensure it can have a z-index */
    z-index: 1000;
    /* left: 0;
    right: 0; */
    /* raise it above default-stacking elements like <hr> */
}

.details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.details-body {
    display: flex;
    gap: 30px;
    margin-top: 10px;
}

/* Left side: form inputs */
.details-left {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.details-left textarea,
.details-left input {
    width: 100%;
    background: #2a2a2a;
    color: white;
    border: 1px solid #444;
    border-radius: 5px;
    padding: 10px;
}

/* Right side: video preview */
.details-right {
  transform: translate(-28px, -10px); /* X = left, Y = up */
  align-self: flex-start;
  width: 45%;
  max-width: 350px;
  background-color: #8a0303;
  padding: 12px;
  border-radius: 10px;
  z-index: 10;
}
#uploadedVideoPreview {
    width: 100%;
    max-width: 350px;
    border-radius: 6px;
    background-color: black;
}

.video-meta {
    background: #1f1f1f;
    border: 1px solid #333;
    border-radius: 8px;
    box-shadow: 0 0 6px rgba(135, 206, 250, 0.2);
    /* soft sky blue glow */
    padding: 15px 20px;
  width: 325px;         /* smaller width than before */
      max-width: 450px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}



.meta-section strong {
    display: block;
    margin-bottom: 4px;
    color: #eee;
    font-size: 14px;
}

.meta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    word-break: break-word;
    gap: 10px;
    font-size: 13px;
    color: #ccc;
}

.meta-button {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

#copyLinkBtn {
    background: #0f9d58;
    color: white;
    border: none;
    padding: 5px 12px;
    margin-top: -80px;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

#copyLinkBtn:hover {
    background: #0c7b45;
}

#videoTitleInput {
    min-height: 30px;
}

#videoDescriptionInput {
    min-height: 100px;
}

#videoLink {
    color: skyblue;
    font-size: 18px;
}

#videoFilename {
    color: skyblue;
    font-size: 18px;
}

.copy-success {
    color: #7dd3fc;
    /* sky blue */
    font-size: 13px;
    margin-top: 25px;
    text-align: center;
    transition: opacity 0.3s ease;
}

.hidden {
    display: none;
}



/* Optional: thumbnail styling */
.thumbnail-section {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.thumbnail {
    width: 100px;
    height: 60px;
    background: #333;
    border: 1px solid #555;
    border-radius: 4px;
}




.textarea-wrapper {
    background: #181818;
    border: 1px solid #333;
    border-radius: 5px;
    padding: 10px;
    position: relative;
}

.textarea-label-inside {
    color: #aaa;
    font-size: 13px;
    margin-bottom: 5px;
}

.textarea-wrapper textarea {
    width: 100%;
    background: transparent;
    border: none;
    color: white;
    font-size: 14px;
    resize: none;
    min-height: 50px;
    outline: none;
}

.tooltip-container {
    position: relative;
    display: inline-block;
}

/* .custom-tooltip {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 2px;
    background-color: #333;
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 12px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 10;
}

.tooltip-container:hover .custom-tooltip {
    opacity: 1;
} */

/* Container holding each playlist */
.playlist-entry {
    padding-right: -15px;
    border-bottom: 1px solid #ddd;
    font-family: Arial, sans-serif;
}

/* Style the checkbox */
.playlist-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: #007bff;
    /* or your theme color */
}


/* Title of the playlist */
.playlist-title {
    font-weight: 600;
    font-size: 14px;
    color: #222;
    margin-left: -8px;
    /* border: 1px dashed red; */
    /* max-width: 100ch; */
    max-width: 100%;
    /* ✅ allow full container width */

    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
    flex: 1;
    /* This helps it take up the remaining space */
}

/* Meta info like visibility and sort order */
.playlist-meta {
    font-size: 0.9em;
    color: #555;
    white-space: normal;
    word-break: break-word;
}


/* Metadata like visibility and sort */
#playlistList .playlist-meta {
    font-size: 12px;
    color: #666;
}


/* Prevent horizontal scroll in the entire dialog */
#playlistDialog .dialog-content {
    overflow-x: hidden;
    max-width: 100%;
}

/* The label to align checkbox and text horizontally */
.playlist-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 12px;
    border-bottom: 1px solid #e0e0e0;
    width: 100%;
    box-sizing: border-box;
}

.playlists-section {
    margin-top: 40px;
}

.playlists-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 12px;
}

/* Wrap title and meta in a vertical stack */
.playlist-text {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-left: 8px;
    flex: 1;
}



/* Styles the playlist entries inside the dialog */
#playlistList {
    max-height: 250px;
    overflow-y: auto;
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-sizing: border-box;

}


/* Each playlist entry container */
#playlistList label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #ddd;
    font-family: Arial, sans-serif;

}


/* Checkbox spacing */
#playlistList input[type="checkbox"] {
    margin-top: 4px;

}

/* Playlist title block */
#playlistList .playlist-title {
    font-weight: 600;
    font-size: 14px;
    color: #222;
    margin-left: -8px;


}


.playlists-subtext {
    font-size: 14px;
    color: rgb(110, 110, 110);
    margin-bottom: 8px;
}


.learn-more-container {
    text-align: center;
    margin-bottom: 20px;
}

.learn-more-link {
    color: skyblue;
    text-decoration: none;
    transition: text-decoration 0.2s;
}

.learn-more-link:hover {
    text-decoration: underline;
}


.select-btn {
    padding: 12px 20px;
    width: 300px;
    height: 50px;
    font-size: 15px;
    border: 1px solid #ccc;
    background: rgba(240, 240, 240, 0.85);
    cursor: pointer;
    border-radius: 6px;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.select-btn:hover {
    background: rgba(220, 220, 220, 0.9);
}


.select-btn .arrow {
    margin-left: 20px;
    font-size: 12px;
    opacity: 0.6;
}

/* Inner span for the title */
.select-btn .playlist-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    text-align: left;
}


.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.dialog-box {
    background: linear-gradient(to bottom right, #ffffff, skyblue);
    width: 500px;
    height: 400px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 25px 25px 20px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    position: relative;
    margin-top: -80px;
    max-height: 90vh;
    overflow: hidden;
}

/* Ensure footer stays pinned, content scrolls */
.dialog-content {
    overflow-y: auto;
    flex-grow: 1;
    padding-right: 8px;
}

.no-playlists {
    font-size: 18px;
    font-weight: 500;
    color: #333;
}

hr {
    border: none;
    border-top: 1px solid #ccc;
    margin-top: 0;
    margin-bottom: 20px;
}


/* Make sure footer buttons don't spill out */
.dialog-footer {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-top: 15px;
    gap: 10px;
    border-top: 1px solid #ddd;
    margin-top: 10px;
}

.oblong-btn {
    padding: 8px 18px;
    border: none;
    border-radius: 20px;
    background-color: #e0e0e0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.oblong-btn:hover {
    background-color: #d0d0d0;
}

.oblong-btn.blue {
    background-color: #007BFF;
    color: #fff;
}

.oblong-btn.blue:hover {
    background-color: #0066cc;
}

.create-popup {
    position: absolute;
    bottom: 60px;
    left: 0;
    background: #9f9e9e;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    width: 160px;
    z-index: 1100;
}

.popup-option {
    padding: 10px;
    width: 100%;
    border: none;
    background: none;
    text-align: left;
    font-size: 14px;
    cursor: pointer;
}

.popup-option:hover {
    background-color: #f5f5f5;
}

.icon {
    margin-right: 8px;
}

.hidden {
    display: none;
}


.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.modal-box {
    background: linear-gradient(to bottom right, #ffffff, skyblue);
    padding: 20px;
    border-radius: 8px;
    width: 500px;
    max-width: 90%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    font-family: 'Segoe UI', sans-serif;
    color: #222;
}


.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-family: 'Segoe UI Semibold', sans-serif;
    color: #003366;
    margin-bottom: 10px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.form-group {
    margin-top: 20px;
    position: relative;
}

textarea {
    width: 100%;
    padding: 10px;
    resize: none;
    border-radius: 6px;
    border: 1px solid #ccc;
    background-color: #f0f0f0;
    color: #000;
    font-family: inherit;
    box-sizing: border-box;
    position: relative;
}

#playlistDescription {
    height: 120px;
}

select {
    width: 100%;
    padding: 8px;
}

.char-count {
    font-size: 12px;
    color: #444;
    position: absolute;
    bottom: 10px;
    right: 12px;
    background: rgba(255, 255, 255, 0.8);
    padding: 2px 4px;
    border-radius: 3px;
}

.form-actions {
    text-align: right;
    margin-top: 20px;
}


.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
}

button#createPlaylistConfirmBtn {
    background-color: #007BFF;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: not-allowed;
    opacity: 0.5;
    transition: 0.3s;
}

button#createPlaylistConfirmBtn.enabled {
    cursor: pointer;
    opacity: 1;
}


#playlistDialog {
    position: fixed;
    /* or absolute if already */
    z-index: 1000;
    /* base modal */
}

#newPlaylistModal {
    position: fixed;
    /* or absolute */
    z-index: 1100;
    /* higher than playlistDialog */
}

.visibility-sorting-label {
    margin-top: 25px;
    font-weight: bold;
    font-size: 14px;
}


.select-row {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.select-row select {
    width: 50%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-family: inherit;
}

.select-row-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    font-weight: bold;
    font-size: 14px;
    padding: 0 1px;
}

.select-label-left {
    text-align: left;
}


.select-label-right {
    text-align: right;
}


/* Spinner Overlay */
.creating-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    color: #333;
    z-index: 10;
}

/* Spinner Circle */
.spinner {
    border: 4px solid #eee;
    border-top: 4px solid #003366;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    animation: spin 1s linear infinite;
    margin-right: 12px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}




/* COPPA */

.audience-section {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}


/* Red border around COPPA section */
.audience-question-block.error {
    border: 2px solid red;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
}

.audience-section h3 {
    font-size: 24px;
    font-weight: bold;
}

.audience-section p {
    font-size: 15px;
    color: skyblue;
    line-height: 1.5;
}


.required {
    color: red;
}

.hyperlink {
    color: #3ea6ff;
    text-decoration: none;
}

.info-box {
    width: 100%;
    padding: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: linear-gradient(to bottom right, #ffffff, skyblue);
    border-radius: 8px;
    box-sizing: border-box;
}

.info-icon img {
    width: 20px;
    /* adjust as needed */
    height: 20px;
    /* keep aspect ratio square */
    margin-top: 2px;
    /* optional tweak to align better with the text */
}


.info-box p {
    color: #222;
    /* Darker text for better contrast */
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

.info-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.radio-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.radio-option {
    display: flex;
    align-items: center;
    text-align: left;
    gap: 8px;
    /* Small spacing between radio and text */
    margin-bottom: 10px;
    /* Spacing between options */
    font-size: 15px;
    font-weight: 500;
    color: white;
    /* Make the text sky blue */
    white-space: nowrap;
    flex-wrap: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

}

.radio-option input[type="radio"] {
    margin: 0;
    padding: 0;
    vertical-align: middle;
    accent-color: skyblue;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid white;
    position: relative;
    cursor: pointer;
    /* Optional: style the radio button itself */
    transform: scale(1.1);
    /* Slightly enlarge the radio button */
}


.collapsible-toggle {
    background: none;
    border: none;
    padding: 10px 0;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #3ea6ff;
    /* Sky blue */
}

#ageArrow {
    color: #3ea6ff;
}

.age-restrict-info {
    margin-bottom: 16px;
    /* Adjust as needed (e.g. 20px or 24px) */
}


p.age-restrict-info {
    margin-bottom: 16px;
    /* Adjust as needed (e.g. 20px or 24px) */
}


.show-more {
    margin-top: 20px;
    background-color: #3ea6ff;
    border: none;
    color: white;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    padding: 8px 16px;
    border-radius: 20px;
    /* Pill shape */
    font-size: 14px;
    transition: background-color 0.3s ease;
    width: fit-content;
}

.show-more:hover {
    background-color: #1e90ff;
}

.show-more-text {
    color: gray;
    font-size: 14px;
    margin-top: 10px;
}

p.section-title {
    font-weight: bold;
    font-size: 1.1rem;
    /* adjust size to match your "Audience" style */
    margin-bottom: 8px;
    text-align: left;
    color: white;
}

.paid-promotion-label {
    display: flex;
    align-items: center;
    /* Vertically center checkbox and text */
    gap: 8px;
    /* Space between checkbox and text */
    cursor: pointer;
    /* So user knows it’s clickable */
    user-select: none;
    /* Optional: prevents accidental text selection on click */
}

.paid-promotion-label input[type="checkbox"] {
    /* Optional: control checkbox size */
    width: 18px;
    height: 18px;
}


.altered-radio-group {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    /* smaller vertical spacing */
    align-items: flex-start;
    /* align everything left */
}

.altered-radio-group .radio-option {
    display: flex;
    align-items: center;
    gap: 4px;
    /* less space between radio and text */
}

.altered-radio-group .radio-option input[type="radio"] {
    margin-right: 8px;
    /* space between radio and text */
}


/*BULLETS*/



ul li::marker {
    font-size: 1.5em;
    /* increase bullet size */
    color: #8a0303;
    /* optional: bullet color */
}


.altered-content-info {
    margin-top: 20px;
    /* space above the entire block */
    color: #fff;
    /* default text color white for better contrast */
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

.altered-content-info p {
    margin-bottom: 16px;
    text-align: left;
}

/* Smaller informational text */
.info-text {
    color: #ccc;
    font-size: 14px;
}


/* Special styling for the "concepts" paragraph */
.concepts-text {
    color: skyblue;
    font-size: 14px;
    margin-bottom: 20px;
    text-align: left;
}


/* Checkbox wrapper */
.checkbox-wrapper {
    margin-top: 21px;
    margin-bottom: 24px;
}

/* Checkbox + label inline, aligned left */
.checkbox-wrapper label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #ccc;
    font-size: 14px;
    user-select: none;
}

/* Checkbox input styling */
.checkbox-wrapper input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* TAGS SECTION */

.tags-section {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: pink;
}

.tags-input-wrapper {
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 8px;
    background-color: black;
    transition: border-color 0.2s ease;
    min-height: 48px;
}

.tags-input-wrapper.error {
    border-color: red;
}

.tags-input {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 6px;
    min-height: 40px;
    max-height: none;
    outline: none;
    cursor: text;
    color: skyblue;
    overflow-y: auto;
    overflow-x: hidden;
    word-break: break-word;
    white-space: normal;
}

#tagTypingArea {
    outline: none;
    min-width: 50px;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.tags-input:empty:before {
    content: attr(data-placeholder);
    color: #666;
}

.tag-chip {
    background-color: skyblue;
    font-weight: bold;
    color: whitesmoke;
    padding: 6px 12px;
    /* ⬅️ Increased padding */
    border-radius: 24px;
    /* ⬅️ Slightly larger curve */
    font-size: 16px;
    /* ⬅️ Increased font size */
    display: inline-flex;
    align-items: center;
    gap: 10px;
    /* ⬅️ More spacing between text and 
  white-space: nowrap; /* chip must stay in 1 line */
}

.tag-chip .remove-tag {
    cursor: pointer;
    font-weight: bold;
    color: #8a0303;
    font-size: 18px;
    /* ⬅️ Increased size of × */
    line-height: 1;
    /* ⬅️ Keeps the × vertically aligned */
}

.tags-char-counter {
    font-size: 13px;
    color: #aaa;
    text-align: right;
    /* margin-top: 4px; */
    margin-top: 0;
    /* previously: margin-top: 4px; */
}

.tags-error {
    font-size: 13px;
    color: red;
    margin-top: 4px;
}


.tags-commas {

    color: white;
    font-weight: bold;
}


.tags-controls {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
    /* margin-top: 4px; */
    margin-top: 0;
    /* previously: margin-top: 4px; */
    position: relative;
}

/* Optional fade-in animation */
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.tags-bottom-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 4px;
    gap: 10px;
}


.tags-btn {
    background-color: #222;
    border: 1px solid #666;
    color: #aaa;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    cursor: not-allowed;
    opacity: 0.4;
    transition: 0.2s ease;
}


.tags-btn:enabled {
    cursor: pointer;
    opacity: 1;
    color: white;
    border-color: #3ea6ff;
}


/* Tooltip styling */
.tags-btn[data-tooltip]:enabled:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 110%;
    right: 50%;
    transform: translateX(50%);
    background: #333;
    color: white;
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    animation: fadeIn 0.2s forwards;
    pointer-events: none;
    z-index: 10;
}


/* LANGUAGES */

.language-caption-section {
    margin-top: 40px;
    color: white;
}


.language-caption-section .section-title {
    font-weight: bold;
    color: white;
}

.language-caption-section .info-text {
    color: skyblue;
}

.select-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.select-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 220px;
    position: relative;
    flex: 1;
}

.select-wrapper.wider {
    min-width: 300px;
    flex: 2;
}

.select-label {
    color: white;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 6px;
}




.tooltip-wrapper {
    position: relative;
    display: inline-block;
    overflow: visible;
    /* ensure it doesn't clip */
    z-index: 10;
}

.tooltip-icon {
    background: #555;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 12px;
    color: white;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    cursor: help;
    transition: background 0.3s;
    position: relative;
    z-index: 2;
}

.tooltip-icon:hover {
    background: #777;
}

/* Tooltip box */
.custom-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    /* ensures spacing ABOVE */
    left: 50%;
    transform: translateX(-50%);
    background-color: #222;
    color: #eee;
    padding: 12px;
    border-radius: 4px;
    font-size: 13px;
    max-width: 360px;
    /* increased from 280px */
    min-width: 260px;
    /* optional: prevents ultra-thin tooltips */
    white-space: normal;
    word-wrap: break-word;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: none;
     pointer-events: none;
}



/* HELP tooltip only, separate from other tooltips */
.help-tooltip {
  position: absolute;
  background-color: #222;
  color: #eee;
  padding: 12px;
  border-radius: 4px;
  font-size: 13px;
  max-width: 360px;
  min-width: 260px;
  white-space: normal;
  word-wrap: break-word;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 9999;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.help-tooltip.visible {
  opacity: 1;
  pointer-events: auto;
}

.help-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}

/* Show tooltip on hover */
.tooltip-wrapper:hover .custom-tooltip {
    display: block;
}

.tooltip-link {
    color: #3ea6ff;
    text-decoration: none;
}

.tooltip-link:hover {
    text-decoration: underline;
}


.select-pair {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.select-group {
    position: relative;
    /* ✅ Add this */
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 250px;
    max-width: 400px;
}

.select-group label {
    font-weight: bold;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 6px;
}




.custom-select {
    background-color: #333;
    color: white;
    border: 1px solid #666;
    border-radius: 6px;
    padding: 10px 36px 10px 12px;
    font-size: 14px;
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
    position: relative;
}


.custom-select:hover {
    background-color: #444;
}

.custom-select:focus {
    outline: none;
    border-color: #3ea6ff;
}


.select-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 14px;
    color: #ccc;
}

.language-caption-section,
.select-pair {
    overflow: visible;
    /* optional, helps debugging */
}



/* Recording dates  */

/* Section Container */
.recording-section {
    margin-top: 2rem;
}



/* Calendar Popup */
.calendar-popup {
    margin-top: 0.5rem;
    background: #222;
    border: 1px solid #444;
    padding: 1rem;
    border-radius: 6px;
    color: white;
    position: absolute;
    z-index: 10;
    width: 250px;
}

/* Error in calendar */
.calendar-error {
    color: red;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}


/* Location Select */
.location-select {
    position: relative;
}

/* Location input box */
.location-input {
    background-color: #2c2c2c;
    color: white;
    border: none;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 6px;
}

/* Location results dropdown */
.location-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #333;
    border: 1px solid #555;
    max-height: 200px;
    overflow-y: auto;
    margin-top: 0.25rem;
    border-radius: 6px;
    z-index: 10;
}

.location-result {
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #444;
    color: white;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.location-result:hover {
    background-color: #444;
}

.location-result i {
    margin-right: 0.5rem;
}


/* License Types*/

.section-title {
    font-weight: bold;
    color: white;
    margin-bottom: 4px;
    font-size: 14px;
}



.select-container {
    position: relative;
    max-width: 400px;
    width: 100%;
}


/* License Select styled like other custom ones */
.license-native {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: #2c2c2c;
    color: white;
    border: none;
    border-radius: 6px;
    appearance: none;
    font-size: 14px;
}


/* Keep checkbox + label + tooltip inline */
.embed-checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 1rem;
}


.inline-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

/* Only increases width for the "Allow embedding" tooltip */
.allow-embed-tooltip {
    width: 300px;
    /* Or whatever width fits best */
}



/* Optional: Add space between select-groups if needed */
.select-pair .select-group {
    margin-bottom: 1.5rem;
    /* Adds space between each select-group */
}


/* Spacing after the description text under section titles */
.language-caption-section .info-text,
.recording-section .info-text {
    margin-bottom: 1rem;
    /* Space between description and next label */
}


.select-group label.videoLanguage {
    display: block;
    margin-bottom: 1.5rem;
}



.select-group label.select-label {
    display: block;
    margin-bottom: 1.5rem;
}


/* Add spacing between 'Recording date' label and its select */
.recording-section .select-label {
    display: block;
    margin-bottom: 1.5rem;
}



/* Add spacing between 'Video location' label and its select */
.recording-section .select-label {
    display: block;
    margin-bottom: 1.5rem;
}


.great-vines-remix {
    margin-top: 40px;
}



.remix-radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
    text-align: left;
}

.remix-title {
    color: white !important;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: left;
}

.remix-info {
    color: skyblue;
    text-align: left;
    margin-bottom: 24px;
}

.remix-learn-more {
    color: rgb(25, 82, 179);
    text-decoration: none;
}


.remix-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
}


.remix-option {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    color: white;
    text-align: left;
    margin-bottom: 12px;
}



.category-title {
    color: white !important;
    font-weight: bold;
    text-align: left;
    margin-bottom: 10px;
    font-size: 16px !important;

}

.category-info {
    color: skyblue;
    text-align: left;
    margin-bottom: 20px;
}



.category-select {
    width: 100%;
    padding: 10px;
    padding-right: 30px;
    font-size: 14px;
}




.comments-settings {
    margin-top: 50px;
}

.comments-title {
    color: white !important;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 10px;
    text-align: left;
}

.comments-info {
    color: skyblue;
    margin-bottom: 24px;
    text-align: left;
}

.comments-controls-row {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}







.select-container select.custom-select {
    width: 100%;
    padding: 20px 36px 12px 12px;
    font-size: 14px;
    background-color: #1e1e1e;
    color: white;
    border: 1px solid #555;
    appearance: none;
    border-radius: 4px;
}



.select-placeholder {
    position: absolute;
    top: 3px;
    left: 12px;
    font-size: 12px;
    color: gray;
    pointer-events: none;
    z-index: 2;
}



.small-select {
    flex: 1;
    min-width: 150px;
}

.full-width-select {
    width: 100%;
    margin-top: 20px;
}



.likes-checkbox-row {
    display: flex;
    align-items: left;
    gap: 10px;
    margin-top: 24px;
    text-align: left;
}

.likes-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.likes-label {
    color: white;
    font-size: 14px;
    cursor: pointer;
}

.likes-info {
    color: skyblue;
    font-size: 15px;
    /* or larger, like 16px or 18px */
}

.details-dialog-footer-hr {
    border: none !important;
    border-top: 1px solid red !important;
    margin-top: 1px;
}



/* Footer Video Processing*/
.upload-footer {
    position: fixed;
    bottom: 70px;                      /* shifted down from 60px */
    left: 50%;
    transform: translateX(-68%);       /* keeps it aligned */
    width: 880px;
    max-width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 20px;                /* increase vertical padding */
    background: #1a1a1a;
    z-index: 1001;
    box-sizing: border-box;
    border-top: 1px solid #1a1a1a;
    border-radius: 8px;
    color: white;
}


.footer-left-icons {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.status-icon img {
    width: 24px;
    height: 24px;
    opacity: 0.8;
}

.status-icon:hover img {
    opacity: 1;
}



/* Upload progress styling */
.upload-status {
    margin-left: 24px;
    min-width: 200px;
}

.upload-label {
    font-size: 12px;
    color: #ccc;
    margin-bottom: 4px;
}

.progress-bar-container {
    background-color: #444;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: #4ade80;
    /* Tailwind green-400 */
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 3px;
}

/* Next Button */
.footer-right-button .next-btn {
    padding: 8px 16px;
    background-color: #3b82f6;
    /* Tailwind blue-500 */
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.footer-right-button .next-btn:hover {
    background-color: #2563eb;
    /* Tailwind blue-600 */
}


.upload-header,
.upload-footer {
    display: none;
    /* hide initially */
}



/* Video elements Section container */
.video-elements-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 120px;
    min-height: 400px;
    z-index: 9999;
}

/* Titles */
.video-elements-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 4px;
    text-align: left;
}

.video-elements-subtitle {
    font-size: 14px;
    color: #ccc;
    text-align: left;
    margin-bottom: 30px;
}



/* Card Styles */
.video-elements-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #333;
  border: 1px solid #555;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 24px;
  width: 100%;
  opacity: 0.4;
  pointer-events: none;
  transition: all 0.3s ease;
  position: relative;
}

.video-elements-card.active {
  opacity: 1;
  pointer-events: auto;
  background-color: #4a4a4a;
}


/* Base style for always-enabled buttons */
.video-elements-card .card-add-button:not([disabled]) {
  background-color: #28a745; /* Bright green */
  color: white;
  cursor: pointer;
  opacity: 1;
  transition: background-color 0.3s ease, transform 0.2s ease;
}



.video-elements-card h3 {
    color: skyblue;
}


.video-elements-card p {
    color: #ccc;
}

/* Icon area */
.card-icon img {
    width: 40px;
    height: 40px;
    margin-right: 20px;
}

/* Content area */
.card-icon {
  display: flex;
  align-items: center;
  margin-right: 20px;
  flex-shrink: 0;
}

.card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-content h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: skyblue;
}

.card-content p {
    margin: 4px 0 0;
    font-size: 14px;
    color: #ccc;
}

.card-add-button {
  background-color: #666;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  cursor: not-allowed;
  opacity: 0.5;
  transition: all 0.3s ease;
  position: relative;
}


.card-add-button:not([disabled]):hover {
  background-color: #3ea6ff;
  opacity: 1;
  cursor: pointer;
}


/* Multiple buttons wrapper */
.card-actions {
  display: flex;
  gap: 10px;
}


/* 🔓 When enabled */
.video-elements-card.active .card-add-button:enabled {
  background-color: #1a90ff;
  cursor: pointer;
  opacity: 1;
}



/* ✨ Hover effect when enabled */
.video-elements-card.active .card-add-button:enabled:hover {
  background-color: #66b8ff;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.6);
}

/* Always enabled cards (End screen & Cards) */
.video-elements-card:nth-of-type(2),
.video-elements-card:nth-of-type(3) {
  background-color: rgb(90, 89, 89);
  opacity: 1;
  pointer-events: auto;
}



#tabSectionsWrapper>div {
    min-height: 400px;
    /* prevents it from collapsing */
    overflow: hidden;
}


.tab-section {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    min-height: 300px;
    /* 🔧 adjust based on content or modal size */
    padding-top: 20px;
}

.tab-section.active {
    display: block;
    opacity: 1;
}

#tabSectionsWrapper {
    min-height: 400px;
    /* prevents it from collapsing */
}

#videoElementsSection.active .video-elements-card {
    opacity: 0.4;
    pointer-events: auto;
}



/* Tooltip */
.subtitle-tooltip {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 6px;
  background: #222;
  color: #fff;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 12px;
  display: none;
  z-index: 99;
  white-space: nowrap;
}


.back-btn {
  background-color: #444;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
}

.back-btn:hover {
  background-color: #666;
}



#checksSection {
  padding: 20px;
  font-family: Arial, sans-serif;
}

/* Section title */
.section-title {
  margin-bottom: 16px;
  font-size: 24px;
}

/* Info paragraph (50% width) */
.info-text {
  width: 100%;
    color: skyblue;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* Hyperlink styling */
.learn-link {
  color: rgb(24, 98, 188);
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
}

/* Subheading */
.sub-heading {
  margin-top: 20px;
  margin-bottom: 8px;
}

/* Status */
.status-text {
  color: skyblue;
  font-size: 14px;
  margin-bottom: 24px;
}


.checks-header-container {
  position: relative;
  margin-bottom: 12px;
}



/* Header row with warning + checkmark */
/* Header with warning text */
.checks-header {
  position: relative;
}

/* Final warning paragraph */
.final-warning {
  color: skyblue;
  font-size: 14px;
  max-width: 80%;
  line-height: 1.6;
}

/* Checkmark icon */
.checkmark-icon {
  width: 24px;
  height: 24px;
  margin-left: 12px;
}

/* Styled horizontal line */
.styled-hr {
  border: none;
  border-top: 1px solid #ccc;
  margin: 16px 0;
}

/* Footer feedback link */
.checks-footer {
  display: flex;
  justify-content: flex-end;
}

.send-feedback {
  font-size: 13px;
  color: #3366cc;
  cursor: pointer;
  text-decoration: underline;
}

/* Checkmark positioned far right and shifted upward */
.checkmark {
  position: absolute;
  top: -60px; /* Adjust upward */
  right: 0;
}



/* Section spacing */
#visibilitySection h2 {
  margin-bottom: 12px;
}

.visibility-desc {
  margin-bottom: 24px;
  color: skyblue;
  font-size: 14px;
}

/* Layout wrapper */
.visibility-layout {
  display: flex;
    gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
}


/* Left column to stack both boxes vertically */
.visibility-left {
  display: flex;
  flex-direction: column;
  width: 50%;
}


/* General Box Styles */
.visibility-options {
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 16px;
  background: #1e1e1e;
  color: white;
  margin-bottom: 24px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

/* Highlighted text */
.highlight {
  font-weight: bold;
  color: #1e88e5;
}

/* Visibility radio groups */
.visibility-option {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.visibility-option input[type="radio"] {
  margin-right: 10px;
  margin-top: 2px;
}

.option-labels {
  display: flex;
  flex-direction: column;
}

.option-title {
  font-weight: bold;
  color: skyblue;
}

.option-sub {
  font-size: 13px;
  color: gray;
}

/* Premiere checkbox */
.premiere-checkbox {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 24px;
  position: relative;
}

.premiere-checkbox label {
  font-size: 14px;
  color: skyblue;
  margin-right: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Add spacing before the premiere checkbox */
.save-publish-content .premiere-checkbox {
  margin-top: 20px;
}

/* Tooltip icon and bubble */
.tooltip-icon {
  background: #f1f1f1;
  border: 1px solid #999;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 12px;
  color: #333;
  text-align: center;
  line-height: 16px;
  cursor: pointer;
  position: relative;
}

.tooltip-bubble {
  display: none;
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  color: #333;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 10px;
  font-size: 13px;
  width: 240px;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.tooltip-icon:hover .tooltip-bubble {
  display: block;
  margin: -10px;
}

.video-preview {
  width: 100%;
  max-width: 320px;    /* fits within max 350px container */
  border-radius: 8px;
  margin-bottom: 15px;
  background-color: black;

}



#visibilityCopyLinkBtn {
    background: #0f9d58;
    color: white;
    border: none;
    padding: 5px 12px;
    margin-top: -80px;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

#visibilityCopyLinkBtn:hover {
    background: #0c7b45;
}


#visibilityVideoLink {
  color: skyblue;
  font-size: 18px;
}


#visibilitySection .meta-button {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}


#visibilityVideoFilename {
  color: skyblue;
  font-size: 18px;
}




/* Header for each box */
.schedule-header, .save-publish-box h3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.save-publish-header {
   display: flex;
  flex-direction: column;
  align-items: flex-start; /* aligns both h3 and p left */
  gap: 8px; /* spacing between h3 and p */
  margin-bottom: 16px; /* space after header */

}

.save-publish-header > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}


.schedule-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
    margin-bottom: 16px;
}

/* Ensures the Schedule text stays left-aligned in a vertical column */
.schedule-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
    gap: 8px;
}


.schedule-content {
  position: relative;
}

/* Spacing below 'Schedule as Public' heading */
.schedule-content h3 {
  margin-bottom: 16px;
}

/* Make sure arrow aligns right */
.schedule-header .arrow {
  font-size: 18px;
  color: #ccc;
  cursor: pointer;
  margin-left: auto;
}


.arrow {
  font-size: 18px;
  color: #ccc;
  cursor: pointer;
  margin-left: auto;
}

/* Hidden Content */
.schedule-content.hidden {
  display: none;
}

.schedule-controls {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.calendar-button, .timezone-button {
  background: #333;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
}

.time-input {
  width: 80px;
  text-align: center;
  background: #333;
  color: white;
  border: none;
  padding: 8px;
  border-radius: 6px;
}


/* Space between controls and note */
.schedule-note {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 13px;
  color: gray;
}


/* Space above checkbox */
.schedule-content .premiere-checkbox {
  margin-top: 16px;
}

.save-publish-box.collapsed .save-publish-content {
  display: none;
}

.schedule-box.collapsed .schedule-content {
  display: none;
}




.save-publish-box.collapsed,
.schedule-box.collapsed {
  overflow: hidden;
  padding-bottom: 16px;
}



.save-publish-box.collapsed .save-publish-content,
.schedule-box.collapsed .schedule-content {
  display: none !important;
}




/* Shared popup styles (calendar, time, timezone) */
.popup {
  position: absolute;
  background-color: #2b2b2b;
  color: white;
  border: 1px solid #555;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  max-height: 200px;
  overflow-y: auto;
  z-index: 999;
  padding: 8px 0;
  min-width: 180px;
}

/* Items inside dropdowns */
.popup div {
  padding: 8px 12px;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

/* Hover effect */
.popup div:hover {
  background-color: #444;
}

/* Hide when not visible */
.popup.hidden {
  display: none;
}

/* Optional: smooth scroll on long lists */
.popup::-webkit-scrollbar {
  width: 6px;
}
.popup::-webkit-scrollbar-thumb {
  background-color: #666;
  border-radius: 4px;
}



#calendarPopup {
  bottom: 100%;
  left: 0;
  transform: translateY(-12px); /* Add spacing above */
}

#timePopup {
  bottom: 70%;
  left: 13%; /* Adjust based on layout */
  transform: translateY(-12px);
}

#timezonePopup {
  bottom: 70%;
  left: 50%; /* Adjust as needed */
  transform: translateY(-12px);
}



/* Info Guidance Box */
.visibility-info-box {
  background-color: #2a2a2a;
  border-radius: 10px;
  padding: 20px;
  margin-top: 32px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  color: white;
  width: 100%;
  box-sizing: border-box;
}


.visibility-info-box h3 {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 10px;
}


.info-highlight {
  color: #1e88e5;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin-bottom: 8px;
}



.info-note {
  font-size: 14px;
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 16px;
}

.info-note a.learn-link {
  color: #1e88e5;
  text-decoration: none;
}

.info-note a.learn-link:hover {
  text-decoration: underline;
}

.info-guidance-title {
  color: skyblue;
  font-size: 18px;
  margin: 20px 0 10px;
}


#visibilityDetailsRight {
  transform: translate(-28px, -80px); /* X = left, Y = up */
  align-self: flex-start;
  width: 45%;
  max-width: 350px;
  background-color: #8a0303;
  padding: 12px;
  border-radius: 10px;
  z-index: 10;
}



#uploadThumbBox img.thumbnail-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}


.thumbnail-preview-img {
  width: 100%;
  height: auto; /* Let it scale naturally with width */
  max-height: 100%; /* Prevent overflow if it's tall */
  object-fit: contain; /* Shows full image, keeps aspect */
  border-radius: 6px;
  display: block;
}




/* Red border for error */
.save-publish-box.error {
  border: 2px solid red !important;
}

/* Error tooltip */
.visibility-error-tooltip {
  background-color: #2c2c2c;
  color: #ff6b6b;
  padding: 8px 12px;
  border: 1px solid red;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 12px;
}

/* Hide tooltip */
.visibility-error-tooltip.hidden {
  display: none;
}

/* Disabled checkbox style */
.premiere-checkbox.disabled {
  opacity: 0.4;
  pointer-events: none;
}



/* NAV Inspire POPUP*/


.inspire-popup {
  position: absolute;
  top: 50px;
  right: 50px;
  background-color: #1e1e1e;
  border: 1px solid #333;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  padding: 8px 0;
  width: 160px;
  z-index: 1000;
}

.inspire-option {
  padding: 10px 16px;
  display: flex;
  align-items: center;
  color: skyblue;
  font-size: 14px;
  cursor: pointer;
  gap: 10px;
}

.inspire-option:hover {
  background-color: #2a2a2a;
}

.inspire-option i {
  width: 18px;
  text-align: center;
}

.hidden {
  display: none;
}




.upload-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: -20px; /* 👈 adds vertical space from the hr */
  margin-bottom: 12px;
}

.upload-title {
  margin: 0;
  font-size: 24px;
  color: skyblue;
}

.upload-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Fix tooltip alignment */
.upload-actions .tooltip {
  display: flex;
  align-items: center;
}

/* Make sure icons are the same size and aligned */
.upload-actions img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
  cursor: pointer;
}

/* Optional: move HR down a bit */
#uploadDivider {
  margin-bottom: -30px;
}



.lock-scroll {
  overflow: hidden;
}

.upload-body-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 998;
}

/* Lock scroll when modal is active */
body.lock-scroll {
  overflow: hidden;
}



.upload-body.drag-over {
  outline: 2px dashed #7dd3fc;
  background-color: rgba(125, 211, 252, 0.05); /* subtle skyblue tint */
}



.upload-multi-error {
  color: #ff6b6b;
  background: #2a2a2a;
  border: 1px solid #ff6b6b;
  padding: 10px;
  margin-top: 10px;
  border-radius: 4px;
  text-align: center;
  font-size: 14px;
}


.blocked-drag {
  cursor: not-allowed;
  opacity: 0.7;
  border: 2px dashed #f87171 !important;
}


.upload-body.blocked-drag {
  pointer-events: auto;
}



.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}







/* Large Desktop & Up */
@media (min-width: 901px) and (max-width: 1300px) {
      .channel-content {
    padding: 16px 20px;
  }

  .filter-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .filter-tabs::-webkit-scrollbar {
    display: none;
  }

  .filter-tabs button {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 6px 10px;
    font-size: 13px;
  }


  .content-table-header {
    font-size: 13px;
    gap: 8px;
  }

  .header-video {
    min-width: 160px;
        padding-left: 20px;
  }

  .header-visibility,
  .header-restrictions,
  .header-date,
  .header-views,
  .header-comments,
  .header-likes {
    min-width: 100px;
        margin-left: -10px;
  }

    .right-header .header-visibility {
    padding-left: 50px;
  }

   .right-header .header-restrictions {
    padding-left: 20px;
        margin-left: 20px;
  }


    .right-header .header-date {
    padding-left: 20px;
  }

    .right-header .header-views {
    padding-left: 25px;
  }

   .right-header .header-comments {
    padding-left: 10px;
  }


}



/* Medium screens: Tablets & Small Desktops (769px to 1300px) */
@media (min-width: 768px) and (max-width: 1300px) {

  /* Move upload dialog more left */
  .upload-details-dialog {
    position: relative;
    left: 20px;           /* shift dialog all the way left */
    width: 90vw;
    max-width: 900px;
    padding: 28px;
    box-sizing: border-box;
    border-radius: 10px;
    background-color: #121212;
  }
  /* Container inside dialog */
  .details-container {
    margin-left: 20px;
    margin-right: 12px;
    width: calc(100% - 32px);
    box-sizing: border-box;
  }


  /* Left and right details side */
  .details-left,
  .details-right {
    flex: 1;
    width: 50%;
    box-sizing: border-box;
  }

  /* Shift right side panel right and down */
  .details-right {
    position: relative;
    top: 25px;
    left: 35px;
    max-width: 370px;
    padding-left: 16px;
  }

 /* Adjust video meta */
  .video-meta {
    width: 340px;
    top: 25px;
  }

  #uploadedVideoPreview {
    max-width: 340px;
  }

  /* Upload header and footer: move more right */
  .upload-header,
  .upload-footer {
    width: 86%;
    margin-left: 80px;   /* pushed further right */
    margin-right: 8px;
    box-sizing: border-box;
        transform: translateX(-65%);

  }

  /* Footer tweaks: move right and slightly up */
  .upload-footer {
    margin-top: 8px;
        width: 90%;
                transform: translateX(-63%);


  }

  /* Upload steps: also move more right */
  .upload-steps {
    width: 86%;
    max-width: 900px;
    left: 50%;                    /* shifted further right */
    transform: translateX(-53%);
    top: 52px;
  }

}




/* === Small Tablets (601px to 768px) === */
@media (min-width: 600px) and (max-width: 768px) {
  .nav-left .logo-container {
    gap: 6px;
  }

  .brand-text {
    margin-left: 6px;
    font-size: 16px;
  }

  .nav-center {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
  }

  .nav-right {
    gap: 10px;
  }

  .search-bar {
    margin-left: 22px;
  }

  .header-video {
    padding-left: 20px;
  }

  .right-header .header-visibility {
    padding-left: 10px;
  }

  .right-header .header-restrictions {
    margin-left: -40px;
  }

  .right-header .header-date,
  .right-header .header-views,
  .right-header .header-comments {
    margin-left: -5px;
  }

  .right-header .header-likes {
    margin-left: 15px;
  }

  .help-tooltip {
    max-width: 220px;
    font-size: 12px;
    left: 290px !important;
  }

  /* === Upload Dialog Positioning === */
  .upload-details-dialog {
    position: relative;
    left: 36px; /* shift dialog a bit right */
    transform: none !important;
    width: 94vw;
    max-width: 740px;
    box-sizing: border-box;
    background-color: #121212;
    padding: 24px;
    border-radius: 10px;
  }

  /* === Inner Sections (Header, Steps, Footer) Alignment === */

  .details-container {
    margin-left: 16px; /* shift contents slightly right */
    margin-right: 8px;
    width: calc(100% - 24px);
    box-sizing: border-box;
  }

  /* === Fix Details Layout === */


  .details-left,
  .details-right {
    flex: 1;
    width: 50%;
    box-sizing: border-box;
  }

  /* Shift .details-right right and down */
  .details-right {
    position: relative; /* keep relative */
    top: 25px;    /* move down more (was -5px globally) */
    left: 30px;   /* shift further right (was 20px globally) */
    max-width: 350px;  /* keep max width */
    padding-left: 16px; /* add a little more left padding if needed */
  }


    /* Optional: adjust video meta width if needed */
  .video-meta {
    width: 320px;  /* slightly narrower or keep as is */
    top: 25px;
  }

  /* You can also adjust #uploadedVideoPreview width if needed */
  #uploadedVideoPreview {
    max-width: 320px;
  }

  /* === Optional: Thumbnail and Inputs === */
  .textarea-wrapper textarea,
  .thumbnail-box {
    max-width: 100%;
    width: 100%;
  }

  /* Narrower header and footer, shifted right moderately */
  .upload-header,
  .upload-footer {
    width: 85%;            /* Slightly less wide */
    margin-left: 95px;     /* Moderate right shift */
    margin-right: 8px;
    box-sizing: border-box;
  }

  /* Upload steps pushed further right via transform */
  .upload-steps {
    width: 87%;
    max-width: 740px; /* limit width on tablets */
    left: 60%;        /* shift slightly right from 50% */
    transform: translateX(-63%);  /* reduce negative translation */
    top: 50px;        /* shift it a bit higher */
  }


  .upload-footer {
    margin-left: 116px; /* push right more */
    margin-top: -17px;  /* move it up a bit */
    margin-right: 8px;
    box-sizing: border-box;
     width: 89%; 
    /* NO position or width changes */
  }
}










/* === Mobile (<= 600px) === */
@media (max-width: 600px) {

      .theme-toggle-icon-container {
    margin-left: 8px;
  }

    .profile-pic {
    width: 28px;
    height: 28px;
  }

  .create-btn {
   display: none;
  }
.search-bar {
    margin-left: 22px; 
}

  .channel-title {
    font-size: 20px;
  }

  .filter-bar {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }

  .filter-label {
    font-size: 13px;
  }


  .content-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .content-table-header {
    font-size: 13px;
    gap: 8px;
    min-width: 700px; /* or more if needed for all columns */
  }

 .content-table-header span {
    white-space: nowrap;
  }

  .content-table-header input[type="checkbox"] {
    margin: 0 16px 6px 0;
  }

  .header-video,
  .header-visibility,
  .header-restrictions,
  .header-date,
  .header-views,
  .header-comments,
  .header-likes {
    flex-shrink: 0;
        margin-left: 40px;
  }

   .filter-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100%;
    max-width: 100%;
  }


  .filter-tabs button {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 13px;
    padding: 6px 10px;
  }


   .filter-tabs::-webkit-scrollbar {
    display: none;
  }

  .nav-right {
  margin-left: auto;
  margin-right: 10px; /* shift left */
  gap: 10px;
  display: flex;
  align-items: center;
}

 .upload-details-dialog {
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  border-radius: 0;
    padding-left: 0;
  padding-right: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  background-color: #121212;
}


/* HEADER */
.upload-header {
  flex-direction: column;
  align-items: flex-start;
  left: 50% !important;
  transform: translateX(-50%) !important;
  gap: 8px;
}

.upload-header h2 {
  font-size: 16px;
  line-height: 1.3;
}

.upload-icons {
  flex-wrap: wrap;
  gap: 8px;
}

.saved-status {
  font-size: 12px;
}

/* STEPS */
.upload-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
  padding: 10px 0;
}

.upload-steps .step {
  font-size: 13px;
  padding: 6px 10px;
}

/* STACK LEFT & RIGHT */
.details-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.details-left,
.details-right {
  width: 100%;
}

/* TEXTAREAS */
.textarea-label-inside {
  font-size: 13px;
}

.textarea-wrapper textarea {
  font-size: 14px;
  padding: 6px;
  width: 100%;
  min-height: 60px;
}

.char-counter {
  font-size: 11px;
  margin-top: 4px;
}

/* THUMBNAILS */
.thumbnail-section strong {
  font-size: 14px;
}

.subtext {
  font-size: 12px;
}

.thumbnail-box {
  width: 90px;
  height: 70px;
  font-size: 11px;
  padding: 6px;
}




/* Horizontal rule */
.details-dialog-footer-hr {
  margin: 20px auto 10px auto;
  border: none;
  border-top: 1px solid #444;
  width: 88%; /* good to keep this */
}

/* Upload Footer wrapper */
.upload-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;

  max-width: 536px;          /* limit max width */
   width: calc(100% - 24px); /* 12px left + 12px right padding of parent */
               /* take full width up to max-width */
  box-sizing: border-box;
 padding-left: 20px;   /* keep padding inside */
  padding-right: 20px;
  margin-left: auto;
  margin-right: auto;
  overflow: visible;
}



/* Left icons and status */
.footer-left-icons {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding-left: 4px;  /* add small padding to prevent clipping */
  box-sizing: border-box;
}

/* Footer icons smaller */
/* To ensure icons do not get cut off */
.status-icon img {
  width: 16px;
  height: 16px;
  display: block;
}

.status-icon .tooltiptext {
  font-size: 11px;
}

/* Upload status container */
.upload-status {
  width: 100%;
  min-width: unset;
  padding-left: 4px; /* align with icons */
  box-sizing: border-box;
}

.upload-status .upload-label {
  font-size: 12px;
  margin-bottom: 4px;
}


/* Progress bar container */
.progress-bar-container {
  height: 6px;
  background: #333;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px; /* space below progress bar */
}

.progress-bar {
  height: 100%;
  background: #4ade80;
  transition: width 0.3s ease;
}



/* Next button container */
.footer-right-button {
  width: 100%;   /* full width */
  display: flex;
  justify-content: flex-end;  /* align button right */
}


.footer-right-button .next-btn {
  padding: 6px 14px;
  font-size: 13px;
}





/* UPDATED Mobile responsiveness might need to delete the above mobile responsiveness if these work*/



@media (max-width: 600px) {
  #uploadDetailsDialog {
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    margin: 0;
    padding: 16px 12px 100px 12px;
    border-radius: 0;
    box-sizing: border-box;
    position: fixed;
    top: 0;
    left: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  }

.upload-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
    padding: 12px 16px;
  width: 100%;
  box-sizing: border-box;
  background-color: #1a1a1a;
  gap: 12px;
    margin-bottom: 12px;
      position: relative;
}


/* Title on the left */
.upload-header h2 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  flex: 1; 
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
  min-width: 0; 
  padding-left: 14px;
  
}



 /* Right icons */
.upload-icons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Optional: size adjustments */
.upload-icons img {
  width: 20px;
  height: 20px;
}


hr {
  width: 100%;
  border: none;
  border-top: 1px solid #444;
  margin: 8px 0 12px 0;
}

  .upload-steps {
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
    
    justify-content: space-around;
    padding: 10px 0;
    position: static;
    transform: none;
    margin: 0;
  }

  .details-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
  }

  .details-left,
  .details-right {
    width: 100%;
    max-width: 100%;
    padding: 0;
    box-sizing: border-box;
  }

.details-right {
  width: 100%;
  padding: 0 0 8px 0; /* Bottom padding added here */
  background: transparent;
  transform: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}





/* VIDEO PREVIEW */
.video-preview {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 6px;
  display: block;
  margin: 0 auto 16px auto; /* ADD spacing beneath video */
}


  .video-meta {
    width: 100%;
    max-width: 100%;
    padding: 12px;
  }

  .details-body {
    flex-direction: column;
    gap: 20px;
  }

.upload-footer {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  max-width: 100vw;
  padding: 10px 16px;
  background-color: #121212;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1001;
  box-sizing: border-box;
}

.footer-left-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* center horizontally */
  align-items: center;
  gap: 8px;
  width: 100%;
}


  .footer-right-button {
    width: 100%;
    display: flex;
    justify-content: flex-end;
  }

  .footer-right-button .next-btn {
    font-size: 14px;
    padding: 8px 16px;
  }

  .progress-bar-container {
    margin-bottom: 6px;
  }


  
}



/* Make sure the thumbnail-box has a fixed size to contain both icon and text neatly */
.thumbnail-box {
  width: 100px;
  height: 120px;
  padding: 8px;
  border: 2px dashed #ccc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  position: relative; /* Needed for absolute-positioned tooltip inside */
  overflow: visible;  /* Make sure tooltip isn't cut off */
}

/* Shrink just the images inside .upload-icon */
.thumbnail-box .upload-icon img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

/* Shrink and style the label text */
.thumbnail-box span:not(.tooltip) {
  font-size: 12px;
  margin-top: 6px;
  text-align: center;
  line-height: 1.2;
  display: block;
}


/* Ensure uploaded thumbnail fits within the dashed box */
.thumbnail-box img.uploaded-thumbnail {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
}


#uploadDialog {
  position: fixed !important;
  top: 10vh !important;             /* Push it down from the very top */
  left: 50% !important;             /* Center horizontally */
  transform: translateX(-50%) !important;  /* Center it correctly */
  margin: 0 !important;             /* Reset any margins */
  padding-top: 8px !important;
  width: 95vw !important;           /* Optional: shrink width a bit for mobile fit */
}

}




@media screen and (min-width: 768px) {
  .upload-header,
  .upload-steps,
  .upload-footer {
    transform: translateX(-60%); /* or adjust to 32px, 40px if needed */  }
}

