/* === Allgemeines Layout === */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0a0e27;
    color: #e0e0e0;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

/* Hauptcontainer zentriert, mit voller Breite */
.transcript-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    background: #1a1d2e;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    box-sizing: border-box;
    border: 1px solid #2a2f45;
}

/* Header Section */
.header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.header-title h1 {
    margin: 0;
    font-size: 32px;
    color: #4a9eff;
}

.subtitle {
    margin: 5px 0 0 0;
    color: #7a8599;
    font-size: 14px;
}

/* Statistik Dashboard */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #252938;
    border-radius: 10px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    border: 1px solid #2a2f45;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
    border-color: #4a9eff;
}

.stat-icon {
    font-size: 36px;
    line-height: 1;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 26px;
    font-weight: 700;
    color: #4a9eff;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    color: #7a8599;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Controls Section */
.controls-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    gap: 20px;
    flex-wrap: wrap;
}

.search-wrapper {
    display: flex;
    gap: 10px;
    flex: 1;
    min-width: 250px;
}

/* Suchfeld */
#search {
    flex: 1;
    padding: 12px 18px;
    border-radius: 8px;
    border: 1px solid #2a2f45;
    background: #252938;
    color: white;
    font-size: 14px;
    transition: all 0.3s ease;
}

#search:focus {
    outline: none;
    border-color: #4a9eff;
    box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.1);
}

/* Action Buttons Container */
.action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Buttons */
button {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

button:active {
    transform: translateY(0);
}

/* Farbliche Buttons */
.button-view {
    background: #4a9eff;
    color: #fff;
}

.button-view:hover {
    background: #3a8eef;
}

.button-delete {
    background: #ef4444;
    color: #fff;
}

.button-delete:hover {
    background: #dc2626;
}

.button-rename {
    background: #10b981;
    color: #fff;
}

.button-rename:hover {
    background: #059669;
}

.button-logout {
    background: #ef4444;
    color: #fff;
    padding: 12px 24px;
}

.button-logout:hover {
    background: #dc2626;
}

.button-clear {
    background: #3f4555;
    color: #fff;
    padding: 12px 16px;
    border: 1px solid #4a5568;
}

.button-clear:hover {
    background: #4a5568;
}

.button-sort {
    background: #6366f1;
    color: #fff;
}

.button-sort:hover {
    background: #4f46e5;
}

.button-refresh {
    background: #14b8a6;
    color: #fff;
}

.button-refresh:hover {
    background: #0d9488;
}

.button-select-all {
    background: #8b5cf6;
    color: #fff;
}

.button-select-all:hover {
    background: #7c3aed;
}

.button-delete-selected {
    background: #f97316;
    color: #fff;
}

.button-delete-selected:hover {
    background: #ea580c;
}

/* Tabelle Wrapper */
.table-wrapper {
    overflow-x: auto;
    border-radius: 10px;
    background: #252938;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    border: 1px solid #2a2f45;
}

/* Tabelle */
table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 16px;
    text-align: left;
    vertical-align: middle;
}

th {
    background: #2a2f45;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #9ca3af;
    border-bottom: 2px solid #4a9eff;
    position: sticky;
    top: 0;
    z-index: 10;
}

.file-row {
    border-bottom: 1px solid #2a2f45;
    transition: all 0.2s ease;
}

.file-row:hover {
    background: #2a2f45;
}

.file-link {
    color: #4a9eff;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.file-link:hover {
    color: #60a5fa;
    text-decoration: underline;
}

.size-cell, .date-cell {
    color: #aaa;
    font-size: 13px;
}

.action-cell {
    display: flex;
    gap: 5px;
    flex-wrap: nowrap;
}

.action-cell button {
    padding: 8px 12px;
    font-size: 12px;
}

.rename-input {
    background: #1a1d2e;
    color: white;
    padding: 8px 12px;
    border: 1px solid #2a2f45;
    border-radius: 6px;
    width: 100%;
    box-sizing: border-box;
    font-size: 13px;
    transition: all 0.2s ease;
}

.rename-input:focus {
    outline: none;
    border-color: #4a9eff;
    box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.1);
}

.empty-state, .error-state {
    text-align: center;
    padding: 40px;
    font-size: 16px;
    color: #6b7280;
}

.error-state {
    color: #ef4444;
}

/* Checkbox Styling */
input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #4a9eff;
}

/* Login Container Styling */
#login-container {
    max-width: 400px;
    text-align: center;
}

#login-container h2 {
    margin-top: 0;
    font-size: 28px;
    color: #4a9eff;
}

#login-container label {
    display: block;
    margin: 20px 0 8px 0;
    text-align: left;
    color: #9ca3af;
    font-size: 14px;
}

#login-container input[type="password"] {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #2a2f45;
    background: #252938;
    color: white;
    font-size: 14px;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

#login-container input[type="password"]:focus {
    outline: none;
    border-color: #4a9eff;
    box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.1);
}

#login-container button {
    width: 100%;
    margin-top: 20px;
    padding: 14px;
    font-size: 16px;
    background: #4a9eff;
    color: white;
}

#login-container button:hover {
    background: #3a8eef;
}

/* Fehlermeldung */
#login-error {
    color: #ef4444;
    margin-top: 15px;
    font-size: 14px;
    font-weight: 500;
}

.size-cell, .date-cell {
    color: #9ca3af;
    font-size: 13px;
}

/* Pagination Container */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    padding: 20px;
    background: #252938;
    border-radius: 10px;
    border: 1px solid #2a2f45;
    flex-wrap: wrap;
    gap: 15px;
}

.pagination-info {
    color: #9ca3af;
    font-size: 14px;
    font-weight: 500;
}

.pagination-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.page-indicator {
    padding: 10px 20px;
    background: #2a2f45;
    border-radius: 8px;
    font-weight: 600;
    color: #4a9eff;
    border: 1px solid #3a4558;
}

.button-page {
    background: #3f4555;
    color: #fff;
    padding: 10px 16px;
    font-size: 13px;
    transition: all 0.2s ease;
}

.button-page:hover:not(:disabled) {
    background: #4a9eff;
}

.button-page:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.items-per-page {
    display: flex;
    align-items: center;
    gap: 10px;
}

.items-per-page label {
    color: #9ca3af;
    font-size: 14px;
    font-weight: 500;
}

.items-per-page select {
    padding: 10px 15px;
    background: #2a2f45;
    color: #fff;
    border: 1px solid #3a4558;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.items-per-page select:focus {
    outline: none;
    border-color: #4a9eff;
    box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.1);
}

.items-per-page select:hover {
    border-color: #4a9eff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .controls-section {
        flex-direction: column;
        align-items: stretch;
    }

    .search-wrapper, .action-buttons {
        width: 100%;
    }

    .action-buttons {
        justify-content: stretch;
    }

    .action-buttons button {
        flex: 1;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .header-section {
        flex-direction: column;
        align-items: stretch;
    }

    table {
        font-size: 12px;
    }

    th, td {
        padding: 10px 8px;
    }

    .pagination-container {
        flex-direction: column;
        align-items: stretch;
    }

    .pagination-controls {
        justify-content: center;
    }

    .pagination-info, .items-per-page {
        text-align: center;
        justify-content: center;
    }
}
