body {
    background-color: var(--background-color, #f8f9fa);
    color: var(--text-color);
}

.container {
    margin-top: 50px;
    max-width: 640px;
}

#want-search-container {
    flex-wrap: wrap;
}

.showOfflineNotification {
    background-color: black;
    height: 40px;
    color: white;
    text-align: center;
    font-size: 20px;
    margin-top: 0px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    overflow: hidden;
    z-index: 101;
    /* 使用 flexbox 垂直居中 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hideOfflineNotification {
    display: none;
}

.result-area {
    min-height: 200px;
    border: 1px solid #ced4da;
    padding: 10px;
    background-color: #ffffff;
    border-radius: 5px;
}

.resultsList {
    display: flex;
    flex-wrap: wrap; /* 允许换行 */
    gap: 10px; /* 设置间距 */
}

.resultsList > div {
    display: flex;
    align-items: center; /* 垂直居中对齐 */
}

.select-language {
    padding: 2px 2px;
}

footer {
    bottom: 0;
    left: 0;
    right: 0;
    color: var(--text-color);
    text-align: center;
    padding: 10px 0;
}

.active {
    background-color: var(--background-color) !important;
    color: var(--text-color) !important;
}


:root {
    --background-color: white;
    --text-color: black;
    --input-background-color: white;
    --input-text-color: black;
}

textarea, #wordInput, .result-area, .modal-content {
    background-color: var(--background-color) !important;
    color: var(--text-color) !important;
}

.tag-filter {
    display: flex;
}

.tag-filter-label {
    white-space: nowrap;
}

.tag-filter-container {
    display: flex;
    flex-wrap: wrap;
}


/* 调整复习表格的样式 */
.review-table {
    table-layout: fixed;
    width: 100%;
}


/* 单词列给出最小宽度，避免被语境列压扁 */
@media (max-width: 576px) {
    .review-table .word-col {
        min-width: 1.6rem;
    }
}

/* 单词列给出最小宽度，避免被语境列压扁 */
.review-table .word-col {
    width: 30%;
    word-break: break-all;
}

/* 语境列继续单行省略，允许压缩 */
.review-table .context-cell {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 操作列不换行并尽量窄 */
.review-table .actions-col,
.review-table .actions-cell {
    white-space: nowrap;
    width: 70px;
}


/* 调整操作列按钮 */
.review-table .btn-row {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
}

.review-table .btn-row .btn {
    flex: 0 0 auto;
}
