<style>
/* All rules are scoped under .eng-bn-dict so they never leak onto
   other tables/headings elsewhere on the page. */

.eng-bn-dict h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 20px;
}
.eng-bn-dict .search-box {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 2px solid #3498db;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.3s;
    background: #ffffff;
    color: #1e293b;
}
.eng-bn-dict .search-box:focus {
    border-color: #2980b9;
}
.eng-bn-dict .table-container {
    max-height: 650px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 5px;
}
.eng-bn-dict table {
    width: 100%;
    border-collapse: collapse;
}
.eng-bn-dict th,
.eng-bn-dict td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}
.eng-bn-dict th {
    background-color: #3498db;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1;
}
.eng-bn-dict tr:hover {
    background-color: #f1f1f1;
}
.eng-bn-dict tr.no-results {
    text-align: center;
    color: #e74c3c;
    font-weight: bold;
    display: none;
}

/* =========================================================
   DARK MODE STYLES FOR ENG-BN-DICT
   ========================================================= */
body.dark-mode .eng-bn-dict h2 {
    color: #f8fafc;
}
body.dark-mode .eng-bn-dict .search-box {
    background: #1e293b;
    border-color: #475569;
    color: #f8fafc;
}
body.dark-mode .eng-bn-dict .search-box:focus {
    border-color: #60a5fa;
}
body.dark-mode .eng-bn-dict .table-container {
    border-color: #334155;
}
body.dark-mode .eng-bn-dict th,
body.dark-mode .eng-bn-dict td {
    border-bottom-color: #334155;
    color: #e2e8f0;
}
body.dark-mode .eng-bn-dict th {
    background-color: #1e293b;
    color: #60a5fa;
    border-bottom: 2px solid #334155;
}
body.dark-mode .eng-bn-dict tr:hover {
    background-color: #1e293b;
}
body.dark-mode .eng-bn-dict tr.no-results {
    color: #f87171;
}
</style>