* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}
body,
input,
textarea,
button,
::placeholder {
  font-family: "Poppins", sans-serif;
  font-size: 16px;
}
/* ===== Scrollbar CSS ===== */
/* Firefox */
.whatsapp {
  scrollbar-width: auto;
  scrollbar-color: #a3a3a3 #ffffff;
}
/* Chrome, Edge, and Safari */
.whatsapp ::-webkit-scrollbar {
  width: 16px;
}
.whatsapp ::-webkit-scrollbar-track {
  background: #ffffff;
}
.whatsapp ::-webkit-scrollbar-thumb {
  background-color: #a3a3a3;
  border-radius: 10px;
  border: 3px solid #ffffff;
}
.whatsapp-header {
  background-color: #075e55;
  padding: 20px;
  display: flex;
  gap: 10px;
  align-items: center;
  color: #fff;
  height: 120px;
}
.whatsapp-avatar {
  width: 74px;
  border-radius: 50%;
}
.whatsapp-header strong {
  display: block;
}
.whatsapp-header span {
  font-size: 14px;
}
.whatsapp-body {
  background-color: #ece5dd;
  height: calc(100vh - 120px);
  padding-bottom: 70px;
}
.whatsapp-body-wrapper {
  overflow: hidden;
  height: 100%;
  padding: 40px 40px 0 40px;
  overflow-y: scroll;
}
.whatsapp-message .whatsapp-box {
  background: #fff;
}
.whatsapp-box {
  background: #dcf7c6;
  padding: 20px 12px;
  font-size: 16px;
  border-radius: 10px;
  border-top-left-radius: 0;
  line-height: 1.5;
  margin-bottom: 20px;
  max-width: 80%;
}
.whatsapp-response .whatsapp-box {
  margin-left: auto;
}
.whatsapp-footer {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.whatsapp-footer-wrapper {
  background-color: #fff;
  width: 100%;
  border-radius: 40px;
  height: 45px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.whatsapp-footer-wrapper input {
  width: 100%;
  border: none;
  outline: none;
}
.whatsapp-footer button {
  all: unset;
  font-size: 18px;
  cursor: pointer;
}
.whatsapp-footer .whatsapp-send {
  background-color: #000;
  color: white;
  height: 45px;
  width: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Estilos do Modal de Seleção de Curso */
.course-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.course-modal-content {
  background: white;
  border-radius: 15px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.course-modal-header {
  padding: 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #075e55;
  color: white;
}

.course-modal-header h3 {
  margin: 0;
  font-size: 18px;
}

.close-modal {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: white;
  padding: 5px;
}

.course-search {
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  position: relative;
}

.course-search input {
  width: 100%;
  padding: 12px 40px 12px 15px;
  border: 2px solid #ddd;
  border-radius: 25px;
  outline: none;
  font-size: 14px;
  transition: border-color 0.3s;
}

.course-search input:focus {
  border-color: #075e55;
}

.course-search i {
  position: absolute;
  right: 35px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
}

.course-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px 0;
}

.course-item {
  padding: 15px 20px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  gap: 10px;
}

.course-item:hover {
  background-color: #f8f8f8;
}

.course-item:last-child {
  border-bottom: none;
}

.course-item i {
  color: #075e55;
  font-size: 16px;
}

.course-name {
  font-weight: 500;
  color: #333;
  font-size: 14px;
}

.course-loading {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

.course-empty {
  text-align: center;
  padding: 40px 20px;
  color: #999;
}

.select-course-btn {
  background: #075e55;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.3s;
  margin: 10px 0;
}

.select-course-btn:hover {
  background: #064c44;
}

.container-logo {
    margin-left: auto;
}

.container-logo img {
    width: 76px;
    display: block;
    margin-left: auto;
}

@media (max-width: 768px) {
  .whatsapp-avatar {
    width: 44px;
  }
  .whatsapp-header span {
    font-size: 11px;
  }
  .whatsapp-name {
    font-size: 14px;
    line-height: 1;
  }
  .whatsapp-header {
    height: 70px;
  }
  .whatsapp-body-wrapper {
   padding: 40px 10px 40px 10px;
  }
  .whatsapp-body {
    height: 100vh;
    padding-bottom: 150px;
  }
  body {
    overflow: hidden;
  }
  .whatsapp-box {
    max-width: 90%;
  }
  .whatsapp-footer {
      padding: 0 10px;
      width: 100%;
  }
  
  .course-modal-content {
    width: 95%;
    max-height: 85vh;
  }
  
  .course-modal-header {
    padding: 15px;
  }
  
  .course-search {
    padding: 15px;
  }
}