body {
    font-family: 'Sarabun', sans-serif;
    font-size: 15px;
}

/* ═══════════════════════════════════════
   NAVBAR
═══════════════════════════════════════ */
.nb-main {
    background: linear-gradient(135deg, #1a56db 0%, #1e3a8a 100%);
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
    padding-top: 0;
    padding-bottom: 0;
    min-height: 58px;
}

/* Brand */
.nb-brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.18);
    border-radius: 8px;
    font-size: 1.15rem;
    flex-shrink: 0;
}
.nb-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.nb-brand-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.01em;
}
.nb-brand-sub {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.65);
    font-weight: 400;
}

/* Nav menu list */
.nb-menu-list {
    gap: 2px;
}

/* Nav link */
.nb-link {
    display: flex !important;
    align-items: center;
    gap: 6px;
    padding: 0 14px !important;
    height: 58px;
    font-size: 0.88rem;
    font-weight: 500;
    color: rgba(255,255,255,0.82) !important;
    border-bottom: 3px solid transparent;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
    white-space: nowrap;
}
.nb-link i {
    font-size: 1rem;
    opacity: 0.85;
}
.nb-link:hover,
.nb-link:focus {
    color: #fff !important;
    background: rgba(255,255,255,0.08);
    border-bottom-color: rgba(255,255,255,0.5);
}
.nb-link.active,
.nb-link[aria-current="page"] {
    color: #fff !important;
    border-bottom-color: #facc15;
    background: rgba(255,255,255,0.1);
    font-weight: 600;
}

/* Accent link (จองห้อง) */
.nb-link-accent {
    color: #fde68a !important;
}
.nb-link-accent i {
    opacity: 1;
}
.nb-link-accent:hover {
    color: #fff !important;
    border-bottom-color: #facc15;
}

/* Dropdown */
.nb-dropdown {
    background: #1e3a8a;
    border-radius: 10px !important;
    min-width: 200px;
    overflow: hidden;
    margin-top: 0 !important;
}
.nb-dropdown-item {
    display: flex !important;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.85) !important;
    font-size: 0.88rem;
    padding: 10px 18px !important;
    transition: background 0.12s;
}
.nb-dropdown-item i {
    font-size: 0.95rem;
    opacity: 0.75;
    width: 18px;
    text-align: center;
}
.nb-dropdown-item:hover {
    background: rgba(255,255,255,0.12) !important;
    color: #fff !important;
}
.nb-dropdown-item:hover i {
    opacity: 1;
}

/* User avatar button */
.nb-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    font-size: 0.95rem;
    flex-shrink: 0;
}
.nb-username {
    font-size: 0.85rem;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.nb-user-btn {
    display: flex !important;
    align-items: center;
    gap: 8px;
}

/* Login button */
.nb-login-btn {
    background: rgba(255,255,255,0.15) !important;
    border-radius: 8px;
    margin: 10px 4px;
    height: auto !important;
    padding: 6px 14px !important;
    border-bottom: none !important;
    font-size: 0.85rem;
}
.nb-login-btn:hover {
    background: rgba(255,255,255,0.25) !important;
    border-bottom: none !important;
}

/* Dropdown extras */
.nb-divider { border-color: rgba(255,255,255,0.15) !important; margin: 4px 0 !important; }
.nb-logout { color: #fca5a5 !important; }
.nb-logout:hover { background: rgba(239,68,68,0.2) !important; color: #fecaca !important; }

/* Responsive — mobile */
@media (max-width: 767px) {
    .nb-main { min-height: 52px; padding: 6px 0; }
    .nb-link { height: auto; padding: 10px 16px !important; border-bottom: none; border-left: 3px solid transparent; }
    .nb-link:hover, .nb-link.active { border-left-color: #facc15; border-bottom: none; }
    .nb-dropdown { background: rgba(255,255,255,0.08); box-shadow: none !important; }
    .nb-login-btn { margin: 6px 12px; }
}

/* Bootstrap Icons vertical alignment */
.bi {
    vertical-align: -0.125em;
}

/* Table header */
.table th {
    font-weight: 600;
    white-space: nowrap;
}

/* Card footer */
.card-footer {
    background-color: var(--bs-light);
}

/* Day checkbox pills */
.day-check {
    cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s;
    user-select: none;
}

/* Schedule table */
.schedule-empty {
    font-size: 0.8rem;
    color: #aaa !important;
    background-color: #fafafa;
}
.schedule-cell-content {
    position: relative;
    min-height: 60px;
}
.schedule-table {
    border-left: 1px solid var(--bs-border-color);
    border-top: 1px solid var(--bs-border-color);
}
.schedule-table td,
.schedule-table th {
    font-size: 0.82rem;
    border-right: 1px solid var(--bs-border-color);
    border-bottom: 1px solid var(--bs-border-color);
}
