

h3 {
  font-weight: 600;
  margin-bottom: 10px;
}

.profile-header {
  width: 353px;
  height: 100px;
  margin-top: 60px;
  background: linear-gradient(90deg, #6a11cb, #2575fc);
  padding: 20px;
  color: white;
  text-align: center;
}


.profile-pic {
  border-radius: 50%;
  width: 60px;
  height: 60px;
  border: 2px solid white;
}

.profile-details h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.profile-details span {
  font-size: 14px;
  opacity: 0.8;
}

.collection-btn {
  background-color: #f1c40f; /* สีเหลือง */
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  position: absolute;
  right: 20px; /* ชิดขวา */
  top: 20px;  /* ระยะจากขอบบน */
}

.collection-btn:hover {
  background-color: #d4ac0d; /* สีเหลืองเข้มเมื่อ hover */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* เงา */
}

/* ปรับ container ของ profile-info */
.profile-info {
  display: flex;
  align-items: center;
  position: relative; /* ใช้ position เพื่อให้จัดปุ่มใน container */
  justify-content: flex-start; /* คงตำแหน่งข้อมูลให้อยู่ทางซ้าย */
}



/* การตั้งค่าของ Badge */
.badge {
  position: absolute;
  top: -5px; /* จัดตำแหน่งด้านบน */
  right: -5px; /* จัดตำแหน่งด้านขวา */
  background: #e74c3c; /* สีแดง */
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 12px; /* ทำให้เป็นวงรี */
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}




/* ส่วนไอคอน */
.menu-icon i {
  font-size: 24px; /* ขนาดของไอคอน */
  color: #3688f4; /* สีไอคอน (แดง) */
  margin-bottom: 8px;
}

/* กำหนดส่วนอื่น ๆ ตามเดิม */
.menu-container {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 15px;
}

.menu-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.menu-title p {
  font-size: 16px;
  font-weight: bold;
  color: #333;
}

.view-all-link {
  font-size: 12px;
  color: #000000;
  text-decoration: none;
}

.menu-icons {
  display: flex;
  justify-content: space-between;
}

.menu-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 18%;
  text-align: center;
}

.menu-icon p {
  font-size: 12px;
  color: #666;
  margin: 0;
}




/* เพิ่มสไตล์สำหรับ badge */
.badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #e74c3c;
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 12px;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.menu-icon {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #555;
  font-size: 12px;
}



/* พื้นที่เมนูทั้งหมด */
.menu-bar {
  width: 100%;
  background-color: #fff;
  font-family: Arial, sans-serif;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* แถบไอคอนเมนูด้านบน */
.menu-top {
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  border-bottom: 1px solid #eaeaea;
}

.menu-top-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #555;
}

.menu-top-icon {
  font-size: 20px;
  color: #f57c00;
  margin-bottom: 5px;
}

.menu-top-text {
  font-size: 12px;
  margin: 0;
}








/* รายการเมนู */
/* เมนูหลัก */
.menu-list {
  margin: 15px;
  padding-bottom: 80px;
}

/* รายการเมนู */
.menu-list-item {
  display: flex;
  align-items: center;
  padding: 15px 10px;
  justify-content: space-between;
  border-bottom: 1px solid #eaeaea;
  transition: background-color 0.3s ease, transform 0.1s ease, box-shadow 0.2s ease; /* เพิ่ม transition ให้กับการเปลี่ยนแปลง */
  cursor: pointer; /* เปลี่ยนเคอร์เซอร์ให้เป็นแบบมือเมื่อ hover */
}

/* การจัดระเบียบไอคอนและข้อความ */
.menu-item-left {
  display: flex;
  align-items: center;
}

.menu-item-icon {
  font-size: 20px;
  color: #3498db; /* สีของไอคอน */
  margin-right: 10px;
}

.menu-item-text {
  font-size: 16px;
  color: #34495e; /* สีของข้อความ */
  font-weight: 500;
}

/* เปลี่ยนสีเมื่อ hover */
.menu-list-item:hover {
  background-color: #f4f6f9;
}

/* เปลี่ยนสีเมื่อคลิก (active) */
.menu-list-item:active {
  background-color: #3498db; /* สีเข้มเมื่อกด */
  color: white; /* เปลี่ยนสีข้อความให้เป็นสีขาว */
  transform: translateY(4px); /* เพิ่มเอฟเฟกต์การย้ายลง */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* เพิ่มเงาให้รายการเมนูดูลึกขึ้น */
}

/* ไม่มีเส้นขอบที่รายการสุดท้าย */
.menu-list-item:last-child {
  border-bottom: none;
}





.menu-item-left {
  display: flex;
  align-items: center;
  color: #333;
}

.menu-item-icon {
  font-size: 18px;
  color: #0062f5;
  margin-right: 10px;
}

.menu-item-text {
  font-size: 14px;
  margin: 0;
}

.menu-item-right {
  display: flex;
  align-items: center;
}

.menu-item-subtext {
  font-size: 12px;
  color: #555;
}

.menu-item-link {
  font-size: 12px;
  text-decoration: none;
  color: #0004f5;
}

.menu-item-chevron {
  font-size: 14px;
  color: #ccc;
}









/* Style for the close button */
.close-btn {
  display: block;
  width: 100%;
  padding: 10px;
  background-color: #007bff;
  color: white;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  margin-top: 15px;
  cursor: pointer;
  transition: background-color 0.3s;
}

/* Change color on hover for the close button */
.close-btn:hover {
  background-color: #0056b3;
}

/* Animation for modal fade-in */
@keyframes modalFadeIn {
  from {
      opacity: 0;
      transform: scale(0.9);
  }
  to {
      opacity: 1;
      transform: scale(1);
  }
}




/* ปิดเลื่อนเมื่อ popup เปิด */
body.no-scroll {
  overflow: hidden;
}

/* กล่อง Settings Page */
.settings-page {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100%;
  background-color: #fff;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
  transition: right 0.3s ease-in-out;
  z-index: 1000;
  overflow-y: auto; /* ทำให้สามารถเลื่อนขึ้นลงได้ */
}

.settings-page.show {
  right: 0;
}




/* กล่องแจ้งเตือน */
.alert-box {
  width: 370px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #fff7e6; /* สีพื้นหลัง */
  color: #ff9a00;           /* สีข้อความ */
  border: 1px solid #ffe2b2; /* เส้นขอบ */
  padding: 5px 15px;
  border-radius: 6px;
  font-size: 10px;
  margin: 15px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ไอคอนแจ้งเตือน */
.alert-icon {
  font-size: 18px;
  margin-right: 10px;
}

/* ข้อความแจ้งเตือน */
.alert-message {
  flex-grow: 1;
  font-size: 14px;
}

/* ปุ่มปิด */
.alert-close {
  background: none;
  border: none;
  font-size: 16px;
  color: #ff9a00;
  cursor: pointer;
  padding: 0;
  transition: color 0.3s ease;
}

.alert-close:hover {
  color: #cc7a00;
}

/* ซ่อนกล่องแจ้งเตือน */
.alert-hidden {
  display: none;
}






#popup {
  display: none;
  position: absolute;
  background-color: white;
  border: 1px solid #ccc;
  padding: 10px;
}

.hidden {
  display: none;
}










.edit-profile-container {
  display: inline-block;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  max-width: 800px;
  margin-bottom: 60px;
  text-align: center;
}

/* Profile Picture */
.profile-picture-container {
  position: relative;
  margin-bottom: 20px;
}

.profile-picture {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ddd;
}

.edit-icon {
  position: absolute;
  bottom: 5px;
  right: 150px;
  background: #6c63ff;
  color: #fff;
  font-size: 16px;
  width: 24px;
  height: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  cursor: pointer;
}

/* Form Styles */
.edit-profile-form {
  margin-top: 10px;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-label {
  font-size: 14px;
  color: #555;
  margin-bottom: 5px;
  display: block;
}

.form-input {
  width: 100%;
  padding: 8px 10px;
  font-size: 14px;
  border: none;
  border-bottom: 2px solid #6c63ff;
  outline: none;
  color: #333;
  background: transparent;
}

.form-input:focus {
  border-bottom-color: #4a47a3;
}

.form-input-group {
  display: flex;
  align-items: center;
}

.calendar-btn {
  background: #6c63ff;
  color: white;
  border: none;
  font-size: 14px;
  padding: 5px 10px;
  margin-left: 5px;
  border-radius: 5px;
  cursor: pointer;
}






