
.body {
    background: var(--Color50, #DEDEDE80);
    line-height: 1.6;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}


.topbar, .breadcrumb {
    display: flex;
    align-items: center;
    background-color: #FFFFFF;
    padding: 0 48px;
    height: 72px;
    color: var(--gray-gray-900, #0C0C0C);
    box-sizing: border-box;
    box-shadow: 0px 1px 4px 0px #00000040;
    justify-content: space-between;
    width: 100%;
}

.topbar {
    position: relative;
}

.topbar .logo {
    width: 138px;
    height: 34.75px;
    object-fit: contain;
}

.right-container {
    display: flex;
    align-items: center;
    gap: 14px;
}

.user-profile {
    display: flex;
    align-items: center;
    padding: 4px 12px;
    gap: 8px;
    border-radius: 8px;
    background-color: #DEDEDE80;
    text-decoration: none;
}

.username-email {
    font-size: 14px;
    color: #0C0C0C;
    white-space: nowrap;
}

.btn-logout {
    display: flex;
    align-items: center;
    font-size: 16px;
    font-style: normal;
    color: #C52B27;
    border-radius: 8px;
    padding: 12px 24px;
    gap: 8px;
    background-color: #FFFFFF;
    border: 1px solid var(--primary, #C52B27);
    text-decoration: none;
}

.main-nav.center-bar {
    display: flex;
    gap: 24px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.main-nav a {
    font-size: 20px;
    text-align: center;
    color: var(--gray-gray-900, #0C0C0C);
    text-decoration: none;
    cursor: pointer;
    padding: 5px 0;
    position: relative;
}

.main-nav a:hover {
    color: var(--primary, #C52B27);
}

.main-nav a.active { 
    color: var(--primary, #C52B27);
}

.main-nav a.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1.6px;
    background-color: var(--primary, #C52B27);
}

.user-profile img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    border-radius: 50%;
}

.user-profile a {
    text-decoration: none;
}
.main-nav *{
    margin-bottom: 0;
}

@media (max-width: 1024px) {
    .username-email {
        display: none; /* ซ่อน email เมื่อหน้าจอแคบ */
    }

    .user-profile {
        padding: 4px; /* ลด padding ให้เล็กลง */
        gap: 4px;
    }

    .btn-logout {
        padding: 8px 12px;
        font-size: 14px;
    }
}
