* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Prompt', sans-serif;
    padding-top: 70px;
}

.navbar {
    background-color: #000000;
    width: 100%;
    max-width: 100%;
    height: 70px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    overflow-x: hidden;
    overflow-y: visible;
}

.navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.navbar-container {
    max-width: 1400px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

.navbar-left {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.navbar-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.navbar-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 30px;
}

.navbar-menu li {
    display: inline-block;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    font-family: 'Prompt', sans-serif;
    padding: 8px 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover {
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.nav-link svg {
    stroke: currentColor;
}

.navbar-right {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 15px;
}

.register-btn {
    background: linear-gradient(135deg, #4AB5E0, #3A9BC8);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    font-family: 'Prompt', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(74, 181, 224, 0.4);
    margin-right: 10px;
}

.register-btn:hover {
    background: linear-gradient(135deg, #5AC8FA, #4AB5E0);
    box-shadow: 0 4px 12px rgba(74, 181, 224, 0.6);
    transform: translateY(-1px);
}

.register-btn svg {
    stroke: white;
}

.login-btn {
    background: linear-gradient(135deg, #5AC8FA, #4AB5E0);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    font-family: 'Prompt', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(90, 200, 250, 0.4);
}

.login-btn:hover {
    background: linear-gradient(135deg, #6BC4F5, #5AC8FA);
    box-shadow: 0 4px 12px rgba(90, 200, 250, 0.6);
    transform: translateY(-1px);
}

.login-btn svg {
    stroke: white;
}

.manage-btn {
    background: linear-gradient(135deg, #5AC8FA, #4AB5E0);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    font-family: 'Prompt', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(90, 200, 250, 0.4);
}

.manage-btn:hover {
    background: linear-gradient(135deg, #6BC4F5, #5AC8FA);
    box-shadow: 0 4px 12px rgba(90, 200, 250, 0.6);
    transform: translateY(-1px);
}

.manage-btn svg {
    stroke: white;
}

.logout-btn {
    background: linear-gradient(135deg, #fa5a5a, #e04a4a);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    font-family: 'Prompt', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(250, 90, 90, 0.4);
}

.logout-btn:hover {
    background: linear-gradient(135deg, #f56b6b, #fa5a5a);
    box-shadow: 0 4px 12px rgba(250, 90, 90, 0.6);
    transform: translateY(-1px);
}

.logout-btn svg {
    stroke: white;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}


/* Mobile Menu Sidebar */
.mobile-menu-sidebar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    max-width: 85%;
    height: 100vh;
    background-color: #000000;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
    flex-direction: column;
    scrollbar-width: thin;
    scrollbar-color: rgba(90, 200, 250, 0.5) transparent;
    -ms-overflow-style: none;
}

.mobile-menu-sidebar::-webkit-scrollbar {
    width: 6px;
}

.mobile-menu-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.mobile-menu-sidebar::-webkit-scrollbar-thumb {
    background: rgba(90, 200, 250, 0.5);
    border-radius: 3px;
}

.mobile-menu-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(90, 200, 250, 0.7);
}

.mobile-menu-sidebar.active {
    transform: translateX(0);
    display: flex;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.mobile-menu-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
    flex-shrink: 0;
}

.mobile-login-btn {
    background: linear-gradient(135deg, #5AC8FA, #4AB5E0);
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    font-family: 'Prompt', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(90, 200, 250, 0.4);
    width: 100%;
}

.mobile-login-btn:hover {
    background: linear-gradient(135deg, #6BC4F5, #5AC8FA);
    box-shadow: 0 4px 12px rgba(90, 200, 250, 0.6);
    transform: translateY(-1px);
}

.mobile-login-btn svg {
    stroke: white;
}

.mobile-manage-btn {
    background: linear-gradient(135deg, #5AC8FA, #4AB5E0);
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    font-family: 'Prompt', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(90, 200, 250, 0.4);
    width: 100%;
}

.mobile-manage-btn:hover {
    background: linear-gradient(135deg, #6BC4F5, #5AC8FA);
    box-shadow: 0 4px 12px rgba(90, 200, 250, 0.6);
    transform: translateY(-1px);
}

.mobile-manage-btn svg {
    stroke: white;
}

.mobile-logout-btn {
    background: linear-gradient(135deg, #fa5a5a, #e04a4a);
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    font-family: 'Prompt', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(250, 90, 90, 0.4);
    width: 100%;
}

.mobile-logout-btn:hover {
    background: linear-gradient(135deg, #f56b6b, #fa5a5a);
    box-shadow: 0 4px 12px rgba(250, 90, 90, 0.6);
    transform: translateY(-1px);
}

.mobile-logout-btn svg {
    stroke: white;
}

.mobile-menu-close {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
}

.mobile-menu-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-menu-close svg {
    stroke: white;
    width: 24px;
    height: 24px;
}

.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
    overflow-y: visible;
    overflow-x: hidden;
}

.mobile-menu-list::-webkit-scrollbar {
    display: none;
}

.mobile-menu-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-list .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 25px;
    font-size: 16px;
    font-weight: 500;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Prompt', sans-serif;
}

.mobile-menu-list .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffd700;
    padding-left: 30px;
}

.mobile-menu-list .nav-link svg {
    stroke: currentColor;
    flex-shrink: 0;
}

/* Responsive Design */
@media screen and (max-width: 968px) {
    .navbar-container {
        padding: 0 20px;
    }

    .navbar-center {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-sidebar {
        display: flex;
    }

    /* ซ่อนปุ่ม login และ register ใน navbar เพราะมีใน sidebar แล้ว */
    .login-btn,
    .register-btn {
        display: none;
    }
    
    .mobile-register-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        background: linear-gradient(135deg, #4AB5E0, #3A9BC8);
        color: white;
        text-decoration: none;
        padding: 14px 20px;
        border-radius: 6px;
        font-weight: 600;
        font-size: 14px;
        font-family: 'Prompt', sans-serif;
        transition: all 0.3s ease;
        box-shadow: 0 2px 8px rgba(74, 181, 224, 0.4);
        width: 100%;
        margin-bottom: 10px;
    }
    
    .mobile-register-btn:hover {
        background: linear-gradient(135deg, #5AC8FA, #4AB5E0);
        box-shadow: 0 4px 12px rgba(74, 181, 224, 0.6);
        transform: translateY(-1px);
    }
    
    .mobile-register-btn svg {
        stroke: white;
    }
}

@media screen and (max-width: 480px) {
    .navbar {
        height: 60px;
    }

    body {
        padding-top: 60px;
    }


    .navbar-container {
        padding: 0 15px;
    }

}
