/* General styles */
.publisher-container .container-fluid {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.publisher-container .row {
    margin-bottom: 0.25rem !important;
}

.publisher-container .card {
    margin-bottom: 0.25rem;
}

.publisher-container .card-body {
    padding: 0.25rem;
}

.publisher-container .card-title {
    font-size: 0.875rem;
    margin-bottom: 0.125rem;
}

.publisher-container h6 {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.publisher-container .form-control,
.publisher-container .btn {
    padding: 0.125rem 0.25rem;
    font-size: 0.75rem;
}

.publisher-container .input-group {
    margin-bottom: 0.125rem;
}

.publisher-container .breadcrumb {
    padding: 0.125rem 0.25rem;
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
}

/* Video player styles */
.video-player-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.video-player-container {
    width: 80%;
    max-width: 1200px;
    position: relative;
}

.video-player-container video {
    width: 100%;
    height: auto;
}

.close-button {
    position: absolute;
    top: -40px;
    right: -40px;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

/* Dropdown styles */
.project-dropdown,
.type-dropdown {
    flex-grow: 1;
    width: 100%;
}

.project-dropdown .dropdown-toggle,
.type-dropdown .dropdown-toggle {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background-color: var(--bs-body-bg);
    border-color: var(--bs-border-color);
    color: var(--bs-body-color);
    padding: 0.25rem;
    font-size: 0.875rem;
    width: auto;
    min-width: 200px;
}

.project-dropdown .dropdown-toggle:hover,
.type-dropdown .dropdown-toggle:hover,
.project-dropdown .dropdown-toggle:focus,
.type-dropdown .dropdown-toggle:focus {
    background-color: var(--bs-tertiary-bg);
}

.project-dropdown .dropdown-menu,
.type-dropdown .dropdown-menu {
    max-height: 300px;
    overflow-y: auto;
    background-color: var(--bs-body-bg);
    border-color: var(--bs-border-color);
    padding: 0.125rem 0;
    min-width: 100%;
}

.project-dropdown .dropdown-item,
.type-dropdown .dropdown-item {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--bs-body-color);
    padding: 0.125rem 0.25rem;
    font-size: 0.875rem;
}

.project-dropdown .dropdown-item:hover,
.type-dropdown .dropdown-item:hover,
.project-dropdown .dropdown-item:focus,
.type-dropdown .dropdown-item:focus {
    background-color: var(--bs-tertiary-bg);
}

.project-dropdown .dropdown-toggle::after,
.type-dropdown .dropdown-toggle::after {
    display: none;
}

/* Preset styles */
#preset-select {
    width: 100%;
    max-width: 300px;
    margin-right: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background-color: var(--bs-body-bg);
    border-color: var(--bs-border-color);
    color: var(--bs-body-color);
    padding: 0.25rem;
    font-size: 0.875rem;
    width: auto;
    min-width: 200px;
}

#apply-preset-btn,
#publish-btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

@media (min-width: 768px) {
    .type-dropdown {
        flex-grow: 1;
    }
    .type-dropdown .dropdown-toggle {
        width: 100%;
    }
}

/* List styles */
.publisher-container .list-group-item, .input-group .form-control {
    padding: 0.25rem 0.5rem; /* Reduced padding */
    font-size: 0.75rem; /* Smaller font size */
    border: none;
    border-radius: 0.25rem; /* Added slight rounding */
    margin-bottom: 1px;
    background-color: var(--bs-tertiary-bg);
    color: var(--bs-body-color);
    display: flex;
    align-items: center;
    min-height: 28px; /* Set a minimum height to match variable items */
}

.input-group .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border: none;
    border-radius: 0.25rem; /* Added slight rounding */
    margin-bottom: 1px;
    /* background-color: var(--bs-tertiary-bg); */
}

.input-group .btn:hover {
    background-color: red;
}

.publisher-container .list-group-item:hover {
    background-color: var(--bs-secondary-bg);
}

.publisher-container .list-group-item.active,
.publisher-container .list-group-item.active-version {
    background-color: var(--bs-primary);
    color: var(--bs-white);
}

.publisher-container .list-group-item.active:hover,
.publisher-container .list-group-item.active-version:hover {
    background-color: var(--bs-primary-dark);
}


#file-list, #result-list {
    max-height: 300px;
    overflow-y: auto;
}

.rename-template {
    width: 100%;
}

.file-management-grid {
    display: grid;
    gap: 1px;
    background-color: var(--bs-border-color);
    border: 1px solid var(--bs-border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.file-row {
    display: grid;
    grid-template-columns: auto 2fr 2fr auto;
    gap: 1px;
    align-items: center;
    background-color: var(--bs-body-bg);
}

.file-select,
.file-name,
.resulting-name,
.delete-file {
    padding: 0.25rem;
    font-size: 0.75rem;
    border: none;
    background-color: var(--bs-tertiary-bg);
    color: var(--bs-body-color);
}

.file-select {
    display: flex;
    justify-content: center;
    align-items: center;
}

.delete-file {
    background-color: var(--bs-danger);
    color: white;
    cursor: pointer;
    padding: 0.125rem 0.25rem;
    font-size: 0.75rem;
    line-height: 1;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.delete-file:hover {
    background-color: var(--bs-danger-dark);
}



/* Template helper styles */
#template-helper-toggle {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    margin-bottom: 0.5rem;
}

#template-helper {
    display: none;
    margin-bottom: 1rem;
    font-size: 0.75rem;
    background-color: var(--bs-border-color);
}

#template-helper table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 1px;
    table-layout: auto;
}

#template-helper th,
#template-helper td {
    padding: 0.25rem;
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    border: none;
}

#template-helper .syntax {
    font-weight: bold;
    color: #007bff;
    cursor: move;
}

#templateSyntaxTable td {
    word-break: break-all;
}

/* Template editor styles */
.template-editor-container {
    margin-bottom: 1rem;
}

#template-editor {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    padding: 1rem;
}

#variable-list {
    margin-bottom: 1rem;
}

.variable-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0.5rem;
    background-color: var(--bs-tertiary-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 0.25rem;
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    min-height: 28px; /* Set a minimum height to match list items */
}

.variable-name {
    margin-right: 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.variable-value {
    max-width: 50%;
    overflow: hidden;
    text-overflow: ellipsis;
}

#variable-list .col {
    padding: 0.25rem;
}


/* Autocomplete styles */
.autocomplete-container {
    position: relative;
}

.autocomplete-items {
    position: absolute;
    border: 1px solid #d4d4d4;
    border-top: none;
    z-index: 99;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 200px;
    overflow-y: auto;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: none;
}

.autocomplete-items div {
    padding: 10px;
    cursor: pointer;
    background-color: #fff;
    border-bottom: 1px solid #d4d4d4;
}

.autocomplete-items div:hover {
    background-color: #e9e9e9;
}

.autocomplete-active {
    background-color: DodgerBlue !important;
    color: #ffffff;
}

/* Highlight selected rows */
.file-row.selected {
    background-color: var(--bs-primary-bg-subtle);
}

.pipeline-column {
    min-width: 150px;
    max-width: 250px;
    padding: 0 0.25rem;
    border: none; /* Remove border */
}

.pipeline-column .column-title {
    font-size: 0.75rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
    padding: 0.25rem;
    background-color: var(--bs-tertiary-bg);
    border-bottom: 1px solid var(--bs-border-color);
    border-radius: 0; /* Remove border radius */
}

.pipeline-list {
    font-size: 0.75rem;
}

.pipeline-list .list-group-item {
    padding: 0.25rem 0.5rem;
    border: none;
    border-radius: 0.25rem;
    margin-bottom: 1px;
    background-color: var(--bs-tertiary-bg);
    color: var(--bs-body-color);
}

.pipeline-list .list-group-item:hover {
    background-color: var(--bs-secondary-bg);
}

.pipeline-list .list-group-item.active {
    background-color: var(--bs-primary);
    color: var(--bs-white);
}

.pipeline-column .input-group-sm {
    margin-bottom: 0.25rem;
}

.pipeline-column .input-group-sm input,
.pipeline-column .input-group-sm button {
    font-size: 0.75rem;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
}

.asset-pipeline .row,
.shot-pipeline .row {
    margin-right: -0.25rem;
    margin-left: -0.25rem;
}

/* Add these styles to your existing CSS file */

#file-list {
    margin-top: 20px;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.file-name {
    flex-grow: 1;
    margin-right: 10px;
}

.remove-file {
    cursor: pointer;
    color: red;
}


.variable-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.variable-value {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 50%;
}

@media (max-width: 1200px) {
    #variable-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    #variable-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    #variable-list {
        grid-template-columns: 1fr;
    }
}

#template-input {
    min-height: 30px;
}



/* ... other styles ... */

/* Update these styles */
.publisher-container .list-group-item {
    padding: 0.25rem 0.5rem; /* Reduced padding */
    font-size: 0.75rem; /* Smaller font size */
    border: none;
    border-radius: 0;
    margin-bottom: 1px;
    background-color: var(--bs-tertiary-bg);
    color: var(--bs-body-color);
    display: flex;
    align-items: center;
    min-height: 28px; /* Set a minimum height to match variable items */
}

.publisher-container .list-group-item:hover {
    background-color: var(--bs-secondary-bg);
}

.publisher-container .list-group-item.active,
.publisher-container .list-group-item.active-version {
    background-color: var(--bs-primary);
    color: var(--bs-white);
}

.publisher-container .list-group-item.active:hover,
.publisher-container .list-group-item.active-version:hover {
    background-color: var(--bs-primary-dark);
}

/* Add these new styles */
.pipeline-column {
    min-width: 150px; /* Reduced from 200px */
    max-width: 250px; /* Reduced from 300px */
}

.variable-item {
    background-color: var(--bs-tertiary-bg);
    color: var(--bs-body-color);
    border-color: var(--bs-border-color);
}

#template-preview, #template-path, #template-name-autocomplete {
    background-color: var(--bs-tertiary-bg);
    color: var(--bs-body-color);
    border-color: var(--bs-border-color);
    min-height: 25px;
    white-space: pre-wrap;
    word-break: break-all;
    font-size: 0.75rem;
}

.variable-name code {
    color: var(--bs-primary);
}

/* ... existing styles ... */

.template-editor-container .list-group {
    position: absolute;
    z-index: 1000;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
}

.template-editor-container .list-group-item {
    cursor: pointer;
}

.template-editor-container .list-group-item:hover {
    background-color: #f8f9fa;
}

#file-drop-zone {
    border: 2px dashed #ccc;
    border-radius: 5px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

#file-drop-zone.drag-over {
    background-color: rgba(0, 123, 255, 0.1);
    border-color: #007bff;
    color: #007bff;
    transform: scale(1.02);
}

/* ... existing styles ... */

.pipeline-list-container {
    max-height: 400px; /* Adjust this value as needed */
    overflow-y: auto;
    border: none; /* Remove border */
    border-radius: 0; /* Remove border radius */
}

.pipeline-list {
    margin-bottom: 0;
}

.pipeline-list .list-group-item {
    border: none;
    border-radius: 0;
    margin-bottom: 1px;
    background-color: var(--bs-tertiary-bg);
    color: var(--bs-body-color);
}

.pipeline-list .list-group-item:first-child {
    border-top: none;
}

.pipeline-list .list-group-item:last-child {
    border-bottom: none;
}

/* Add custom scrollbar styles for webkit browsers */
.pipeline-list-container::-webkit-scrollbar {
    width: 8px;
}

.pipeline-list-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.pipeline-list-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.pipeline-list-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ... other styles ... */

/* Adjust the asset-pipeline container */
.asset-pipeline {
    background-color: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 0.25rem;
    overflow: hidden;
}

.asset-pipeline .row {
    margin-right: 0;
    margin-left: 0;
}

/* Add a subtle separator between columns */
.pipeline-column + .pipeline-column {
    border-left: 1px solid var(--bs-border-color);
}

.image-preview-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.image-preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.image-preview-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.image-preview {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.close-button {
    position: absolute;
    top: -40px;
    right: -40px;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
}