.center {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 60px);
}

.transcribe-container {
    max-width: 600px;
    width: 90%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 2rem auto;
}

.client-note {
    font-size: 0.7rem;
    color: var(--text-dark);
    margin-top: -0.5rem;
    letter-spacing: 0.5px;
}

.drop-zone {
    border: 2px dashed var(--text-dark);
    border-radius: 8px;
    padding: 40px;  /* Make padding equal on all sides */
    margin: 32px auto;  /* Center with auto margins */
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.02);
    width: 320px;  /* Fixed width instead of percentage */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Result overlay */
.result-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
    justify-content: center;
    align-items: center;
}

.result-overlay.visible {
    display: flex;
}

.result-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    transition: background 0.4s ease, backdrop-filter 0.4s ease, -webkit-backdrop-filter 0.4s ease;
    cursor: pointer;
}

.result-overlay.visible .result-backdrop {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.result-modal {
    position: relative;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 1.5rem 2rem;
    box-sizing: border-box;
    opacity: 0;
    transform: scale(0.92) translateY(12px);
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.result-overlay.show .result-modal {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.result-modal h3 {
    text-align: center;
    margin: 0 0 1rem;
    flex-shrink: 0;
}

.result-text {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    padding: 1.25rem 1.5rem;
    line-height: 1.7;
    font-size: 15px;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    text-align: left;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.result-actions {
    display: flex;
    justify-content: center;
    flex-shrink: 0;
    gap: 12px;
    margin-top: 1rem;
}

.result-actions button {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text);
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.result-actions button:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.drop-zone:hover {
    border-color: var(--text);
    background: rgba(255, 255, 255, 0.04);
}

.drop-zone.dragging {
    border-color: var(--text-focus);
    background: rgba(255, 255, 255, 0.06);
}

.drop-text {
    color: var(--text);
    margin: 0 0 8px 0;
}

.drop-hint {
    font-size: 14px;
    margin: 0;
}

/* Loading state */
.drop-zone.loading {
    border-color: var(--text);
    animation: pulse 1.5s infinite;
}

.drop-zone.loading .drop-text::after {
    content: '...';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* Per-file download bars */
.chunk-summary {
    width: 100%;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text);
    opacity: 0.8;
    margin-top: 14px;
    margin-bottom: 2px;
}

.download-container {
    width: 100%;
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.download-row {
    width: 100%;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.download-row.done {
    opacity: 0.4;
}

.download-row.active {
    opacity: 1;
}

.download-row.active .download-fill {
    background: var(--text-focus);
}

.download-fill.indeterminate {
    width: 100% !important;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--text-focus) 50%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.download-label {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text);
    opacity: 0.7;
    margin-bottom: 3px;
}

.chunk-row .download-label {
    justify-content: flex-start;
    gap: 6px;
}

.download-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 60%;
}

.download-size {
    flex-shrink: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    max-width: 55%;
    text-align: right;
}

.download-bar {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
}

.download-fill {
    width: 0%;
    height: 100%;
    background: var(--text-focus);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.progress-container {
    width: 100%;
    margin-top: 20px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: var(--text-focus);
    transition: width 0.3s ease;
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-top: 8px;
    color: var(--text);
}

.progress-stats span {
    opacity: 0.8;
}