/* Add your custom styles here */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&family=Noto+Serif:ital,wght@0,100..900;1,100..900&display=swap');



:root {
	--bg-primary: #dce4e7;
	--bg-secondary: #f0f2f5;
	--text-primary: #102a43;
	--text-secondary: #486581;
	--accent-primary: #0077b6;
	--accent-secondary: #008da9;
	--error: #ef476f;
}

body {
	background-color: var(--bg-primary);
	color: var(--text-primary);
    font-family: "Noto Sans", Arial, sans-serif;
	margin: 0 20px;
}

span.original {
	display: block;
	font-weight: bold;
	color: #888;
	font-size: 0.9em;
}

p.note, ul.note {
    color: #888;
    font-size: 0.8em;
	padding: 0 1rem 0 2rem;
	margin-top: 0.5rem;
}

.copy-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    vertical-align: middle;
    opacity: 0.7;
}

.copy-button:hover {
    opacity: 1;
}

.copy-button .material-symbols-outlined {
    font-size: 18px;
}

ul.note {
    padding-left: 3rem;
}

p.note span.material-symbols-outlined {
	float: left;
	margin-left: -30px;
}

p.error {
    color: #ff0000;
    padding: 20px;
}

button.copy-button {
    display: inline-block;
    margin-left: 4px;
    background-color: white;
    color: gray;
    border: 1px solid #ccc;
    box-shadow: none;
    font-size: 12px;
    padding: 4px 7px;
    min-width: 0;
    vertical-align: bottom;
}

button.copy-button span.material-symbols-outlined {
    font-size: 14px;
}

button.copy-button:hover {
    background-color: #f0f0f0 !important;
    color: #888;
    box-shadow: none;
}

main {
	max-width: 1200px;
	margin: 0 auto 20px auto;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-sizing: border-box;
}

footer {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
	text-align: center;
}

footer p {
	text-align: center;
}

header {
    background: url(login3-tinted2.jpg);
    background-repeat: no-repeat;
    background-size: 100%;
    margin: 0 -20px 40px -20px;
    padding: 10px;
}

#menu a {
    color: white;
    padding: 2px 6px;
    border-radius: 5px;
}

#menu a span.material-symbols-outlined {
    margin-right: 4px;
}

#menu {
    color: white;
    text-align: right;
    font-weight: bold;
    margin: 0;
    padding: 0;
    position: absolute;
    right: 10px;
    top: 10px;
}

#menu a:hover {
    color: rgb(255, 119, 0);
    background-color: white;
}

hr {
	border: 0;
	border-top: 1px solid #444;
	margin: 40px 0 50px 0;
}

button, input[type=button], input[type=submit], a.action-button {
    display: inline-block;
    background-color: rgb(0, 160, 192);
    color: white;
    font-weight: bold;
    text-decoration: none;
    border: 0;
    padding: 10px 30px;
    margin: 8px 8px 0 0;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    min-width: 210px;
    font-size: 18px;
    box-sizing: border-box;
    text-align: center;
    cursor: pointer;
    transition: all .05s linear;
}

button:first-child {
    margin-top: 12px;
}

button:hover {
    background-color: rgb(235, 110, 0) !important;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.4);
}

button[disabled], button[disabled]:hover {
    background-color: #888 !important;
    opacity: 0.3;
    cursor: not-allowed;
    box-shadow: none;
}

button[button]:hover {
    background-color: #888 !important;
}

label {
    font-weight: 600;
    display: block;
    margin: 0 0 10px 0;
}

input[type=text], input[type=password], input[type=email], select {
    border-radius: 5px;
    border: 1px solid #2a2a2a;
    padding: 10px 14px;
    font-size: 1em;
    width: 99%;
    box-sizing: border-box;
    outline: none;
}

input[type=checkbox] {
	width: auto;
}

div label {
	width: auto;
	display: inline;
	cursor: pointer;
}

fieldset {
	columns: 3;
}

select {
	width: auto;
}

div.login-container {
    max-width: 400px;
    margin: calc(50vh - 240px) auto 0 auto;
    padding: 0;
    box-sizing: border-box;
    background-color: white;
    border-radius: 10px;
}

div.login-container h1 {
    background-color:rgb(0, 160, 192);
    padding: 20px 40px;
    border-radius: 8px 8px 0 0;
}

div.login-container form {
    padding: 0 20px 20px 20px;
}

p.login-button {
    text-align: center;
}

div.segment {
	display: grid;
	grid-template-columns: 30px 0.9fr 1fr;
	padding: 0;
	border-left: 4px solid #2a2a2a;
	transition: background-color 0.3s ease;
}

div.segment:last-child {
	border-bottom: 4px solid #2a2a2a;
}

div.segment.even {
	background-color: #2a2a2a;
}

div.segment-id {
	padding: 10px;
	font-weight: 600;
	color: #888;
}

div.voice-info {
    font-size: 0.8em;
    color: #888;
    margin: 10px 0 4px 0;
}

div.make-into-overlay {
    position: absolute;
    right: 30px;
    font-size: 0.8em;
    color: #888;
    margin: 4px 8px 0 0;
    cursor: pointer;
    display: block;
}

div.make-into-overlay:hover {
    color: var(--accent-primary);
    text-decoration: underline;
}

div.translation-text-container {
    border-left: 4px solid var(--bg-secondary);
    border-right: 4px solid var(--bg-secondary);
}

div.translation-text-container span.difference b {
    color: #ff6a00;
}

div.translation-text-container span.difference b i {
    color: #ff0000;
}

div.translation-text-container textarea {
    width: 100%;
    border: 0;
    padding-top: 26px;
}

span.original-length {
    display: block;
    font-size: 0.8em;
    text-align: right;
    color: #a5a5a5;
    float: right;
    margin: -22px -12px 8px 6px;
}

span.translated-length {
    display: block;
    font-size: 0.8em;
    text-align: right;
    color: #a5a5a5;
    position: absolute;
    margin-left: 8px;
    margin-top: 4px;
}

div.buttons {
    padding: 0 0 16px 26px;
}

div.buttons button {
	border: 0;
	color: white;
	font-size: 0.8em;
	padding: 3px 6px 3px 8px;
    margin: 4px 0 2px 2px;
	cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    text-align: left;
    width: 122px;
    min-width: 0;
}

div.buttons button.more-options {
    width: 30px;
    min-width: 30px;
	text-align: center;
	padding: 3px 6px;
}

div.more-text-options-menu {
	display: none;
}

div.more-text-options-menu button {
	background-color: #fae500;
	color: black;
}

div.more-video-options-menu button {
	background-color: #e4147f;
	color: white;
}

div.buttons button span.material-symbols-outlined {
    margin-right: 0px;
    font-size: 1.2em;
}

#autoplayCheckboxLabel {
    display: block;
    position: absolute;
    margin-top: 40px;
}

div.buttons button:hover {
	color: #fff;
}

div.english-text {
	font-weight: 500;
	margin: 0px;
	box-sizing: border-box;
	padding: 26px 20px 0 20px;
}

textarea {
	padding: 20px 20px 0 30px;
	box-sizing: border-box;
	margin: 0;
	min-height: 100px;
	font-size: 1em;
	font-family: "Noto Sans", Arial, sans-serif;
	border: 0;
	border-left: 4px solid #2a2a2a;
	border-right: 4px solid #2a2a2a;
	background-color: rgba(255, 255, 255, 0.2);
	resize: none;
	color: #00aaff;
}

a {
    color: rgb(187, 63, 225);
    text-decoration: underline;
}

textarea:focus, input[type=text]:focus {
	outline: none;
}

textarea.title {
    width: 100%;
    border: 1px solid #2a2a2a;
    min-height: 60px;
    padding: 20px;
    cursor: pointer;
}

textarea.title:focus {
    cursor: text;
}

textarea.subtitles {
    display: none;
    width: 100%;
    min-height: 40px;
    text-align: center;
    margin-bottom: -4px;
    border-top: 4px solid #2a2a2a;
    border-bottom: 4px solid #2a2a2a;
    background-color: #282828;
    color: #ffffff !important;
    box-sizing: border-box;
    font-weight: bold;
    font-size: 1.2em;
}

textarea.subtitles:focus {
    cursor: text;
    background-color: #282828 !important;
    color: #ffffff !important;
}

textarea:hover {
    cursor: pointer;
}

textarea:focus {
    cursor: text;
}

textarea.subtitles.show {
    display: block;
}

.large {
    font-size: 1.4em;
    font-weight: bold;
}

#details {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0px;
}

#controls {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background-color: rgba(205, 205, 205, 0.6);
	backdrop-filter: blur(3px);
	padding: 20px;
	display: grid;
	justify-content: right;
	gap: 10px;
	grid-template-columns: 1fr 1fr 3fr 2fr;
}

#controls button {
    margin: 0;
}

span.material-symbols-outlined {
  font-variation-settings:
  'FILL' 1,
  'wght' 400,
  'GRAD' 0,
  'opsz' 18;
  vertical-align: text-top;
}

#save-status {
    text-align: center;
}

h1 {
    font-size: 2em;
    font-weight: 800;
	color: #4CAF50;
}

h4 {
    font-size: 1.2em;
    margin: 0.5em 0 0em 0;
}

b {
    font-weight: 600;
}

.gradient-wrapper {
	text-align: center;
	width: 100%;
}

button.regenerate.highlight {
    background-color: var(--error);
    color: white;
    animation: pulsate 1.5s infinite;
}

button.regenerate.highlight:hover {
    animation: none;
    background-color: #ff3860;
}

.segment-count {
    font-size: 0.8em;
    color: #888;
    text-align: center;
    margin: 2em;
}

.mark-complete {
    background-color: rgb(1, 169, 0);
}




#controls button b {
	color: white;
}

div.segment {
	border-left: 4px solid var(--bg-secondary);
}

main div.segment:nth-of-type(2) {
	border-top: 4px solid var(--bg-secondary);
}

div.segment.even.playing textarea, div.segment.odd.playing textarea {
	background-color: #ebe410;
}

div.segment.even {
	background-color: var(--bg-secondary);
}

div.segment-id {
	color: var(--text-secondary);
}

#segment-1 {
    border-top: 4px solid var(--bg-secondary);
}

textarea {
	color: #00596b;
}

textarea:focus, input[type=text]:focus {
	background-color: rgb(255, 246, 193);
}

textarea.subtitles {
	color: var(--accent-secondary);
	border-top: 4px solid var(--bg-secondary);
	border-bottom: 4px solid var(--bg-secondary);
}

#controls {
	background-color: rgba(199, 202, 206, 0.8);
	z-index: 1000;
}

a {
	color: var(--accent-primary);
}

button.regenerate.highlight {
	background-color: var(--error);
	color: white;
}



/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: var(--bg-secondary);
    margin: 20px auto 0 auto;
    padding: 20px 20px 40px 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    text-align: center;
}

.modal-content h3 {
	margin-top: 0;
}

.modal-content h2 {
    color: var(--accent-primary);
    margin-top: 0;
}

.modal-content button {
    margin-top: 2px;
}



.project-item.completed {
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.project-item.completed:hover {
    opacity: 1;
}

.project-item {
    position: relative;
    margin-bottom: 20px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.project-item::before {
    font-family: 'Material Symbols Outlined';
    font-size: 36px;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.project-item.complete::before {
    content: 'check_circle';  /* Changed to a filled circle with check */
    color: #4CAF50;
}

.project-item.pending::before {
    content: 'hourglass_empty';
    color: #FFC107;
}

.project-list {
    list-style-type: none;
    padding: 0;
}

.project-list-user {
	list-style-type: none;
	padding: 0;
}

.project-list-user li.project-item {
	padding-left: 60px;
	border: 1px solid #ddd;
	border-radius: 10px;
}

.project-title {
    font-size: 1.4em;
    font-weight: bold;
}
.project-details {
    margin-top: 5px;
    font-size: 0.9em;
    color: #888;
}
.status-complete {
    color: #4eb422;
}
.status-pending {
    color: #ffbe76;
}

/* Add these specific styles for the video preview */
#previewVideoContainer {
    position: relative;
    margin: 0 auto;
    max-width: 700px;
    max-height: 350px;
    aspect-ratio: 16 / 9; /* Default aspect ratio */
}

#previewVideoContainer.vertical {
    aspect-ratio: 9 / 16;
    max-width: 45vh; /* Limit width for vertical videos on wide screens */
}

#previewVideo {
    width: 100%;
    height: 100%;
    display: block;
    background-color: #000;
}

/* Update the existing styles for the preview modal */
#previewModal .modal-content {
    max-width: 700px;
    max-height: 75vh;
    min-height: 620px;
}

/* Add these new styles */
.preview-controls {
    display: flex;
    justify-content: space-evenly;
    margin-top: 20px;
    font-weight: bold;
}

.preview-controls button {
    min-width: 120px;
}

.nav-button {
    background-color: var(--accent-secondary);
}

.nav-button:hover {
    background-color: var(--accent-primary) !important;
}

#currentSegmentDisplay, .currentSegmentDisplay {
    display: block;
    float: left;
    position: absolute;
    font-weight: bold;
    font-size: 1.6em;
    color: rgb(118, 118, 118);
    margin-bottom: 10px;
}

#closePreviewModal {
    margin-top: 20px;
    background-color: #666;
}

#closePreviewModal:hover {
    background-color: #d32f2f;
}

@keyframes pulsate {
    0% {
        background-color: var(--error);
        box-shadow: 0 0 0 0 rgba(239, 71, 111, 0.7);
    }
    70% {
        background-color: #ff3860;
        box-shadow: 0 0 0 10px rgba(239, 71, 111, 0);
    }
    100% {
        background-color: var(--error);
        box-shadow: 0 0 0 0 rgba(239, 71, 111, 0);
    }
}

.pulsate {
    animation: pulsate 1.5s infinite;
}

/* AI Chat Modal Styles */
.chat-modal {
    max-width: 800px !important;
    height: 95vh;
    display: flex;
    flex-direction: column;
    padding: 0 !important;
}

.chat-modal h2 {
    margin: 0;
    padding: 20px;
    background-color: #fae500;
    color: black;
    border-radius: 10px 10px 0 0;
	border-bottom: 2px solid black;
}

.chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    background-color: white;
    position: relative;
}

.chat-note {
    position: sticky;
    bottom: 0;
    padding: 10px 0 20px 0;
    font-size: 0.8em;
    color: #666;
    text-align: center;
}

.chat-input-area {
    display: flex;
    padding: 20px;
    gap: 10px;
    background-color: var(--bg-secondary);
}

.chat-input-area input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
}

.chat-input-area button {
    min-width: auto;
    width: auto;
    margin: 0;
    padding: 10px 20px;
}

#closeAiChat {
    margin: 20px;
    background-color: var(--error);
}

#closeAiChat:hover {
    background-color: #d32f2f !important;
}

/* AI Chat Message Styles */
.message {
    margin-bottom: 20px;
    padding: 12px;
    border-radius: 10px;
    max-width: 90%;
}

.message.loading {
    background-color: #f0f0f0;
    color: #666;
    animation: pulse 1.5s infinite;
}

.message.loading .material-symbols-outlined {
    animation: spin 1.5s linear infinite;
    display: inline-block;
    margin-right: 8px;
    vertical-align: middle;
}

.message.ai {
    background-color: #fae500;
    color: black;
    margin-left: auto;
    margin-right: 20px;
    line-height: 1.5;
}

.message-content {
    text-align: left;
}

/* Loading animations */
@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

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

.message.user {
    background-color: #e9ecef;
    color: #2a2a2a;
    margin-left: auto;
    margin-right: 0;
    line-height: 1.5;
}

.message.error {
    background-color: #ffebee;
    color: #c62828;
    margin-left: auto;
    margin-right: 20px;
    line-height: 1.5;
}

/* Add to your existing styles */
.form-group {
    text-align: left;
    margin: 20px;
}

.form-group label {
    display: block;
    margin: 10px 0 5px 0;
}

.form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

button.cancel {
    background-color: #666;
}

.modal-content h2 .material-symbols-outlined {
	vertical-align: middle;
    font-size: 30px;
}

#compileVideoButton {
	float: right;
	margin: -24px 0 10px 10px;
}

/* Add these styles */
.time-inputs {
    display: flex;
    gap: 10px;
    margin: 0;
}

.time-inputs .input-group {
    flex: 1;
}

.time-inputs input {
    width: 90%;
}

.modal-footer {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.modal-footer button {
    min-width: 120px;
    flex: 0 1 auto;
}

button.clear {
    background-color: #ff4444;
}

.segment {
    position: relative;
}

.overlay-indicators {
    position: absolute;
    top: 6px;
    right: 10px;
    display: flex;
    gap: 0px;
    justify-content: flex-end;
    z-index: 10;
}

.overlay-indicator {
    color: rgb(228, 20, 127);
    display: none;  /* Hidden by default */
    cursor: pointer;
    user-select: none;
}

.segment[data-overlay-data]:not([data-overlay-data='{}']) .overlay-indicator {
    display: block;  /* Show when overlay exists */
}

/* Add these new styles */
#previewOverlayContainer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#previewTextOverlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0, 160, 192);
    color: white;
	font-family: 'Noto Serif', serif;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 600;
    padding: 24px 36px 28px 36px;
    box-sizing: border-box;
    display: none;  /* Hidden by default */
}

/* Add these styles for the overlay textarea */
#overlayText {
    width: 100%;
    min-height: 100px;
    padding: 10px;
    border: 1px solid #ddd;
	background-color: #fff;
    border-radius: 5px;
    font-family: "Noto Sans", Arial, sans-serif;
    resize: vertical;
}

#previewImageOverlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: none;  /* Hidden by default */
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: rgb(0, 160, 192);
}

button.create-project-button {
	float: right;
}

/* Progress Bar Styles */
.progress {
    display: flex;
    list-style-type: numeral;
    list-style-position: inside;
    align-items: flex-end;
    gap: 10px;
    padding: 0;
    margin: 30px 0;
    border-bottom: 4px solid #4CAF50;
    justify-content: space-between;
}

.progress li {
    flex: 1;
    padding: 0 10px 10px 0;
    text-align: center;
    color: #666;
	background-color: #f2f6f3;
    border-radius: 10px 10px 0 0;
	padding: 10px;
}

.progress li.active {
    background-color: #4CAF50;
	color: white;
    border-radius: 10px 10px 0 0;
	padding: 10px;
	font-weight: bold;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

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

.form-group input[type="text"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.error-message, .error-details {
    color: #ff4444;
    margin-top: 5px;
}

.help-text {
    color: #888;
    font-size: 0.9em;
    margin-top: 5px;
}

/* Upload Container Styles */
.upload-container {
    border: 2px dashed #666;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    margin: 20px 0;
    transition: all 0.3s ease;
}

.upload-container.dragover {
    border-color: #4CAF50;
    background: #263238;
}

.upload-icon {
    font-size: 48px;
    color: #666;
    margin-bottom: 15px;
}

.file-input {
    display: none;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #333;
    border-radius: 10px;
    margin: 20px 0;
    display: none;
}

.progress-bar-fill {
    height: 100%;
    background: #4CAF50;
    border-radius: 10px;
    width: 0%;
    transition: width 0.3s ease;
}

.upload-text {
    margin: 15px 0;
    color: #888;
}

.file-info {
    margin-top: 15px;
    color: #888;
}

.upload-container.dragover {
    border-color: #2196f3;
    background-color: rgba(33, 150, 243, 0.1);
}

.status-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.status-list li {
    padding: 10px;
    margin: 5px 0;
    border-radius: 5px;
    background: #f5f5f5;
}

.status-list li.pending {
    color: #666;
}

.status-list li.in-progress {
    color: #2196f3;
    background: #e3f2fd;
}

.status-list li.complete {
    color: #4caf50;
    background: #e8f5e9;
}

.status-list li.error {
    color: #f44336;
    background: #ffebee;
}



#transcriptionEditor {
    margin: 20px 0;
}

#transcriptionEditor textarea {
    width: 100%;
    min-height: 400px;
    padding: 20px;
    font-family: "Fira Code", monospace;
    font-size: 1em;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    resize: vertical;
}

#transcriptionEditor textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    background-color: white;
}

.audio-player {
    margin: 20px 0;
    text-align: center;
	display: flex;
	justify-content: space-between;
	gap: 20px;
}

.audio-player audio {
    width: 100%;
    max-width: 500px;
}

.status-message {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-primary);
    font-weight: 500;
}

.error-message {
    background-color: #ffebee;
    color: #c62828;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    border-left: 4px solid #c62828;
    animation: fadeIn 0.3s ease-in;
}

.success-message {
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    border-left: 4px solid #2e7d32;
    animation: fadeIn 0.3s ease-in;
}

.translation-controls {
    margin: 20px 0;
}

.language-selection {
    margin-bottom: 30px;
}

.language-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.language-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
	font-size: 0.85em;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.language-checkbox:hover {
    background-color: var(--bg-secondary);
}

.language-checkbox input[type="checkbox"] {
    margin: 0;
}

.language-checkbox .flag, .flag {
    font-size: 1em;
    font-family: 'Noto Color Emoji';
}

.translation-status {
    margin: 30px 0;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: var(--bg-secondary);
}

.status-list {
    margin-top: 15px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    margin: 5px 0;
    border-radius: 5px;
    background-color: white;
}

.status-item.pending {
    color: var(--text-secondary);
}

.status-item.in-progress {
    color: var(--accent-primary);
    background-color: var(--bg-primary);
}

.status-item.complete {
    color: #4caf50;
    background-color: #e8f5e9;
}

.status-item.error {
    color: var(--error);
    background-color: #ffebee;
}

.status-item .retry-button {
    margin-left: auto;
    padding: 5px 10px;
    min-width: auto;
}

.language-checkbox.completed {
    background-color: #e8f5e9;
    border-color: #4caf50;
    opacity: 0.8;
    cursor: default;
}

.language-checkbox .status-badge {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.language-checkbox .status-badge.complete {
    color: #4caf50;
}

.language-checkbox.completed:hover {
    background-color: #e8f5e9;
}

.translation-count {
    margin-left: auto;
    font-size: 0.9em;
    color: var(--text-secondary);
}

.language-checkbox.completed .translation-count {
    color: #4caf50;
}

.status-item {
    position: relative;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    background-color: var(--bg-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-item.error {
    background-color: #ffebee;
}

.status-item .progress-bar {
    flex-grow: 1;
    height: 10px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

.status-item .progress-fill {
    height: 100%;
    background-color: var(--accent-primary);
    width: 0;
    transition: width 0.3s ease;
}

.status-item.error .progress-fill {
    background-color: var(--error);
}

.error-list {
    margin-top: 10px;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 5px;
    font-size: 0.9em;
}

.error-item {
    margin: 5px 0;
    color: var(--error);
}

.error-item .segment-number {
    font-weight: bold;
    margin-right: 5px;
}

.retry-button {
    min-width: auto !important;
    padding: 8px 15px !important;
    margin: 0 !important;
    background-color: var(--error) !important;
}

.retry-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.retry-button .material-symbols-outlined {
    margin-right: 5px;
    vertical-align: middle;
}

/* Update existing styles and add new ones */
.translator-grid {
    margin: 20px 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
}

.translator-grid label {
	margin: 0;
}

.select-all {
    grid-column: 1 / -1;
    padding: 15px;
    background-color: var(--bg-secondary);
    border-radius: 5px;
    margin-bottom: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.select-all input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
}

.translator-checkbox {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.translator-checkbox:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.translator-info {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.translator-info input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 2px;
}

.translator-details {
    flex: 1;
    overflow: hidden;
    font-size: 0.9em;
    line-height: 1.3;
}

.translator-details strong {
    display: inline;
    color: var(--accent-primary);
    margin-right: 8px;
}

.translator-details .email {
    display: inline;
    color: var(--text-secondary);
    font-size: 0.9em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.languages {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin-top: 4px;
}

.language-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 6px;
    background-color: var(--bg-secondary);
    border-radius: 3px;
    font-size: 0.8em;
    color: var(--text-secondary);
}

.selected-preview {
    margin: 20px 0;
    padding: 10px;
    background-color: var(--bg-secondary);
    border-radius: 8px;
}

.selected-preview h3 {
    margin: 0 0 10px 0;
    color: var(--accent-primary);
    font-size: 0.9em;
}

.selected-translator {
    display: inline-block;
    background-color: white;
    padding: 4px 8px;
    margin: 2px;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 0.85em;
}

.selected-translator strong {
    color: var(--accent-primary);
}

.selected-translator .email {
    color: var(--text-secondary);
}

.selected-translator .languages {
    display: none;
}

.no-translators {
    text-align: center;
    color: var(--text-secondary);
    padding: 20px;
    background-color: var(--bg-secondary);
    border-radius: 8px;
    margin: 20px 0;
}


/* Message Form Styles */
.form-group textarea,
.form-group input[type="text"] {

    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    font-family: "Noto Sans", Arial, sans-serif;
    color: var(--text-primary);
    background-color: white;
    margin-top: 10px;

}

.form-group textarea {

    min-height: 200px;
    resize: vertical;
    line-height: 1.6;

}

.form-group input[type="text"]:focus,
.form-group textarea:focus {

    border-color: var(--accent-primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 119, 182, 0.1);

}

/* Style for the submit button container */
.form-submit {

    margin-top: 30px;
    text-align: right;

}

/* Increase spacing between form groups */
.form-group {

    margin-bottom: 30px;

}

.form-group label {

    display: block;
    font-weight: bold;
    color: var(--text-primary);

}

input[readonly] {
    background-color: #ececec !important;
	cursor: not-allowed;
}

span.smallicon {
    font-size: 16px;
}

/* Project Status Styles */
.project-status {
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.status-toggle {
    display: flex;
    gap: 10px;
}

.status-button {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    border: 2px solid #ddd;
    border-radius: 20px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.status-button:hover {
    border-color: #999;
}

.status-button.active {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

.status-button.active[data-status="pending"] {
    background: #FFA726;
    border-color: #FFA726;
}

.status-button .material-symbols-outlined {
    font-size: 20px;
}

/* Log Output Styles */
.log-output {
    background-color: #1e1e1e;
    color: #e0e0e0;
    font-family: "Fira Code", monospace;
    font-size: 0.9em;
    line-height: 1.5;
    padding: 20px;
    border-radius: 8px;
    height: 400px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

.log-output .error {
    color: #ff4444;
}

.log-output .warning {
    color: #ffbb33;
}

.log-output .success {
    color: #00C851;
}

.log-output .info {
    color: #33b5e5;
}

.log-files {
    list-style: none;
    padding: 0;
}

.log-files li {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #ddd;
    gap: 10px;
}

.log-files li:last-child {
    border-bottom: none;
}

.download-link {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 5px;
    background-color: var(--accent-primary);
    color: white;
    text-decoration: none;
}

.download-link:hover {
    background-color: var(--accent-secondary);
}

/* Lower Third Preview Styles */
#previewLowerThird {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    box-sizing: border-box;
    background-color: rgb(0, 160, 192);
    color: white;
    font-family: 'Noto Serif', serif;
    font-weight: bold;
    padding: 15px 20px;
    display: none;
    line-height: 1.4;
    z-index: 2;
    white-space: normal;
    overflow: hidden;
    justify-content: flex-start;
	text-align: left;
}

#previewLowerThird.centered {
    justify-content: center;
}

/* Lower Third Form Styles */
#lowerThirdModal .form-group input[type="text"] {
    width: 100%;
    padding: 8px;
    margin: 5px 0 15px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
}

#lowerThirdModal .form-group label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}

/* Update the overlay indicator styles to include lower third */
.overlay-indicator.lower-third-indicator {
    color: rgb(228, 20, 127);
}

/* Add this to your existing .more-video-options-menu button styles */
.more-video-options-menu button.add-lower-third {
    background-color: #e4147f;
    color: white;
}

.translations-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
}

.translations-table th {
    text-align: left;
    padding: 6px 10px;
    border-bottom: 2px solid #444;
    color: var(--text-secondary);
    font-weight: bold;
    font-size: 0.9em;
}

.translations-table td {
    padding: 6px 10px;
    border-bottom: 1px solid #ddd;
    font-size: 0.9em;
}

.translations-table tr:nth-child(even) {
    background-color: var(--bg-secondary);
}

.translations-table tr:hover td {
    background-color: #e3e8eb;
}

.add-padding-all-button {
    border: 0;
    color: white;
    font-size: 0.8em;
    padding: 3px 6px 3px 8px;
    margin: 4px 0 2px 2px;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    text-align: left;
    width: auto;
    min-width: 0;
    background-color: rgb(0, 160, 192);
}

.add-padding-all-button:hover {
    background-color: rgb(0, 128, 154);
}

.add-padding-all-button .material-symbols-outlined {
    font-size: 1.2em;
}

.translation-row.complete td {
    color: #4CAF50;
}

.translation-row.pending td {
    color: #FFC107;
}

.translations-table .flag-emoji {
    margin-right: 5px;
    font-size: 1.2em;
    vertical-align: middle;
    font-family: 'Noto Color Emoji';
}

.remove-button {
	color: red;
}

.original-title {
    color: #666;
    margin-bottom: 1em;
    font-size: 0.9em;
}

.original-title {
    color: #999;
    font-size: 0.6em;
	display: block;
}

#promptEditor {
    margin: 20px 0;
}

#promptEditor textarea {
    width: 100%;
    min-height: 70vh;
    padding: 20px;
    font-family: "Fira Code", monospace;
    font-size: 1em;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: rgb(243, 243, 243);
    border: 1px solid #ddd;
    border-radius: 5px;
    resize: vertical;
    tab-size: 4;
}

#promptEditor textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    background-color: white;
}

.save-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
}

.save-button:hover {
    background-color: #45a049;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

#previewTimer {
    display: block;
    text-align: left;
    color:white;
    background-color: black;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1em;
    font-weight: bold;
    position: absolute;
    margin: -24px 0 0 487px;
    padding: 3px 10px;
    z-index: 1000;
}

.title-warning {
    color: #ff4444;
    font-size: 0.9em;
    margin-top: 5px;
    display: none;
}

.title-warning .char-count {
    color: #666;
    font-weight: bold;
}

@keyframes buttonFlash {
    0% {
        outline: 4px solid transparent;
    }
    50% {
        outline: 4px solid rgb(255, 136, 0);
    }
    100% {
        outline: 4px solid transparent;
    }
}

.button-flash {
    animation: buttonFlash 0.4s ease-out;
}

.modal-close-x {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    padding: 5px;
    border: none;
    background: none;
    color: #666;
}

.modal-close-x:hover {
    color: #000;
}

.modal-content {
    position: relative;  /* Ensure this is set for absolute positioning of the X */
}

#transcriptionWarnings {
    margin-top: 15px;
    padding: 15px;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 4px;
    color: #856404;
    display: none;
}

#transcriptionErrors {
    margin-top: 15px;
    padding: 15px;
    background-color: #ffebee;
    border: 1px solid #ffcdd2;
    border-radius: 4px;
    color: #c62828;
    display: none;
}

@keyframes pulse-width {
    0% { width: 15%; }
    50% { width: 35%; }
    100% { width: 15%; }
}