/* KnowledgeGraph – Ergänzungen zu Pico CSS */

/* Login */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.login-card {
    max-width: 400px;
    width: 100%;
}

.error {
    color: var(--pico-del-color);
    font-weight: bold;
}

/* Dashboard Stats */
.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0;
    line-height: 1.2;
}

.stat-error {
    color: var(--pico-del-color);
}

/* Tags */
.tag {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    margin: 0.1rem;
    border-radius: 1rem;
    background: var(--pico-secondary-background);
    color: var(--pico-secondary-inverse);
    font-size: 0.8rem;
    text-decoration: none;
}

.tag-topic {
    background: var(--pico-primary-background);
    color: var(--pico-primary-inverse);
}

/* Status Badges */
.badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    font-weight: bold;
}

.badge-done { background: #2e7d32; color: #fff; }
.badge-pending { background: #9e9e9e; color: #fff; }
.badge-error { background: #c62828; color: #fff; }
.badge-transcribing,
.badge-cleaning,
.badge-downloading { background: #1565c0; color: #fff; }
.badge-transcribed,
.badge-cleaned { background: #00838f; color: #fff; }

/* Transcript */
.transcript {
    max-height: 70vh;
    overflow-y: auto;
    border: 1px solid var(--pico-muted-border-color);
    border-radius: var(--pico-border-radius);
    padding: 1rem;
}

.transcript-segment {
    display: flex;
    gap: 1rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--pico-muted-border-color);
}

.transcript-segment:last-child {
    border-bottom: none;
}

.transcript-time {
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--pico-muted-color);
    white-space: nowrap;
    min-width: 6rem;
    cursor: default;
}

.transcript-text {
    flex: 1;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
}

/* Collection Dropdown */
nav .dropdown summary {
    font-size: 0.9rem;
}

nav .dropdown a.active {
    font-weight: bold;
}

/* Build Hash */
.build-hash {
    font-family: monospace;
    color: var(--pico-muted-color);
}

/* Progress bars in tables */
table progress {
    width: 80px;
    height: 8px;
}
