/* EnglishSpeak — normalize text size in Android in-app browsers (Zalo, etc.) */
html {
  -webkit-text-size-adjust: 100% !important;
  text-size-adjust: 100% !important;
}


:root {
    --student-nav-height: 74px;
    --student-nav-width: 520px;
    --student-nav-active: #1677c8;
    --student-nav-text: #71869a;
    --student-nav-border: #dce9f2;
    --student-nav-background: rgba(255, 255, 255, 0.97);
}

body {
    padding-bottom: calc(var(--student-nav-height) + env(safe-area-inset-bottom) + 12px);
}

.student-bottom-nav {
    position: fixed;
    z-index: 1000;
    left: 50%;
    bottom: 0;
    width: min(100%, var(--student-nav-width));
    min-height: var(--student-nav-height);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: stretch;
    padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--student-nav-border);
    background: var(--student-nav-background);
    box-shadow: 0 -8px 24px rgba(28, 72, 105, 0.10);
    backdrop-filter: blur(14px);
    transform: translateX(-50%);
}

.student-bottom-nav__item {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 4px 2px;
    border-radius: 14px;
    color: var(--student-nav-text);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.student-bottom-nav__icon {
    width: 38px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    font-size: 23px;
    line-height: 1;
    transition: transform 0.15s ease, background 0.15s ease;
}

.student-bottom-nav__label {
    max-width: 100%;
    overflow: hidden;
    font-size: 11.5px;
    line-height: 1.15;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.student-bottom-nav__item.is-active {
    color: var(--student-nav-active);
}

.student-bottom-nav__item.is-active .student-bottom-nav__icon {
    background: #e6f3ff;
    transform: translateY(-1px);
}

.student-bottom-nav__item.is-active::after {
    content: "";
    position: absolute;
    bottom: 1px;
    width: 22px;
    height: 3px;
    border-radius: 999px;
    background: var(--student-nav-active);
}

.student-bottom-nav__item:active .student-bottom-nav__icon {
    transform: scale(0.92);
}

@media (min-width: 521px) {
    .student-bottom-nav {
        border-right: 1px solid var(--student-nav-border);
        border-left: 1px solid var(--student-nav-border);
        border-radius: 18px 18px 0 0;
    }
}
