/* ====== General Wrapper ====== */
.ai-speaking-wrapper {
    width: 100% !important;
    margin: 0 auto;
    padding: 20px;
    font-family: inherit;
    font-size: 15px;
    font-style: italic;
}

/* ====== Video Area ====== */
.row-videos {
  display: flex;
  justify-content: space-between; /* hoặc center */
  align-items: center;
  gap: 24px;
  margin-bottom: 30px;
  width: 100%;
}

.col {
  flex: 1 1 0;
  min-width: 0;
  height: 180px;
  background: #f8f8f8;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex; /* 🔥 giúp giữ kích thước consistent */
  flex-direction: column;
  justify-content: center;
  align-items: center;
}


.col video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.learner-placeholder {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #222;
  color: #fff;
  height: 100%;
  text-align: center;
  padding: 20px;
  font-size: 15px;
}

.camera-btn {
  margin-top: 12px;
  padding: 10px 20px;
  background-color: #4CAF50;
  border: none;
  border-radius: 10px;
  color: white;
  cursor: pointer;
}

.camera-btn:hover {
  background-color: #398f03cc;
}



/* ====== Chat Box ====== */
.chat-box {
  background: #222;
	  max-width: 100% !important;
  border-radius: 16px;
  margin-top: 20px;
  padding: 16px;
  height: 350px; /* 🎯 Cố định chiều cao */
  overflow-y: auto; /* 🎯 Scroll bên trong */
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

#chatBox {
  max-height: 400px;
  overflow-y: auto;
}

.chat-placeholder {
  text-align: center;
  color: #aaa;
  margin-top: 100px;
  font-size: 16px;
}

/* ====== Message Bubble ====== */
.message-row {
  display: flex;
  margin-bottom: 10px;
}

.message-row.user {
  justify-content: flex-end;
}

.message-row.ai {
  justify-content: flex-start;
}

.bubble {
  padding: 10px 16px;
  border-radius: 16px;
  max-width: 80%;
  font-size: 15px;
}

.user .bubble {
  background-color: #4CAF50;
  color: #fff;
  padding: 8px 12px;
  border-top-left-radius: 16px;
  border-top-right-radius: 6px;    /* 🔥 Góc này nhỏ lại */
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  margin-left: auto;
  font-size: 14px;
}

.ai .bubble {
  background-color: #4d4d4d;
  color: #fffefe;
  padding: 8px 12px;
  border-top-left-radius: 6px;     /* 🔥 Góc này nhỏ lại */
  border-top-right-radius: 16px;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  max-width: 90%;
  margin-right: auto;
  font-size: 14px;
}

/* ====== Input + Option Area ====== */
.input-area {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.user-input {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 16px;
  height: 44px;
}

.send-btn {
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 0 20px;
  height: 44px;
  font-size: 16px;
  cursor: pointer;
}

.send-btn:hover {
  background-color: #45a049;
}

/* ====== Mic Button ====== */
.mic-btn {
  border: 1px solid #229304;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 8px;
	font-style:normal;
  font-size: 15px;
  cursor: pointer;
}

.mic-btn.active {
  background-color: #4CAF50;
  color: white;
}

/* ====== Speaking Effect ====== */
.ai-tutor.speaking {
  border: 4px solid #4CAF50;
  box-shadow: 0 0 12px #4CAF50;
  transition: all 0.3s ease;
}

#learnerVideoBox.speaking {
  border: 4px solid #00bcd4;
	position: relative;
  box-shadow: 0 0 12px #00bcd4;
  transition: all 0.3s ease;
}

/* ====== Option Toggles ====== */
.option-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  font-size: 14px;
}

.toggle-translate {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #555;
}

/* ====== Small Buttons ====== */
.row3-control {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.small-btn {
  padding: 8px 16px;
  background-color: #d4d4d4;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
}

.small-btn:hover {
  background-color: #ccc;
}




#aiSpeakingWrapper button,
#aiSpeakingWrapper .small-btn,
#aiSpeakingWrapper .language-btn,
#aiSpeakingWrapper .start-btn,
#aiSpeakingWrapper .send-btn,
#aiSpeakingWrapper .mic-btn {
  font-weight: 300 !important;
}

.language-buttons {
  display: flex;
  flex-wrap: wrap;         /* Cho phép xuống dòng nếu cần */
  justify-content: center; /* Căn giữa các nút */
  gap: 10px;               /* Khoảng cách giữa các nút */
  margin-top: 16px;
}

.language-buttons .language-btn {
  margin: 5px;
  min-width: 100px;       /* tuỳ chọn, giúp nút đều nhau */
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#stopCameraBtn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
	font-style:normal;
  background-color: transparent; /* nền bán trong suốt */
  color: white;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  z-index: 10; /* ⚠️ Đảm bảo nổi lên trên video */
}

#stopCameraBtn:hover {
  background-color: #398f03cc; /* hiệu ứng hover */
}


.notice-message {
  text-align: center;
  color: #FFA500;
  font-style: italic;
  margin: 12px 0;
  font-size: 14px;
}

.bubble.ai-bubble {
  background-color: #444;
  color: #fff;
  font-style: italic;
}

/* CSS thêm vào */
#toggleVoiceBtn.mic-auto-off-flash {
  border: 2px solid red !important;
  transition: border-color 0.5s ease;
}

/* === Gợi ý câu tiếp theo & từ vựng === */
/* ==== Gợi ý tiếp theo - Tùy chỉnh theo màu xanh chủ đạo ==== */
.aispk-suggestion-box {
  background: #e5e5e5; /* xanh lá nhạt */
  border-left: 4px solid #616161; /* xanh lá đậm */
  padding: 12px 16px;
  border-radius: 8px;
  margin-top: 10px;
  margin-bottom: 10px;
}

.aispk-suggestion-title {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 6px;
  color: #222; /* xanh rêu đậm */
}

.aispk-suggestion-text {
  font-style: italic;
  color: #222;
  font-size: 15px;
}

.aispk-vocab-block {
  margin-top: 12px;
}

.aispk-vocab-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  color: #222;
}

.aispk-vocab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.aispk-vocab-item {
  background: #fff;
  border: 1px solid #cfcfcf;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 13px;
  font-style: italic;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* ✅ Tùy chỉnh checkbox theo màu chủ đạo nếu dùng plugin hoặc bạn style riêng: */
input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid #222;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  background: #fff;
  transition: all 0.2s ease-in-out;
}

input[type="checkbox"]:checked {
  background-color: #2ecc71;
  border-color: #2ecc71;
}

input[type="checkbox"]:checked::after {
  content: '✔';
  color: white;
  font-size: 11px;
  position: absolute;
  top: -1px;
  left: 3px;
  font-weight: bold;
}

@media (max-width: 768px) {
	
	.row-videos {
		display: none; }
	
	.elementor-widget-container {
    width: 100% !important;
    display: block !important;
  }
	.elementor-element {
    width: 100% !important;
  }
	
  .elementor-shortcode {
    width: 100% !important;
    max-width: 100% !important;
  }

	#conversationContainer {
  width: 100% !important;
  max-width: 100% !important;
}

	
  #aiSpeakingWrapper {
    width: 100% !important;
    max-width: 100% !important;
display: flex;
    justify-content: center;	  padding: 0px;
  }


  #chatBox, .chat-box {
    min-height: 320px;
    max-height: 420px;
	    flex-shrink: 0;               /* 🔥 thêm dòng này để tránh co lại */
	overflow-y: auto;           /* cuộn nếu vượt quá */
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
  }
	

  .mic-btn {
    border: none;
    background: transparent !important;
    color: #cb0606 !important;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    font-style: normal;
	  transition: all 0.2s ease;
  }

  .mic-btn.active {
    border: none;
    color: #2ecc71 !important;
	      font-style: normal;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
  }
.mic-btn,
.mic-btn:focus,
.mic-btn:active,
.mic-btn:hover {
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}

  .mic-btn.active:hover {
    border: none;
    color: #007e00;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
  }
}

#aiSpeakingWrapper label {
  font-weight: 300 !important;
}stopCameraBtn

.mic-btn span.icon {
  font-size: 12px;
  margin-right: 3px;
  vertical-align: middle;
}

