
#upload-log-container, #upload-metadata-container {
    background-color: var(--lgrey);
    width: 100%;
    padding-bottom: 2em;
}

.log-output {
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 10px;
    margin: 0 3em;
    background: #fdfdfd;
    
}

.progress-container {
    height: 10px;
    width: 100%;
    background: #eee;
    border-radius: 4px;
    margin-bottom: 5px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: orange;
    transition: width 0.3s ease;
}

.progress-bar.done {
    background: linear-gradient(to right, #4caf50, #8bc34a);
}


.metadata-table-wrapper {
    overflow-x: auto;
    margin-top: 2em;
    background-color: #eee;
}

.metadata-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.convert-span {
    color: var(--blue);
    cursor: pointer;
}
.metadata-table th,
.metadata-table td {
    padding: 0.5rem 0.75rem;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
    text-align: left;
    vertical-align: top;
    min-width: 12em;
}

.metadata-table th {
    color: var(--blue);
    white-space: nowrap;
    border: 0;
    background-color: var(--lgrey);
    
}

.metadata-table td a {
    color: #003399;
    text-decoration: underline;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 3px solid #ccc;
    border-top: 3px solid #555;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-top: 5px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}



/* Form blocks: even top area should feel structured */
.video-form-block {
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 1rem;
    background-color: #f9f9f9;
}


 .video-form-column-body {
    display: flex;
    gap: 5em;
 }
 
 .meta-log-container > div {
     min-height: 10em;
 }
 
/* Right column: stacked metadata + log */
.meta-log-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem; /* spacing between metadata and log */
  min-width: 50%;
}

/* Ensure consistent label sizing */
.video-form-label {
    flex: 0 0 200px;
    font-weight: bold;
    white-space: nowrap;
}

.video-form-label, .video-form-label-layout {
    color: var(--blue);
    font-weight: 700;
    padding: .5em;
}

.video-form-input {
    flex: 1;
    width: 100%;
}

.video-form-input input[type="text"] {
    width: 100%;
    box-sizing: border-box;
}

.video-form-column {
    display: flex;
    gap: 1rem;
    flex-direction: row;
    align-items: center;
}

.video-name-input label {
    color: var(--blue);
    padding: .2em;
}

.video-form-column > div {
    display: flex;
    flex-direction: column;
}


.video-form-input select,
.video-form-input input {
    padding: 0.5em;
    border: 1px solid #eee !important;
    border-radius: 2px !important;
    background-color: #fff;
    min-width: 100px;
}

.video-col-company {
    min-height: 18px;
}

/* Compact feature group section */
.video-feature-group {
    margin-bottom: 1.25rem;
    padding: 0.5rem 1rem;
    background-color: #f9f9f9;
}

/* Title */
.video-feature-category {
    font-weight: bold;
    margin-bottom: 0.4rem;
    color: var(--blue);
    padding: .5em;
}

/* Layout feature checkboxes in grid-like format */
.video-feature-item {
    display: inline-flex;
    align-items: center;
    margin-right: 1rem;
    margin-bottom: 0.4rem;
}
.video-filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0;
}

.video-filter-group {
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 0.5rem;
    min-width: 180px;
    background-color: #f9f9f9;
}

.filter-category-label {
    font-weight: bold;
    cursor: pointer;
    user-select: none;
}

.filter-options {
    margin-top: 0.5rem;
}

.hidden {
    display: none;
}

.filter-active-count {
    font-weight: normal;
    font-size: 0.8rem;
    margin-left: 0.4rem;
    color: #888;
}

.filter-options {
    margin-top: 0.5rem;
    transition: max-height 0.2s ease-out;
    overflow: hidden;
}

.filter-options.hidden {
    max-height: 0;
    padding: 0;
    margin: 0;
}

.video-filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0;
    align-items: flex-start; /* 🧠 critical: disables equal height rows */
}

.video-filter-group {
    display: inline-block;
    vertical-align: top;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 0.5rem;
    background-color: #f9f9f9;
    min-width: 180px;
    max-width: 220px;
    box-sizing: border-box;
}
