#quickviewNavigator {
    position: fixed;
	width: 300px;
    background-color: #fff;
    border-radius: 0px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
}

#quickviewNavigator.fixed {
    height: calc(100vh - 65px);
    top: 65px;
    width: 300px;
}

#quickviewNavigator.fixed-left {
    position: fixed;
    top: 65px;
    left: 0;
    height: calc(100vh - 65px);
    width: 300px;
    overflow-y: auto;
}

#quickviewNavigator.fixed-right {
    right: 0;
}

#quickviewNavigator.floating {
    left: auto;
    right: auto;
}

.quickview-content-wrapper {
    display: flex;
    flex-grow: 1;
    position: relative;
    overflow: hidden;
}

.quickview-summary {
    background-color: #f0f0f0;
    border-radius: 5px;
    font-size: 11px;
}

.summary-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.stat-box {
    width: 48%;
    text-align: center;
    background-color: #fff;
    padding: 5px;
    border-radius: 4px;
}

.stat-label {
    display: block;
    font-weight: 700;
    margin-bottom: 2px;
    font-size: 1.1em !important;
}

.stat-value {
    font-size: 14px;
    font-weight: 700;
}

.speaker-distribution {
    width: 100%;
    border-collapse: collapse;
    background-color: #000000;
    border-radius: 4px;
    color: white;
    font-weight: 700;
}

.speaker-distribution td {
    padding: 2px 5px;
    border-bottom: 1px solid #ddd;
}

.speaker-distribution td:last-child {
    text-align: right;
}

.quickview-search {
    width: 93% !important;
    padding: 5px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 11px;
}

.warning-icon {
    color: #ff0000 !important;
    margin-left: 5px;
}

.quickview-entry {
    transition: background-color 0.3s ease;
}

#quickviewContextMenu li {
    display: flex;
    align-items: center;
}

#quickviewContextMenu li i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.quickview-header {
    padding: 1px 10px 1px 20px;
    background-color: #000000;
    cursor: move;
    display: flex;
    justify-content: space-between;
    align-items: center;
	font-size: 1em;
	font-weight: 700;
	color: #ffffff;
    min-height: 49px;
}

.quickview-title-container {
    display: flex;
    align-items: center;
}

.quickview-icon {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    filter: invert(1);
}

.quickview-minimize,
.generated-files-minimize,
.quickview-entry-expand {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.quickview-minimize i,
.generated-files-minimize i,
.quickview-entry-expand i {
    font-size: 16px;
}

.quickview-minimize:hover {
    background: none;
}

.quickview-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px;
	max-height: calc(100% - 85px);
    background-color: #f0f0f0;
}

.quickview-entry {
    margin-bottom: 10px;
    padding: 5px;
	min-height: 30px;
    border: 1px solid #eee;
    border-radius: 4px;
    cursor: move;
    background-color: #ffffff;
}

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

.quickview-entry-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-grow: 1;
    overflow: hidden;
}

.quickview-entry-title-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
}

.quickview-entry-title-wrapper i {
    flex-shrink: 0;
    margin-right: 6px;
    font-size: 12px;
    color: #000;
}

.quickview-entry-title {
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
}

.quickview-entry-speaker {
    font-size: 11px;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.quickview-entry-text {
    font-size: 12px;
    color: #000;
    margin-top: 5px;
    cursor: text;
}

.quickview-entry-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
}

.quickview-entry-info {
    display: flex;
    font-size: 10px;
}

.quickview-entry-emotion {
	font-weight: 700;
}

.quickview-entry-remove {
    font-size: 10px;
    padding: 2px 5px;
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.quickview-edit-textarea {
    width: 100%;
    font-size: 11px;
    border: 1px solid #ccc;
    padding: 2px;
}

#quickviewNavigator.minimized .quickview-content {
    display: none;
}

#quickviewNavigator.minimized {
    height: auto;
}

#scriptRepeater .voice-entry.highlighted,
#scriptRepeater .sound-entry.highlighted {
	background-color: #ffffff !important;
}

.quickview-entry.highlighted,
.generated-files-entry.highlighted,
#scriptRepeater .highlighted {
    background-color: #93c4ff !important;
    transition: background-color 0.3s ease;
}

.quickview-mini-nav {
    display: flex;
    justify-content: space-around;
    padding: 5px;
    gap: 5px;
    max-width: 600px;
    margin: 0 auto;
}

.mini-nav-btn {
    padding: 5px 10px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    color: #000000;
    flex-grow: 1;
}

.mini-nav-btn:hover {
    background-color: #e0e0e0;
}

.mini-nav-btn.active {
    background-color: #ffffff;
    color: black;
    border-color: #ffffff;
}

.context-menu {
    display: none;
    position: absolute;
    z-index: 1001;
    background-color: #000000;
    border: 1px solid #ffffff;
}

.context-menu ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.context-menu li {
    padding: 8px 12px;
    cursor: pointer;
    color: #ffffff;
    font-size: 0.8em;
    font-weight: 700;
    border-bottom: solid 1px #ffffff;
}

.context-menu li:hover {
    background-color: #333333;
}

.quickview-project-info {
    padding: 5px;
    background-color: #f0f0f0 !important;
}

.quickview-project-info h3 {
    margin: 0 0 1px 0;
    font-size: 16px;
    font-weight: bold;
}

.quickview-project-info p {
    font-size: 11px;
    color: #000000;
    max-height: 3em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-align: center;
    line-height: 1.1em;
    margin: 2px 10px 10px 10px;
}

h3#quickviewProjectTitle {
    color: #000000;
    font-size: 1.3em !important;
	text-align: center;
    line-height: 1em;
    margin-top: 10px;
}



#generatedFilesNavigator {
    position: fixed;
    top: 65px;
    right: 0;
    width: 300px;
    background-color: #fff;
    border-radius: 0px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 65px);
}

#generatedFilesNavigator.fixed {
    height: calc(100vh - 65px);
    width: 300px;
    top: 65px;
}

.generated-files-header {
    padding: 1px 10px 1px 20px;
    background-color: #000000;
    cursor: move;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1em;
    font-weight: 700;
    color: #ffffff;
    min-height: 49px;
}

.generated-files-title-container {
    display: flex;
    align-items: center;
    max-width: 250px;
    overflow: hidden;
}

#generatedFilesTitle {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.generated-files-icon {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    filter: invert(1);
}

.generated-files-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px;
    max-height: calc(100% - 20px);
    background-color: #f0f0f0;
}

.generated-files-cover-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.generated-files-cover-image {
    max-width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
}

.generated-files-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.generated-files-table th,
.generated-files-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.generated-files-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.generated-files-actions {
    display: flex;
    flex-direction: column;
    background-color: #000000;
    padding: 5px;
    gap: 5px;
}

.generated-files-btn {
    padding: 5px 10px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    color: #000000;
    width: 100%;
}

.generated-files-btn:hover {
    background-color: #e0e0e0;
}

/* Adjust the timeline container */
#timelineContainer {
    left: 300px;
    right: 300px;
    width: calc(100% - 600px);
}

/* Styles for the line preview and edit */
.line-preview {
    cursor: pointer;
}

.line-edit {
    width: 100%;
    display: none;
}

/* Error row styling */
.error-row {
    background-color: #ffeeee;
}

/* Filename cell styling */
.filename-cell {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Voice info cell styling */
.voice-info-cell {
    font-size: 10px;
    line-height: 1.2;
}

/* Button styling */
.btn {
    padding: 2px 5px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
}

/* Icon styling */
.icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

/* Play/Stop button toggle */
.toggle-play-btn[data-playing="true"] .play-icon {
    display: none;
}

.toggle-play-btn[data-playing="true"] .stop-icon {
    display: inline;
}

.toggle-play-btn[data-playing="false"] .play-icon {
    display: inline;
}

.toggle-play-btn[data-playing="false"] .stop-icon {
    display: none;
}

/* Generated Files window with table */

.generated-files-entry {
    margin-bottom: 10px;
    padding: 5px;
    min-height: 30px;
    border: 1px solid #eee;
    border-radius: 4px;
    background-color: #ffffff;
}

.generated-files-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
    cursor: pointer;
}

.generated-files-entry-left {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.entry-character {
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.entry-duration {
    font-size: 11px;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.entry-actions {
    display: flex;
}

.entry-actions .btn {
    width: 20px;
    height: 20px;
    padding: 0;
    margin-left: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.entry-actions .btn img {
    width: 14px;
    height: 14px;
}

.generated-files-entry-details {
    padding: 5px;
}

.generated-files-entry-details table {
    width: 100%;
    font-size: 0.8em;
}

.generated-files-entry-details td {
    padding: 2px 0;
}

.generated-files-entry-details tr {
    vertical-align: top;
}

.generated-files-entry-details td:first-child {
    font-weight: bold;
    width: 35%;
}

#generatedFilesNavigator.minimized .generated-files-content {
    display: none;
}

#generatedFilesNavigator.minimized {
    height: auto;
}

.generated-files-minimize:hover {
    background: none;
}

.script-complete-container {
    padding: 5px;
    background-color: #ffffff;
    margin-top: 5px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.script-complete-container label {
    font-weight: bold;
    font-size: 0.8em;
    display: inline;
}

#generateAudioPlay {
    margin-top: 10px;
    width: 100%;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 0.8em;
}

#generateAudioPlay:hover {
    background-color: #45a049;
}

#coverContextMenu {
    display: none;
    position: absolute;
    z-index: 1001;
    background-color: #000000;
    border: 1px solid #ffffff;
    padding-inline-start: 0px;
}

#coverContextMenu ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

#coverContextMenu li {
    padding: 8px 12px;
    cursor: pointer;
    color: #ffffff;
    font-size: 0.8em;
    font-weight: 700;
    border-bottom: solid 1px #ffffff;
    display: flex;
    align-items: center;
}

#coverContextMenu li:hover {
    background-color: #333333;
}

#coverContextMenu li i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

