:root {
    --background-light: #f5f5f5;
    --background-dark: #1E293B;
    --text-light: #333;
    --text-dark: #E2E8F0;
    --accent-color: #06A9F2;
    --button-hover: #0284C7;
    --table-header: #e3f2fd;
}

/* Light Mode */
body {
    background: var(--background-light);
    color: var(--text-light);
    font-family: "Poppins", sans-serif;
    transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
}

/* Dark Mode */
body.dark-mode {
    background: var(--background-dark);
    color: var(--text-dark);
}

/* ==== CUSTOM SCROLLBAR (MAC-STYLE) ==== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(150, 150, 150, 0.4);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(150, 150, 150, 0.7);
}

body.dark-mode ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
}

body.dark-mode ::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Allgemeine Container */
.dashboard-container, .container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

/* Header */
h1 {
    text-align: center;
    color: var(--accent-color);
    font-size: 28px;
    font-weight: bold;
}

/* Dashboard Steuerung */
.dashboard-controls {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 10px;
}

/* Buttons */
.btn-custom, .btn-primary {
    background: var(--accent-color);
    border: none;
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: bold;
    transition: background 0.3s, transform 0.2s;
}

.btn-custom:hover, .btn-primary:hover {
    background: var(--button-hover);
    transform: scale(1.05);
}

@keyframes overlayFadeIn {
    from { background: rgba(0, 0, 0, 0); backdrop-filter: blur(0px); -webkit-backdrop-filter: blur(0px); }
    to { background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
}

@keyframes modalScaleIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Upload Overlay */
.overlay, .aivoice-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Wenn via JS auf display: flex gesetzt wird, triggert die Animation */
.overlay[style*="display: flex"], .overlay[style*="display: block"],
.aivoice-overlay[style*="display: flex"], .aivoice-overlay[style*="display: block"] {
    animation: overlayFadeIn 0.25s ease-out forwards;
}

.overlay-content {
    background: var(--background-light);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    text-align: center;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 1);
    animation: modalScaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

body.dark-mode .overlay-content {
    background: rgba(30, 41, 59, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Close Button für Overlay */
.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-light);
}

body.dark-mode .close-btn {
    color: var(--text-dark);
}

/* Form Elemente */
.form-group {
    margin-bottom: 15px;
}

/* Base input styling for overlays and global */
input[type="text"], input[type="number"], select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    box-sizing: border-box;
}

body.dark-mode input[type="text"], 
body.dark-mode input[type="number"], 
body.dark-mode select, 
body.dark-mode textarea {
    background: rgba(20, 25, 35, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-dark);
}

/* The Glowing Focus Effect */
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(6, 169, 242, 0.3);
    background: #ffffff;
}

body.dark-mode input:focus, 
body.dark-mode select:focus, 
body.dark-mode textarea:focus {
    background: rgba(30, 41, 59, 1);
    box-shadow: 0 0 0 3px rgba(6, 169, 242, 0.5);
}

/* Drag & Drop Upload */
.drop-area {
    border: 2px dashed var(--accent-color);
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s;
    background: var(--background-light);
    border-radius: 12px;
}

.drop-area:hover {
    border-color: var(--button-hover);
}

.drop-area.dragover {
    background-color: rgba(0, 0, 0, 0.05);
}

body.dark-mode .drop-area {
    background: var(--background-dark);
}

/* Tabellen-Dashboard */
.table-container {
    background: var(--background-light);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

body.dark-mode .table-container {
    background: var(--background-dark);
}

/* Tabellenstruktur */
.table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
}

.table th {
    background: var(--table-header);
    color: var(--text-light);
    padding: 12px;
    text-align: left;
    font-size: 16px;
    font-weight: bold;
}

body.dark-mode .table th {
    background: var(--accent-color);
    color: white;
}

.table td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
    font-size: 14px;
}

/* Hover-Effekt für Tabellenzeilen */
.table tbody tr {
    transition: background 0.3s, transform 0.2s ease-in-out;
}

.table tbody tr:hover {
    background: rgba(6, 169, 242, 0.15);
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.3s ease-in-out;
}

.status-badge:hover {
    transform: scale(1.1);
}

.status-processing {
    background: #FACC15;
    color: #1E293B;
    animation: pulse 1s infinite;
}

.status-completed {
    background: #22C55E;
    color: white;
}

.status-uploaded {
    background: var(--accent-color);
    color: white;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* Actions Column */
.actions {
    display: flex;
    gap: 8px;
}

.actions .btn {
    flex: 1;
    text-align: center;
    padding: 10px;
    font-size: 14px;
}
.registration-container {
    max-width: 400px;
    margin: auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.registration-container h2 {
    margin-bottom: 15px;
    color: #06A9F2;
}

.registration-container input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.btn {
    background: #06A9F2;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    width: 100%;
    border-radius: 5px;
    font-weight: bold;
}

.btn:hover {
    background: #0284C7;
}
.forgot-password-container,
.reset-password-container {
    max-width: 400px;
    margin: auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.forgot-password-container h2,
.reset-password-container h2 {
    margin-bottom: 15px;
    color: #06A9F2;
}

.forgot-password-container input,
.reset-password-container input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.btn {
    background: #06A9F2;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    width: 100%;
    border-radius: 5px;
    font-weight: bold;
}

.btn:hover {
    background: #0284C7;
}
.forgot-password {
    margin-top: 10px;
    font-size: 14px;
}

.forgot-password a {
    color: #06A9F2;
    text-decoration: none;
    font-weight: bold;
}

.forgot-password a:hover {
    text-decoration: underline;
}
.subscribe-container {
    max-width: 400px;
    margin: auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.subscribe-container h2 {
    margin-bottom: 15px;
    color: #06A9F2;
}

.subscribe-container p {
    font-size: 16px;
    margin-bottom: 20px;
}

.btn {
    background: #06A9F2;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    width: 100%;
    border-radius: 5px;
    font-weight: bold;
}

.btn:hover {
    background: #0284C7;
}
.subscribe-container {
    max-width: 400px;
    margin: auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.subscribe-container h2 {
    margin-bottom: 15px;
    color: #06A9F2;
}

.subscribe-container p {
    font-size: 16px;
    margin-bottom: 20px;
}

.btn {
    background: #06A9F2;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    width: 100%;
    border-radius: 5px;
    font-weight: bold;
}

.btn:hover {
    background: #0284C7;
}
.status-badge {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.3s ease-in-out;
}

.status-badge:hover {
    transform: scale(1.1);
}

.status-uploaded {
    background: var(--accent-color);
    color: white;
}

.status-audio {
    background: #FFA500; /* Orange für Audio-Optimierung */
    color: white;
}

.status-transcription {
    background: #9370DB; /* Lila für Transcription */
    color: white;
}

.status-completed {
    background: #22C55E;
    color: white;
}

.status-processing {
    background: #FACC15;
    color: #1E293B;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}
.status-badge {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.3s ease-in-out;
}

.status-badge:hover {
    transform: scale(1.1);
}

.status-uploaded {
    background: var(--accent-color);
    color: white;
}

.status-audio {
    background: #FFA500; /* Orange für Audio-Optimierung */
    color: white;
}

.status-transcription {
    background: #9370DB; /* Lila für Transcription */
    color: white;
}

.status-completed {
    background: #22C55E;
    color: white;
}

.status-processing {
    background: #FACC15;
    color: #1E293B;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}
.container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

/* Seitenleisten */
.sidebar {
    width: 20%;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

/* Hauptinhalt */
.main-content {
    width: 55%;
}

.transcription-box {
    padding: 15px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-height: 500px;
    overflow-y: auto;
    white-space: pre-wrap;
}

.btn {
    display: block;
    margin: 10px 0;
    padding: 10px;
    width: 100%;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
}

.btn-primary {
    background: #06A9F2;
    color: white;
}

.btn-secondary {
    background: #ccc;
    color: black;
}

.btn-warning {
    background: #FFA500;
    color: white;
}
.btn-danger {
    background: #DC3545;
    color: white;
}

.btn-danger:hover {
    background: #C82333;
}
#translateLang {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
}

.transcription-box {
    padding: 15px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-height: 500px;
    overflow-y: auto;
    white-space: pre-wrap;
    font-size: 16px;
}
.container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

/* Seitenleisten */
.sidebar {
    width: 20%;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

/* Hauptinhalt */
.main-content {
    width: 55%;
}

.transcription-box {
    padding: 15px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-height: 500px;
    overflow-y: auto;
    white-space: pre-wrap;
    font-size: 16px;
}

/* Buttons */
.btn {
    display: block;
    margin: 10px 0;
    padding: 10px;
    width: 100%;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
}

.btn-primary {
    background: #06A9F2;
    color: white;
}

.btn-secondary {
    background: #ccc;
    color: black;
}

.btn-warning {
    background: #FFA500;
    color: white;
}

.btn-danger {
    background: #DC3545;
    color: white;
}

#translateLang {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
}
.container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

/* Transkription in zwei Spalten */
.transcription-container {
    display: flex;
    gap: 20px;
}

.transcription-box {
    width: 50%;
    padding: 15px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-height: 500px;
    overflow-y: auto;
    white-space: pre-wrap;
    font-size: 16px;
}

/* Sidebar */
.sidebar {
    width: 20%;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

/* Buttons */
.btn {
    display: block;
    margin: 10px 0;
    padding: 10px;
    width: 100%;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
}

.btn-primary {
    background: #06A9F2;
    color: white;
}

.btn-secondary {
    background: #ccc;
    color: black;
}

.btn-warning {
    background: #FFA500;
    color: white;
}

.btn-danger {
    background: #DC3545;
    color: white;
}

#translateLang {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
}
.transcription-box {
    width: 90%;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-height: 600px;
    overflow-y: auto;
    white-space: pre-wrap;
    font-size: 16px;
    margin: 10px auto;
}

/* Abstand zwischen Original und Übersetzung */
.translated-box {
    margin-top: 20px;
}

/* Sidebar Optionen */
.options {
    text-align: center;
}

.btn-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

/* Buttons */
.btn {
    display: block;
    padding: 12px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
}

.btn-primary {
    background: #06A9F2;
    color: white;
}

.btn-primary:hover {
    background: #0284C7;
}

.btn-secondary {
    background: #ccc;
    color: black;
}

.btn-warning {
    background: #FFA500;
    color: white;
}

.btn-danger {
    background: #DC3545;
    color: white;
}

.btn-danger:hover {
    background: #C82333;
}

#translateLang {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
}
