body {
    font-family: "Inter", sans-serif !important;
    line-height: 1.6;
    max-width: 100%;
    margin: 0 auto;
	font-size: 0.9em;
    padding-top: 90px;
}

@media (min-width: 1740px) {
  body {
    max-width: 1740px;
    margin: 0 auto;
  }
}

#app {
    margin-left: 310px;
    margin-right: 310px;
    position: relative;
    padding: 20px;
    margin-top: 20px;
}

#app.step3-layout {
    overflow-y: auto;
}

#app.full-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0 !important;
    padding: 20px 50px 20px 50px;
    background-color: #fff;
    z-index: 1000;
    overflow-y: auto;
}

#app.full-screen .step-icon,
#app.full-screen #step3-heading {
    display: none;
}

.main-header {
    background-color: #097BFA;
    color: white;
    height: 116px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 65px;
}

.header-bottom {
    background-color: #000000;
    height: 51px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-left, .header-right {
  flex: 0 0 33%;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.header-center {
    flex: 0 0 33%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-left {
    justify-content: flex-start;
}

.header-right {
    justify-content: flex-end;
}

.main-header button {
  background-color: transparent;
  color: #fff;
  border: 1px solid #fff;
  padding: 5px 10px;
  font-size: 0.9em;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

.main-header button:hover {
  background-color: #fff;
  color: #000;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
	font-weight: 500;
}

label::before {
    font-family: "Font Awesome 6 Free";
    content: "\f0da"; /* Unicode für das caret-right Icon */
    font-weight: 900; /* Notwendig für solide Icons */
    margin-right: 5px;
    color: #000; /* Oder eine andere Farbe Ihrer Wahl */
}

.checkbox-label::before {
    content: none; /* Entfernt das Icon für Checkbox-Labels */
}

input[type="text"],
input[type="number"],
select {
    width: 98%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
	font-size: 1em;
}

textarea {
    width: 98% !important;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
	font-size: 1.3em;
    line-height: 1.5em;
}

.repeater-group {
    border: 1px solid #ddd;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
}

button {
    padding: 10px 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
	font-family: "Inter", sans-serif !important;
	text-transform: uppercase !important;
	font-weight: 700;
	font-size: 1em;
}

button:hover {
    background-color: #0056b3;
}

.step {
    display: none;
	overflow: hidden;
}

.step.active {
    display: block;
}

.step h2 {
    text-align: center;
    margin-bottom: 30px;
}

.step-icon {
    display: block;
    width: 40px;
    height: 40px;
    margin: 0 auto 10px;
    
}

.modal-title-container {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.modal-title-icon {
    font-size: 1.5em;
    margin-right: 10px;
    color: #000;
}

.modal-title-container h2 {
    margin: 0;
}

#navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
}

#prevStep,
#nextStep {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#prevStep:hover,
#nextStep:hover {
    background-color: #087BFA;
}

#prevStep {
    order: 1;
}

#nextStep {
    order: 2;
}

#prevStep:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

#navigation:not(:has(#prevStep:visible)) {
    justify-content: flex-end;
}

#addVoiceEntry {
    margin-top: 20px;
    float: left;
}

/* Clear float after script repeater */
#scriptRepeater::after {
    content: "";
    display: table;
    clear: both;
}

.button-group {
    margin-bottom: 20px;
    display: grid;
    gap: 10px;
    width: 100%;
}

.button-group button {
    width: 100%;
}

.voice-entry,
.sound-entry,
.music-entry,
.background-music-entry {
    position: relative;
    margin-bottom: 10px;
}

.generated-files-container {
    margin-top: 30px;
    margin-bottom: 40px;
    position: relative;
}

.content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.info-wrapper {
    flex: 1;
    margin-right: 20px;
}

.radio-play-info {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
}

#coverImageContainer {
    flex: 0 0 300px;
}

#coverImage {
    width: 300px;
    object-fit: cover;
    border-radius: 5px;
}

#generatedFilesDescription {
    font-size: 16px;
    margin-bottom: -20px;
    color: #666;
}

.sound-controls {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.sound-controls .form-group {
    flex: 1;
}

.removeVoiceEntry,
.removeSoundEntry,
.removeMusicEntry,
.removeBackgroundMusicEntry {
    background-color: #ff4d4d;
    color: white;
    border: none;
    padding: 2px 5px;
    border-radius: 4px;
    cursor: pointer;
	margin-right: 5px;
    font-size: 0.7em;
}

.removeVoiceEntry:hover,
.removeSoundEntry:hover,
.removeMusicEntry:hover,
.removeBackgroundMusicEntry:hover {
    background-color: #ff1a1a;
}

.range-value {
    display: inline-block;
    width: 40px;
    text-align: right;
    margin-left: 10px;
}

.voice-entry-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.speaker-select,
.emotion-select {
    width: 48%;
}

.voice-entry .form-group {
    margin-bottom: 0px;
}

.audio-options {
    margin-bottom: 10px;
}

.audio-options label {
    margin-right: 15px;
}

.record-audio {
    cursor: pointer;
}

.audio-playback {
    margin-top: 10px;
}

.audio-options-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.radio-options {
    flex-grow: 1;
}

.record-button-container {
    margin-left: 20px;
}

.record-audio {
    white-space: nowrap;
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.generated-files-table {
    width: 100%;
    table-layout: auto;
    border-collapse: collapse;
    margin-top: 20px;
}

.generated-files-table th, .generated-files-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
    border-radius: 4px;
    background-color: #ffffff;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.generated-files-table th {
    background-color: #000000;
    color: #ffffff;
}

.generated-files-table th:first-child,
.generated-files-table th:last-child,
.generated-files-table td:first-child,
.generated-files-table td:last-child {
    width: 1%;
    white-space: nowrap;
}


.actions-cell .btn {
    padding: 5px;
    font-size: 0.9em;
    margin-right: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.actions-cell .btn .icon {
    width: 18px;
    height: 18px;
}

.actions-cell .toggle-play-btn .stop-icon {
    display: none;
}

.actions-cell .toggle-play-btn[data-playing="true"] .play-icon {
    display: none;
}

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

.button-container {
    text-align: center;
    margin-top: 20px;
}

.btn {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

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

.btn-secondary {
    background-color: #000000;
    color: white;
}

.btn-dark {
    background-color: #000000;
    color: white;
}

#generateAudioPlay {
	width: 100% !important;
	background-color: #4CAF50;
	color: white;
}

#generateAudioPlay:hover {
	width: 100% !important;
	background-color: #000000;
	color: white;
}

#resetForm {
	float: right !important;
	background-color: #ff0000;
	color: white;
	padding: 2px 5px 2px 5px;
}

#resetForm:hover {
	background-color: #000000;
	color: white;
	padding: 2px 5px 2px 5px;
}

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

.modal-content {
    background-color: #fefefe;
    margin: 8% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 1200px;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 4px;
}

.play-btn {
    padding: 5px 10px;
    font-size: 16px;
    line-height: 1;
    width: 36px;
    height: 36px;
}

#spinner {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 8px solid rgba(200, 200, 200, 1.0);
    border-radius: 50%;
    border-top-color: #097BFA;
    animation: spin 2s ease-in-out infinite;
    -webkit-animation: spin 2s ease-in-out infinite;
}

@keyframes spin {
    to { -webkit-transform: rotate(360deg); }
}
@-webkit-keyframes spin {
    to { -webkit-transform: rotate(360deg); }
}

.speaker-form {
    background-color: #ffffffa1;
    border: 1px solid #ededed;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.speaker-form h3 {
    margin-top: 0;
	font-size: 1.1em !important;
}

h3 {
    margin-top: 0;
	font-size: 1.1em !important;
}

.speaker-form .form-group {
    margin-bottom: 15px;
}

.voice-model-row {
    display: flex;
    flex-direction: column;
}

.voice-model-row .form-group {
    width: 100%;
    margin-right: 0;
    margin-bottom: 15px;
}

@media (min-width: 768px) {
    .voice-model-row {
        flex-direction: row;
        justify-content: space-between;
    }

    .voice-model-row .form-group {
        width: 48%;
        margin-right: 10px;
        margin-bottom: 0;
    }

    .voice-model-row .form-group:last-child {
        margin-right: 0;
    }
}

.voice-selection-container {
    display: flex;
    align-items: center;
}

.preview-voice-btn, .preview-sts-voice-btn, .preview-tts-voice-btn  {
    margin-left: 10px;
    padding: 5px 10px;
    background-color: #000000;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.character-counter {
    font-size: 0.7em;
    text-align: right;
    margin-top: 5px;
    margin-right: 10px;
}

.preview-voice-btn:hover, .preview-sts-voice-btn:hover, .preview-tts-voice-btn:hover {
    background-color: #087BFA;
}

.preview-voice-btn:active, .preview-sts-voice-btn:active, .preview-tts-voice-btn:active {
    background-color: #087BFA;
}

#copyright-footer {
    text-align: center;
    padding: 20px 0;
    font-size: 12px;
    color: #666;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#copyright-footer p {
    margin: 10px 0 0 0;
}

#language-switcher {
    margin-bottom: 10px;
}

#language-select {
    padding: 5px;
    font-size: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    color: #333;
}

.home-icon-link {
    display: inline-block;
    margin-right: 15px;
    text-decoration: none;
}

.home-icon {
    width: 40px;
    height: 40px;
    vertical-align: middle;
    filter: invert(1);
}

#mainHeading {
    display: inline-block;
    vertical-align: middle;
    margin: 0;
	font-weight: 700;
	line-height: 1em;
	font-size: 1.8em;
    color: #fff;
}

#aiSelection {
    display: flex;
    justify-content: center;
    margin: 15px 0;
}

#aiSelection label {
    margin: 0 10px;
    display: flex;
    align-items: center;
}

#aiSelection input[type="radio"] {
    margin-right: 5px;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
}

.left-label, .right-label {
    font-size: 9px;
    text-transform: uppercase;
    color: #666;
}

/* Fortschrittsanzeige */
.progress-bar {
    width: 100%;
    height: 20px;
    background-color: #e0e0e0;
    margin-bottom: 20px;
    border-radius: 4px;
    overflow: hidden;
}

.progress {
    width: 0;
    height: 100%;
    background-color: #0075FF;
    transition: width 1.5s ease-in-out;
}

/* Tooltips */
.form-group {
    position: relative;
	margin-bottom: 15px;
}

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

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #555;
    color: #fff;
    text-align: left;
    border-radius: 6px;
    padding: 5px 10px;
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    margin-left: 20px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.7em;
}

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

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


/* Form group layout */
.form-group label {
    display: inline-block;
    margin-bottom: 5px;
}

/* Drag and Drop */
.draggable {
    cursor: move;
}

.dragging {
    opacity: 0.5;
}


/* Animations */
.fade-in {
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Info icon */
.info-icon {
    display: inline-block;
    margin-left: 5px;
    cursor: help;
}

.info-icon i {
    color: #000000;
    font-size: 14px;
}

.info-icon:hover i {
    color: #0056b3; /* Eine Farbe für den Hover-Effekt */
}

/* Description text */
.description {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
}

.ui-sortable-helper {
    background-color: #f8f8f8;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.line-cell.edited {
    background-color: #ffffff;
}

.line-cell {
    position: relative;
}

.line-edit {
    width: 100%;
    height: auto;
    min-height: 60px;
    resize: vertical;
    box-sizing: border-box;
    padding: 5px;
    margin: 0;
    border: 1px solid #ccc;
}

.line-cell.editing .line-preview {
    visibility: hidden;
}

#helpModal {
    display: none;
    position: fixed;
    z-index: 1002;
    left: 0;
    top: 0px;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

#helpModal .modal-content {
    background-color: #fefefe;
    margin: 8% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 1200px;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 4px;
}

#helpModal .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

#helpModal .close:hover,
#helpModal .close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

#version-number {
    position: fixed;
    bottom: 20px;
    left: 20px;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.music-selection {
    display: flex;
    align-items: center;
}

.music-selection select {
    flex-grow: 1;
    margin-right: 10px;
}

.preview-music-btn, .preview-bgmusic-btn {
    width: 30px;
    height: 30px;
    padding: 0;
    line-height: 30px;
    text-align: center;
    font-size: 16px;
    cursor: pointer;
}

/* Entry Toogle */

.entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 10px;
    background-color: #f0f0f0;
	border-radius: 4px 4px 0px 0px;
}

.entry-title-wrapper {
    display: flex;
    flex-direction: column;
}

.entry-title-main {
    display: flex;
    align-items: center;
}

.entry-title-main i {
    margin-right: 10px;
    font-size: 1em;
    color: #000;
}

.entry-title-main h3 {
    margin: 0;
}

.entry-subtitle {
    margin-top: 5px;
    font-size: 0.7em;
    color: #000;
}

.entry-controls {
    display: flex;
    align-items: center;
}

.entry-content {
    display: none;
    padding: 10px;
	overflow: hidden;
	opacity: 0;
	max-height: 2000px;
	transition: max-height 0.5s ease-out, opacity 0.3s ease-out;
    border: 1px solid #e0e0e0;
    border-radius: 0 0 4px 4px;
	background-color: #ffffff;
}

.voice-entry.expanded .entry-content,
.music-entry.expanded .entry-content,
.background-music-entry.expanded .entry-content,
.sound-entry.expanded .entry-content {
    display: block;
	opacity: 1;
	transition: max-height 0.5s ease-in, opacity 0.3s ease-in;
}

.toggle-entry {
    background: none;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    transition: transform 1.3s ease;
	color: #000;
	padding: 0 5px;
}

.toggle-entry i {
    transition: transform 0.3s ease;
}

.toggle-entry:hover {
    background: none;
}

.entry-preview {
    padding: 1px 10px 0px 10px;
    font-size: 0.7em;
    color: #333;
    background-color: #f9f9f9;
}

.preview-text {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.voice-entry.expanded .toggle-entry i,
.music-entry.expanded .toggle-entry i,
.background-music-entry.expanded .toggle-entry i,
.sound-entry.expanded .toggle-entry i {
    transform: rotate(180deg);
}

.background-music-entry .music-selection {
    display: flex;
    align-items: center;
}

.background-music-entry .music-selection select {
    flex-grow: 1;
    margin-right: 10px;
}

.form-group.audio-recording {
    bottom: 15px;
}

.form-group.mp3-upload {
    bottom: 15px;
}

.upload-mp3-btn {
    white-space: nowrap;
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.upload-mp3-btn:hover {
    background-color: #45a049;
}

label#scriptComplete-label {
    font-size: 1.1em;
    font-weight: 700;
}

input.quickview-search {
    font-size: 0.8em;
}

.entry-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 10px;
}

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

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

.entry-actions .toggle-play-btn .stop-icon {
    display: none;
}

.entry-actions .toggle-play-btn[data-playing="true"] .play-icon {
    display: none;
}

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

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.speaker-form-content {
    display: flex;
    justify-content: space-between;
}

.speaker-form-left,
.speaker-form-right {
    width: 48%;
}

.speaker-settings {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.slider-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

.slider-label {
    width: 120px;
    display: flex;
    align-items: center;
}

.slider-container {
    flex-grow: 1;
}

.slider-container input[type="range"] {
    width: 100%;
    margin-bottom: 5px;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8em;
}

.range-value {
    text-align: center;
    font-size: 0.8em;
}

.left-label, .right-label {
    flex: 1;
}

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

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

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.floating-button {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 20px;
    z-index: 999;
    background-color: #000000;
    color: #fff;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    border: none;
}

.floating-button:hover {
    background-color: #097BFA;
}

#toggleSidebarButton {
    position: static;
    display: block;
    z-index: 1000;
    background-color: #000000;
    color: #fff;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    transition: background-color 0.7s;
    margin: auto;
}

#toggleSidebarButton:hover {
    background-color: #097BFA;
}

#mobile-warning {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    font-size: 18px;
    font-weight: 700;	
	line-height: 1.3em;
    box-sizing: border-box;
}

#mobile-warning-text {
    margin-bottom: 20px;
	max-width: 500px;
}

#mobile-warning .fa-face-frown {
    font-size: 48px;
    margin-top: 20px;
}

@media (max-width: 1024px) {
    body > *:not(#mobile-warning) {
        display: none !important;
    }

    #mobile-warning {
        display: flex;
    }
}

.cover-generator-container {
    display: flex;
    justify-content: space-between;
}

.cover-form {
    width: 65%;
}

.cover-preview {
    width: 30%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#coverPlaceholder {
    width: 300px;
    height: 300px;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    border-radius: 4px;
    position: relative;
}

#coverPlaceholder .spinner {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.question-mark {
    font-size: 100px;
    color: #fff;
    font-weight: 900;
}

#coverGrid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 350px;
}

.cover-option {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform 0.2s;
    cursor: pointer;
    border-radius: 4px;
}

.cover-option:hover {
    transform: scale(1.05);
}

.sfx-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

#generateSfxBtn {
    flex: 0 0 auto;
}

#sfxPlayer {
    display: flex;
    align-items: center;
    gap: 10px;
}

#sfxAudio {
    width: 200px;
}

#downloadSfx {
    white-space: nowrap;
}


