@charset "utf-8";

/*ปุ่มเซฟ*/
/* คอนเทนเนอร์ปุ่มปกติ */
.standalone-action-container {
	text-align: center;
	float: left;
	height: auto;
	width: 100%;
}

/* ปุ่มบันทึกสีม่วง */
.btn-direct-save {
	background-color: #92278f;
	color: #ffffff;
	font-family: 'serithairegular', sans-serif;
	font-size: 1rem;

	padding: 12px 40px;
	border: none;
	border-radius: 15px;
	cursor: pointer;
	transition: all 0.3s ease;
}

/* --- ส่วนของ Popup (หัวใจสำคัญที่ทำให้ใส) --- */
.success-popup {
    display: none; /* ซ่อนไว้เริ่มต้น */
    position: fixed; /* ใช้ fixed เพื่อให้หลุดออกจากกรอบขาวของ Container เดิม */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    
    /* พื้นหลังสีดำจางมากๆ 5% และเบลอ */
    background-color: rgba(0, 0, 0, 0.05) !important; 
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    
    /* จัดการให้อยู่กึ่งกลางหน้าจอ */
    align-items: center;
    justify-content: center;
    opacity: 0;
}

/* กล่องเนื้อหาด้านใน */
.popup-content {
    background-color: #ffffff;
    padding: 30px 50px;
    border-radius: 25px;
    text-align: center;
    min-width: 220px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transform: scale(0.8);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* คลาสควบคุมการแสดงผล */
.success-popup.show {
    display: flex; /* เปลี่ยนจาก none เป็น flex */
    opacity: 1;
}

.success-popup.show .popup-content {
    transform: scale(1);
}

/* ไอคอนเครื่องหมายถูก */
.success-icon {
    background-color: #4CAF50;
    color: white;
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    font-size: 30px;
    margin: 0 auto 15px;
}