/* Reset เบื้องต้น */
* {
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  padding: 20px;
}


.rows {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
  gap: 6px;
}

.columns {
  display: flex;
}

.columns .col {
  flex: 1; /* ให้กว้างเท่า ๆ กัน */
  padding: 10px;
}

.columns .col select {
  width: 100%;
}

.info > div {
  display: flex;           /* จัด label กับ div ให้อยู่แถวเดียว */
  align-items: center;     /* จัดให้ตรงกลางแนวตั้ง */
  gap: 6px;                /* ระยะห่างระหว่าง label กับ div */
}

.info label {
  width: 100px;            /* กำหนดความกว้างคงที่ให้ label */
  font-weight: bold;
}

.info .screenId,
.info .screenNameTh,
.info .screenNameEn {
  flex: 1;                 /* ให้ div ยืดเต็มพื้นที่ที่เหลือ */
}


.label-row {
  display: flex;
  justify-content: space-between;
  align-items: left;
  margin-bottom: 6px;
  height: 15px;
}

.container_frame {
  position: relative; /* อ้างอิงตำแหน่งให้ปุ่มปิด */
}

/* ปุ่มปิด */
.container_frame .close-btn {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 20px;
  font-weight: bold;
  color: #999;
  cursor: pointer;
  transition: color 0.25s ease, transform 0.25s ease;
  user-select: none;
}

.container_frame .close-btn:hover {
  color: #e53e3e;
  transform: scale(1.15);
}






/* หน้าล็อกอิน & สมัครสมาชิก */
#registerPage {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container_frame {
  position: relative;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  padding: 35px 40px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  width: 50vw;
  /* กว้าง 50% ของ viewport width */
  max-width: 380px;
  /* กำหนดขนาดสูงสุด เพื่อไม่ให้ใหญ่เกิน */
  min-width: 320px;
  /* กำหนดขนาดขั้นต่ำ สำหรับมือถือ */
  animation: fadeIn 0.6s ease-out;
}





.logo img {
  width: 110px;
  margin-bottom: 25px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}



label {
  font-weight: 600;
  color: #333;
  font-size: 15px;
  display: block;
  margin-bottom: 6px;
}

.ErrMsg,
.errorMsg {
  font-size: 13px;
  color: #e53e3e;
  font-weight: 600;
  min-width: 120px;
  text-align: right;
  min-height: 20px;
  margin-top: 8px;
}

input[type="tel"],
input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  border: 1.8px solid #ccc;
  border-radius: 8px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  /* margin-bottom: 18px; */
  background: #fff;
}

input:focus {
  border-color: #667eea;
  outline: none;
  box-shadow: 0 0 7px rgba(102, 126, 234, 0.4);
}

.buttons {
  margin-bottom: 12px;
  text-align: center;
}

button {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  font-weight: 700;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

#btnNewRegist {
  background: #f3f4f6;
  color: #333;
  font-weight: 600;
}

#btnNewRegist:hover {
  background: #e2e8f0;
}

.forget {
  font-size: 14px;
  color: #667eea;
  cursor: pointer;
  margin: 12px 0 8px;
  text-decoration: underline;
  text-align: center;
  display: block;
  user-select: none;
}

.forget:hover {
  color: #5a67d8;
}

@media screen and (max-width: 1024px) {
  .container_frame {
    max-width: 600px;;
  }

}

@media screen and (max-width: 440px) {
  .container_frame {
    padding: 25px 20px;
  }

  .label-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .ErrMsg,
  .errorMsg {
    min-width: auto;
    text-align: left;
    font-size: 13px;
  }
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* forget password */
#forgetPwdPage {
    animation: fadeIn 0.6s ease-out;
}
.container_flrame {
  position: relative;
  max-width: 360px;
  margin: 40px auto;
  padding: 20px 15px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
}



label {
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 14px;
}

input[type="tel"],
input[type="text"],
input[type="password"] {
  padding: 10px 12px;
  font-size: 16px;
  border: 1.5px solid #ccc;
  border-radius: 6px;
  outline-offset: 2px;
  transition: border-color 0.2s ease;
}

input[type="tel"]:focus,
input[type="text"]:focus,
input[type="password"]:focus {
  border-color: #007bff;
}

.rowOTP {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.rowOTP input {
  width: 40px;
  height: 48px;
  text-align: center;
  font-size: 20px;
  border-radius: 6px;
  border: 1.5px solid #ccc;
  transition: border-color 0.2s ease;
}

.rowOTP input:focus {
  border-color: #007bff;
  box-shadow: 0 0 6px rgba(0,123,255,0.5);
}

.buttons {
  margin-top: 10px;
}

.centerButton {
  display: flex;
  justify-content: center;
}

button {
  background-color: #007bff;
  color: white;
  font-weight: 600;
  border: none;
  padding: 12px 32px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  user-select: none;
}

button:hover {
  background-color: #0056b3;
}

.errorMsg {
  color: #d93025;
  font-size: 13px;
  min-height: 18px;
}



.ErrMsg {
  color: #d93025;
  font-size: 13px;
  font-weight: 600;
  margin-left: 8px;
  white-space: nowrap;
}



/*  Header   */
.menuHeader {
  height: 50px;
   background: linear-gradient(135deg, #667eea, #764ba2);
  border-bottom: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: space-between; /* ซ้าย–ขวา */
  padding: 0 12px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  z-index: 1000;
    /* animation: fadeIn 0.6s ease-out; */
}

/* ซ้าย-ขวา */
.left-group,
.right-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* จัดให้ center กลางจริง */
.center-group {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  line-height: 1.1;
}

.menubar,
.right-group i {
  cursor: pointer;
  font-size: 1.3rem;
  padding: 4px;
  border-radius: 6px;
  transition: background-color 0.2s;
}

.menubar:hover,
.right-group:hover {
  background-color: #f2f2f2;
}


/*   footer   */
.footer-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  background-color: #fff;
  border-top: 1px solid #ddd;
  height: 60px;
  z-index: 1000;
    min-height: 50px;
    height: auto;
    /* animation: fadeIn 0.6s ease-out; */
}

.footer-bar button {
  flex: 1; /* กว้างเท่ากันทุกปุ่ม */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  font-size: 14px;
  padding: 0;
  color: #333;
  cursor: pointer;
}

.footer-bar button .icon {
  font-size: 20px;
}

.footer-bar button:hover {
  background-color: #f0f0f0;
}

.footer-bar button.active {
  background-color: #f0f4ff;
  color: #007bff;
}

/* footer chat */
.chat-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #f9f9f9;
  border-top: 1px solid #ddd;
  box-sizing: border-box;
  width: 100%;
}

.chat-input button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 22px;
  color: #667eea;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-input button:hover {
  color: #5a67d8;
}

.chat-input textarea {
  width: 100%;
  resize: none;
  /* overflow-y: auto; */
  max-height: calc(1.5em * 6 + 16px); /* 6 บรรทัด * line-height + padding */
  line-height: 1.5em;
  padding: 8px 12px;
  font-size: 15px;
  border: 1.5px solid #ccc;
  border-radius: 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  box-sizing: border-box;
}


.chat-input textarea:focus {
  border-color: #667eea;
  box-shadow: 0 0 8px rgba(102, 126, 234, 0.5);
}



/* container */

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


.container {
  animation: fadeIn 0.6s ease-out;
  position: absolute; /* ล็อกตำแหน่งจากบน */
  top: 55px;           /* ห่างจากบน 55px */
  left: 0;
  right: 0;
  overflow-y: auto;
}

.container::-webkit-scrollbar {
  width: 6px;                         /* บางสุด */
}

.container::-webkit-scrollbar-track {
  background: transparent;            /* ไม่มี track ชัดเจน */
}

.container::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);      /* จางมาก */
  border-radius: 4px;
  transition: background 0.3s ease;
}

.container::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);      /* Hover แล้วเข้มขึ้น */
}


.subjectList,.genSubject,.chatpage {
     animation: fadeIn 0.6s ease-out;
}

#subjectList {
  background-color: white;
  padding: 0 10px;
}

/*  List  */
/* Search bar */
.search {
  padding: 10px;
  background: #f9f9f9;
  border-bottom: 1px solid #ddd;
}

/* Search bar */
.search {
  padding: 12px;
  background: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
}

.input-wrapper {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #ddd;
  padding: 8px 12px;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

.input-wrapper i {
  color: #888;
  margin-right: 8px;
  font-size: 16px;
}

.input-wrapper input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 14px;
}

/* Subject card */
.subject {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  margin: 12px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: all 0.2s ease-in-out;
}

.subject:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  background: #fafafa;
}

.info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.subjectID {
  font-weight: bold;
  color: #333;
}

.subjectName {
  font-size: 15px;
  font-weight: 500;
  color: #007bff;
}

.subjectDate {
  font-size: 12px;
  color: #888;
}

.subjectStatus {
  font-size: 13px;
  color: #555;
}

.subjectStatus .status {
  font-weight: 600;
  color: #ff9800; /* สีส้มเพื่อเน้นสถานะ */
}

.newMessage {
  background: #ff4d4f;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 10px;
  margin: 0 12px;
  align-self: flex-start;
}

.buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-chat {
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-chat i {
  font-size: 16px;
}

.btn-chat:hover {
  background: #0056b3;
}


/* หน้ารายละเอียด */
#genSubject {  
     /* overflow-y: auto; */
       /* Minimal Scrollbar */
  scrollbar-width: thin;              /* Firefox */
  scrollbar-color: transparent transparent; /* Firefox เริ่มจาง */
}

.form-container {
  display: flex;
  flex-direction: column;
  /* gap: 15px; */
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.05);
}



label {
  font-weight: 500;
  font-size: 14px;
}

input[type="text"],
select,
textarea {
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  outline: none;
  font-size: 14px;
  transition: border 0.2s ease;
}

input[type="text"]:focus,
select:focus,
textarea:focus {
  border-color: #007bff;
}

textarea {
  resize: vertical;
}

/* ปุ่มเลือกไฟล์ */
#btnSelectFile {
  padding: 8px 12px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
}

#btnSelectFile:hover {
  background: #0056b3;
}

/* พรีวิวรูป */
.preview-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.preview-container img {
  width: 40px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* Overlay รูปใหญ่ */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
}



.overlay img {
  max-width: 80%;
  max-height: 80%;
  border-radius: 8px;
    z-index: 1;
}

.close-overlay {
  position: fixed;
  z-index: 0;
  width: 10px;
}
/* ซ่อน input แต่ยังคลิกได้ผ่าน label */
#attFile {
  display: none;
}

.file-btn {
  display: inline-block;
  padding: 8px 12px;
  background: #007bff;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.file-btn:hover {
  background: #0056b3;
}

.preview-container {
  display: grid;
  grid-template-columns: repeat(3, 30%);
  gap: 10px; /* ความยาวช่องว่างระหว่างรูป */
  justify-content: space-between; /* กระจายให้เต็มแถว */
}

.preview-container .thumb {
  position: relative;
  width: 100%;
}

.preview-container img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  object-fit: cover;
}



.preview-container .delete {
  position: absolute;
  top: 4px;
  right: 4px;
  height: 15px;
  width: 15px;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  color: red;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  box-shadow: 0 0 3px rgba(0,0,0,0.3);
  transition: background 0.2s ease;

  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0; /* ลบ padding เก่า */
}


.preview-container .delete:hover {
  background: red;
  color: white;
}



/* chat */


#chatpage {
  display: flex;
  flex-direction: column-reverse; /* ข้อความใหม่อยู่ล่าง */
  height: 100%;
  overflow-y: auto;
  background-color: #fff;
}

#chatpage .chat-container {
  display: flex;
  flex-direction: column;
  margin: 0;
  overflow-y: auto;
   background-color: #fff;
   box-sizing: border-box;
}

/* Chrome, Edge, Safari */
#chatpage .chat-container::-webkit-scrollbar {
  width: 6px;
}

#chatpage .chat-container::-webkit-scrollbar-track {
  background: transparent;
}

#chatpage .chat-container::-webkit-scrollbar-thumb {
  background-color: #007bff;
  border-radius: 3px;
}

/* Firefox */
#chatpage .chat-container {
  scrollbar-width: thin;
  scrollbar-color: #007bff transparent;
  scrollbar-gutter: stable; /* ให้ scrollbar ไม่ซ้อนเนื้อหา */
}



.date-divider {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 12px 0;
  font-size: 13px;
  color: #666;
  position: relative;
}

.date-divider::before,
.date-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #ccc;
  margin: 0 10px;
  align-self: center;
}

.chat-box {
  flex-grow: 1;
  /* overflow-y: auto; */
  padding-right: 10px;
  padding-left: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
  background: #fff;
  border-radius: 8px;
  /* box-shadow: inset 0 0 5px rgba(0,0,0,0.05); */

  /* Minimal Scrollbar */
  scrollbar-width: thin;              /* Firefox */
  scrollbar-color: transparent transparent; /* Firefox เริ่มจาง */
}

/* Chrome, Edge, Safari */
.chat-box::-webkit-scrollbar {
  width: 6px;                         /* บางสุด */
}

.chat-box::-webkit-scrollbar-track {
  background: transparent;            /* ไม่มี track ชัดเจน */
}

.chat-box::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);      /* จางมาก */
  border-radius: 4px;
  transition: background 0.3s ease;
}

.chat-box::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);      /* Hover แล้วเข้มขึ้น */
}


/* ตัวอย่างข้อความใน chat-box */
.chat-message {
  max-width: 75%;
  padding: 10px 15px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.4;
  word-wrap: break-word;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.chat-message.sent {
  align-self: flex-end;
  background-color: #667eea;
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-message.received {
  align-self: flex-start;
  background-color: #e2e8f0;
  color: #333;
  border-bottom-left-radius: 4px;
}

.chat-row {
  display: flex;
  flex-direction: column;
  /* margin: 8px 12px; */
  max-width: 75%;
  word-wrap: break-word;

}

.chat-row.right {
  align-self: flex-end;
  text-align: left;
    align-items: end;
  
}

.chat-row.right .bubble {
    /* คุณสมบัติเดิม */
    background-color: #667eea;
    color: white;
    padding: 10px 16px;
    border-radius: 20px 20px 4px 20px;
    font-size: 15px;
    white-space: pre-wrap;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.7);

    /* ✅ เพิ่ม 2 บรรทัดนี้ */
    display: inline-block;
    /* max-width: 80%; กำหนดความกว้างสูงสุด ป้องกันข้อความยาวเกินไป */
}

.chat-row .meta {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  font-size: 12px;
  color: #ccc;
  margin-bottom: 4px;
  user-select: none;
}

.chat-row.right.user .meta .status {
  color: #a8c0ff; /* สีสถานะอ่อนๆ */
  font-weight: 600;
}

.chat-row.right.user .meta .timestamp {
  font-style: italic;
}
.chat-row.left {
  align-self: flex-start; /* ชิดซ้าย */
  text-align: left;       /* ข้อความชิดซ้าย */
    align-items: end;
}

.chat-row.left .bubble {
    background-color: #f1f0f0; /* สีพื้นฝั่งคนอื่น */
    color: #333;                /* สีตัวอักษรเข้ม */
    padding: 10px 16px;
    border-radius: 20px 20px 20px 4px; /* mirror กับ right */
    font-size: 15px;
    white-space: pre-wrap;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    
    display: inline-block;
}

/* meta ฝั่งซ้าย */
.chat-row.left .meta {
  width: 100%;
  display: flex;
    justify-content: flex-start; /* ชิดซ้าย */
  align-items: center;         /* จัดกลางแนวตั้ง */
  gap: 8px;
  font-size: 12px;
  color: #ccc;
  margin-bottom: 4px;
  user-select: none;
}

/* ตัวอย่างปรับสี status/timestamp ฝั่งซ้าย */
.chat-row.left.user .meta .status {
  color: #888; /* สีอ่อนกว่า right */
  font-weight: 600;
}

.chat-row.left.user .meta .timestamp {
  font-style: italic;
}

/* ถ้าต้องการให้ bubble รองรับ <br> เป็นบรรทัดใหม่ */
.bubble br {
  display: block;
  margin-bottom: 4px;
}

.bubble img{
  width: 300px;
}

.meta {
  margin-top: 5px;
}


/* จัดการ Layout Popup */
.action-buttons {
  display: flex; /* 👈 ทำให้ div นี้เป็น Flex Container เพื่อจัดเรียงลูกในแนวนอน */
  justify-content: space-around; /* 👈 จัดให้ปุ่มมีระยะห่างจากกันและจากขอบเท่าๆ กัน */
  align-items: center; /* 👈 จัดให้ปุ่มอยู่ตรงกลางในแนวตั้ง */
  width: 100%; /* 👈 ทำให้ใช้พื้นที่เต็มความกว้างของกล่อง popup */
  padding: 1em 0; /* เพิ่มระยะห่างบน-ล่างเล็กน้อย */
}

/* จัดการสไตล์ของแต่ละปุ่ม */
.action-btn {
  cursor: pointer; /* 👈 ทำให้เมาส์เป็นรูปมือเมื่อชี้ (บ่งบอกว่าคลิกได้) */
  text-align: center; /* 👈 ทำให้ label อยู่ตรงกลางไอคอน */
  transition: transform 0.2s ease-in-out; /* เพิ่ม animation ตอน hover */
}

/* เพิ่ม Effect เมื่อเอาเมาส์ไปชี้ */
.action-btn:hover {
  transform: scale(1.1); /* ขยายเล็กน้อยเมื่อเมาส์ชี้ */
}

/* =================================== */
/* Loading Spinner Styles             */
/* =================================== */

#loading-overlay {
  position: absolute;
  inset: 0; /* เต็มหน้าจอ */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  background: rgba(0,0,0,.100);
  backdrop-filter: blur(2px);
  z-index: 9999999; /* ลอยบนสุด */
}

#loading-overlay{
  display: none;
}

body.loading {
  overflow: hidden;
}

/* From Uiverse.io by Praashoo7 */
.loading {
  transform: translate(0%, -50%);
}



.l {
  color: black;
  opacity: 0;
  animation: op 2s ease-in-out infinite;
  animation-delay: 0.2s;
}

.o {
  color: black;
  opacity: 0;
  animation: op 2s ease-in-out infinite;
  animation-delay: 0.4s;
}

.a {
  color: black;
  opacity: 0;
  animation: op 2s ease-in-out infinite;
  animation-delay: 0.6s;
}

.d {
  color: black;
  opacity: 0;
  animation: op 2s ease-in-out infinite;
  animation-delay: 0.8s;
}

.i {
  color: black;
  opacity: 0;
  animation: op 2s ease-in-out infinite;
  animation-delay: 1s;
}

.n {
  color: black;
  opacity: 0;
  animation: op 2s ease-in-out infinite;
  animation-delay: 1.2s;
}

.g {
  color: black;
  opacity: 0;
  animation: op 2s ease-in-out infinite;
  animation-delay: 1.4s;
}

.d1 {
  color: black;
  opacity: 0;
  animation: op1 2s ease-in-out infinite;
  animation-delay: 1.6s;
}

.d2 {
  color: black;
  opacity: 0;
  animation: op1 2s ease-in-out infinite;
  animation-delay: 2s;
}

.load {
  position: relative;
  width: 1.2em;
  height: 1.2em;
  border-radius: 50%;
}

.progress {
  top: 50%;
  left: -80%;
  position: absolute;
  margin-top: 2.2em;
  transform: translate(10%, -50%);
  content: '';
  width: 3.1em;
  height: 3.1em;
  background: transparent;
  border-radius: 50%;
  animation: load_37100 2s ease-in-out infinite;
  animation-delay: 1s;
}

@keyframes load_37100 {
  0% {
    background-color: #DB4437;
  }

  25% {
    background-color: #F4B400;
  }

  75% {
    background-color: #0F9D58;
  }

  100% {
    background-color: #4285F4;
  }
}

.progress:nth-child(2) {
  left: 50%;
  animation-delay: 1.3s;
}

.progress:nth-child(3) {
  left: 180%;
  animation-delay: 1.7s;
}

.progress:nth-child(4) {
  left: 300%;
  animation-delay: 2s;
}

@keyframes op {
  0% {
    color: black;
    opacity: 1;
  }

  50% {
    color: green;
    opacity: 1;
  }

  100% {
    color: black;
    opacity: 1;
  }
}

@keyframes op1 {
  0% {
    color: black;
    opacity: 1;
  }

  50% {
    color: green;
    opacity: 0;
  }

  100% {
    color: black;
    opacity: 1;
  }
}

/* Admin */
.source {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: white;
  padding: 10px;
}

.pair {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 25%;
  text-align: right;
}

.pair label {
  width: 30%;
}

.pair select {
  width: 70%;
}



/*===================================================================================================================*/
