File: /home/ic3/public_html/wp-content/plugins/school-management/assets/style/custom-header.css
/* ====== School Nav – Glass/Pastel look ====== */
:root {
--nav-bg: rgba(255, 255, 255, 0.72);
--nav-border: rgba(255, 255, 255, 0.55);
--nav-shadow: 0 8px 24px rgba(31, 63, 167, 0.08);
--nav-text: #1746d1; /* xanh dương đậm */
--nav-text-dim: #3559d6;
--nav-hover-bg: rgba(23, 70, 209, 0.08);
--nav-active: #1e3a8a; /* xanh đậm hơn cho active/underline */
}
/* Khối bao – làm nổi trên nền */
.school-nav {
position: sticky;
top: 0;
z-index: 999;
padding: 10px 14px; /* nệm để bo góc không đụng cạnh trên */
backdrop-filter: blur(6px);
-webkit-backdrop-filter: blur(6px);
}
.school-nav::before {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(
180deg,
rgba(255, 255, 255, 0.55),
rgba(255, 255, 255, 0.35)
);
z-index: -2;
}
/* Hộp chứa menu (bo góc + viền + bóng) */
#school-nav-list {
display: flex;
flex-wrap: nowrap;
gap: 8px;
list-style: none;
margin: 0 auto;
padding: 6px;
max-width: 1100px;
background: var(--nav-bg);
border: 1px solid var(--nav-border);
border-radius: 16px;
box-shadow: var(--nav-shadow);
overflow-x: auto;
overscroll-behavior-x: contain;
scrollbar-width: none; /* Firefox */
}
#school-nav-list::-webkit-scrollbar {
display: none;
} /* Chrome */
#school-nav-list .nav-item {
margin: 0;
}
/* Link – chữ đậm, pill nhẹ, underline animation */
.school-nav-item {
position: relative !important;
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
padding: 10px 16px !important;
border-radius: 12px !important;
font-weight: 600 !important;
font-size: 24px !important;
line-height: 1 !important;
color: var(--nav-text) !important;
text-decoration: none !important;
transition: background 0.2s ease, color 0.2s ease, transform 0.08s ease !important;
white-space: nowrap !important;
}
.school-nav-item:hover {
background: var(--nav-hover-bg);
color: var(--nav-text-dim);
}
.school-nav-item:active {
transform: translateY(1px);
}
/* Gạch chân chạy khi hover */
.school-nav-item::after {
content: "";
position: absolute;
left: 16px;
right: 16px;
bottom: 6px;
height: 2px;
border-radius: 2px;
background: linear-gradient(
90deg,
transparent,
var(--nav-active),
transparent
);
transform: scaleX(0);
transform-origin: center;
transition: transform 0.25s ease;
}
.school-nav-item:hover::after {
transform: scaleX(1);
}
/* Trạng thái active */
.nav-pills .nav-link.active,
.school-nav-item.is-active,
.school-nav-item[aria-current="page"] {
background: rgba(23, 70, 209, 0.12);
color: var(--nav-active);
box-shadow: inset 0 0 0 1px rgba(23, 70, 209, 0.18);
}
.school-nav-item.is-active::after {
transform: scaleX(1);
}
/* Mobile – dễ bấm, kéo ngang dạng chip */
@media (max-width: 768px) {
.school-nav {
padding: 8px 10px;
}
#school-nav-list {
gap: 6px;
padding: 6px;
}
.school-nav-item {
padding: 10px 14px;
font-size: 15px;
}
}
/* Dark section compatibility (nếu dùng [section dark="true"]) */
.section.dark .school-nav #school-nav-list {
background: rgba(24, 24, 27, 0.6);
border-color: rgba(255, 255, 255, 0.1);
}
.section.dark .school-nav .school-nav-item {
color: #e5e7eb;
}
.section.dark .school-nav .school-nav-item:hover {
background: rgba(255, 255, 255, 0.06);
color: #ffffff;
}
.section.dark .school-nav .school-nav-item.is-active {
background: rgba(255, 255, 255, 0.12);
color: #ffffff;
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}