/* Header Layout */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.page-header h3 {
    margin-bottom: 0;
    line-height: 1.5; /* 设置标题的行高 */
}

/* Make settings button smaller */
.page-header button {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    line-height: 1.5; /* 设置按钮的行高 */
    margin-top: 0.1rem; /* 调整按钮的上边距 */
}

/* Ensure header and nav are centered */
header,
nav {
    text-align: center;
}

/* Make sure the settings button is not too wide */
header button {
    max-width: 200px;
    margin: 0; /* 移除自动居中 */
}

.error-box {
    display: none; /* Hidden by default */
    margin-bottom: 1rem;
    padding: 0.75rem;
    border: 1px solid var(--pico-form-element-invalid-border-color);
    color: var(--pico-form-element-invalid-border-color);
    border-radius: var(--pico-border-radius);
    background-color: rgba(214, 69, 65, 0.1);
}

article hr {
    border-top: 1px solid var(--pico-muted-border-color);
}

/* Tab Content Styles */
.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Utility for hiding elements */
.hidden {
    display: none;
}

/* Add some spacing to the download links */
#synthesis-download-link,
#subtitle-download-link {
    margin-top: 0.5rem;
}