html,
body {
min-height: 100%;
background-color: #f8f9fa;
}
body {
padding-top: var(--top-header-height);
padding-bottom: var(--bottom-nav-height);
-webkit-tap-highlight-color: transparent;
}
/* ==================================================================== */
/* Bố cục Header Trái - Giữa - Phải */
/* ==================================================================== */
.top-header {
position: fixed;
top: 0;
left: 0;
right: 0;
body {
min-height: 100%;
background-color: #f8f9fa;
}
body {
padding-top: var(--top-header-height);
padding-bottom: var(--bottom-nav-height);
-webkit-tap-highlight-color: transparent;
}
/* ==================================================================== */
/* Bố cục Header Trái - Giữa - Phải */
/* ==================================================================== */
.top-header {
position: fixed;
top: 0;
left: 0;
right: 0;
height: var(--top-header-height);
.top-header {
position: fixed;
top: 0;
left: 0;
right: 0;
height: var(--top-header-height);
background-color: #ffffff;
border-bottom: 1px solid #dee2e6;
z-index: 1030;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 1rem;
gap: 1rem;
}
.header-side-left,
.header-side-right {
flex: 1;
display: flex;
.header-center {
flex-grow: 1;
text-align: center;
}
.app-title {
font-weight: 600;
font-size: 1.2rem;
color: var(--primary-color);
white-space: nowrap;
}
.btn-header-action {
border: none;
background: none;
font-size: 1.5rem;
padding: 0.5rem;
color: #6c757d;
transition: color 0.2s ease;
line-height: 1;
}
.btn-header-action:hover {
.app-title {
font-weight: 600;
font-size: 1.2rem;
color: var(--primary-color);
white-space: nowrap;
}
.btn-header-action {
border: none;
background: none;
font-size: 1.5rem;
padding: 0.5rem;
color: #6c757d;
transition: color 0.2s ease;
line-height: 1;
}
.btn-header-action:hover {
color: var(--primary-color);
}
.user-profile .user-avatar {
border-radius: 50%;
.bottom-nav {
position: fixed;
bottom: 0;
left: 0;
right: 0;
height: var(--bottom-nav-height);
background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
border-top: 1px solid rgba(0, 0, 0, 0.08);
display: flex;
justify-content: space-around;
align-items: center;
box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
backdrop-filter: blur(10px);
z-index: 1030;
border-radius: 20px 20px 0 0;
}
.bottom-nav a {
display: flex;
flex-direction: column;
align-items: center;
.main-content {
padding: 0.25rem 0 2rem 0;
margin: 0;
width: 100vw;
max-width: 100vw;
}
#content-display {
transition: opacity 0.2s ease-in-out;
margin: 0;
padding: 0;
width: 100vw;
max-width: 100vw;
}
.fade-out {
opacity: 0 !important;
}
/* MỚI: CSS cho Tab cố định và Tìm kiếm từ vựng */
.vocab-sticky-header {
position: -webkit-sticky;
