@charset "utf-8";
/* --- ใช้ฟอนต์ serithairegular --- */
.box-login a, .zn-overlay-panel, .zn-modal-overlay, .zn-btn-logout, .zn-modal-btn-ok {
    font-family: 'serithairegular', sans-serif !important;
}



/* --- Side Menu Panel --- */
.zn-overlay-panel {
	height: 100%;
	width: 0;
	position: fixed;
	z-index: 9999;
	top: 0;
	right: 0;
	background-color: #cea0de;
	overflow: hidden;
	transition: 0.5s cubic-bezier(0.77, 0, 0.175, 1);
	background-image: url(../images/bg-line-02.png);
	background-repeat: repeat;
}

.zn-overlay-panel.is-open {
    width: 450px;
}

@media screen and (max-width: 768px) {
    .zn-overlay-panel.is-open { width: 75vw; }
}
@media screen and (max-width: 480px) {
    .zn-overlay-panel.is-open { width: 100vw; }
}

.zn-panel-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 25px;
    box-sizing: border-box;
    overflow-y: auto;
    scrollbar-width: none;
}
.zn-panel-content::-webkit-scrollbar { display: none; }

/* ปุ่มปิด (X) - ขยายให้ใหญ่ขึ้นมากและกดง่าย */
.zn-close-icon {
    font-size: 55px; /* เพิ่มขนาดจากเดิม */
    font-weight: 300;
    cursor: pointer;
    color: #92278f; /* อัปเดตสีใหม่ */
    line-height: 0.8;
    margin-bottom: 10px;
    width: fit-content;
    transition: transform 0.2s ease;
}
.zn-close-icon:hover {
    transform: scale(1.1);
}

.zn-user-section {
    text-align: center;
    margin: 10px 0 35px;
}

.zn-user-display-name {
    font-size: 1.6rem;
    font-weight: bold;
    color: #92278f; /* อัปเดตสีใหม่ */
}

/* รายการเมนู */
.zn-menu-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1; /* ดันปุ่ม Logout ลงล่าง */
}

.zn-menu-item {
    background-color: #92278f; /* อัปเดตสีใหม่ */
    color: white;
    text-decoration: none;
    padding: 15px 28px;
    border-radius: 50px;
    font-size: 1.15rem;
    transition: all 0.3s ease;
}

.zn-menu-item:hover {
    background-color: #BE2581;
    transform: translateX(5px);
}

/* --- ปุ่มออกจากระบบ --- */
.zn-footer-action {
    padding-top: 30px;
    padding-bottom: 15px;
}

.zn-btn-logout {
	width: 100%;
	padding: 18px;
	background-color: #fde594;
	border: none;
	color: #333;
	border-radius: 15px;
	font-size: 1.2rem;
	cursor: pointer;
	display: flex;
	justify-content: center;
	align-items: center;
	transition: all 0.3s ease;
}

.zn-btn-logout:hover {
    background-color: #fde594; /* อัปเดตสีใหม่ */
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(146, 39, 143, 0.3);
}

.zn-arrow-icon {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.zn-btn-logout:hover .zn-arrow-icon {
    transform: translateX(8px);
}

/* --- Popup แจ้งเตือน --- */
.zn-modal-overlay {
    display: none; position: fixed; z-index: 10000;
    left: 0; top: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(8px);
    align-items: center; justify-content: center;
}
.zn-modal-card {
    background: white; padding: 45px; border-radius: 35px;
    text-align: center; width: 90%; max-width: 380px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.zn-modal-success-icon {
    width: 65px; height: 65px; background: #cea0de; color: #92278f;
    border-radius: 50%; margin: 0 auto 20px; line-height: 65px; font-size: 30px;
}
.zn-modal-card h2 { color: #92278f; margin-bottom: 10px; }
.zn-modal-btn-ok {
    background: #92278f; color: white; border: none;
    padding: 12px 55px; border-radius: 30px; cursor: pointer;
    font-size: 1.1rem; margin-top: 15px;
}