#min-chat.rotate{
  transform: rotateZ(180deg);
  transition: transform 0.3s ease;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #f4f4f4;
}

#clinicalStatusText{
  max-height: 8rem;
  min-height: 5rem;
}

#chat-toggle {
  position: fixed;
  bottom: 48px;
  right: 23px;
  background: linear-gradient(135deg, #4f46e5, #3b82f6);
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 25%;
  border: none;
  outline: none;
  cursor: pointer;
  font-size: 28px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 8000;
}

#chat-box {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 320px;
  max-height: 80vh;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 99;
}

#chat-header {
  background: #4f46e5;
  color: #fff;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#chat-header h3 {
  margin: 0;
  font-size: 16px;
}

#chat-messages {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  background: #f9fafb;
}

.message {
  margin: 6px 0;
  padding: 8px 12px;
  border-radius: 10px;
  max-width: 80%;
  word-wrap: break-word;
}

.bot {
  background: #e5e7eb;
  align-self: flex-start;
}

.user {
  background: #4f46e5;
  color: #fff;
  align-self: flex-end;
}

#input-area {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  row-gap: 15px;
  align-items: center;
  border-top: 1px solid #ddd;
  padding: 8px;
  background: #efefef;
  padding-bottom: 14px;
}

#chat-input {
  flex: 1;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
  font-size: 14px;
}

.button {
  background: #4f46e5;
  border: none;
  color: #fff;
  margin-left: 8px;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

#send-btn:hover,
#mic-btn:hover {
  background: #4338ca;
}

#mic-btn.listening {
  background: #ef4444;
}

.patient-consent {
  display: flex;
  justify-content: space-between;
  padding: 6px 6px;
  width: 100%;
  gap: 10px;
  font-size: 14px;
  margin-bottom: unset;
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.note-dropdown a {
  width: 100%;
  background: none;
  color: #535353;
  border-color: #cdcdcd;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  padding: 6px 5px;
}

.note-dropdown a::after {
  content: unset !important;
}

.note-dropdown ul li a {
  font-size: 12px !important;
}

#noteTypeMenu {
  height: 200px;
  overflow-x: scroll;
  width: 90%;
}

.staticType {
  text-decoration: none;
  cursor: text;
}

#preLoginModal, #loginModal, #resumeCareWayModal, #closeCareWayModal{
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(5px);
}

#loginModal .modal-dialog{
  max-width: 50%;
}

#careWayLinkBtn{
  text-align: center;
  align-content: center;
}

.grid-readonly-field {
    width: 95%;
    border: 1px solid #ccc;
    background: #f8f8f8;
    padding: 2px;
    cursor: pointer;
}

#switch-toggle{
  background: #0d6efd21;
  border: 1px solid rgba(91,94,247,.18);
  border-radius: 14px;
  padding: 4px;
  display: inline-flex;
  gap: 4px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
#switch-toggle.disabled {
  opacity: 0.55;
  position: relative;
  filter: grayscale(1);
}

#switch-toggle.disabled::after {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 5;
  cursor: not-allowed;
}

#switch-toggle.disabled label {
  cursor: not-allowed;
}
#switch-toggle input{ display:none; }
#switch-toggle label{
  user-select: none;
  cursor: pointer;
  border-radius: 12px;
  padding: 8px 14px;
  font-weight: 600;
  font-size: 13px;
  color: #000fff;
  transition: .15s ease;
  min-width: 68px;
  text-align: center;
}
#switch-toggle input:checked + label{
  background: #fff;
  color: #000000;
  box-shadow: 0 10px 22px rgba(91,94,247,.18);
  border: 1px solid rgba(0,0,0,.06);
}

.cw-input{
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.12);
  padding: 12px 14px;
  transition: .15s ease;
  background: #fbfbfe;
}
.cw-input:focus{
  box-shadow: 0 0 0 .25rem rgba(91,94,247,.15);
  border-color: rgba(91,94,247,.45);
  background: #fff;
}

.test-connection-btn {
  background: #4A6CF7;
  color: white;
  padding: 8px 18px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

.test-connection-btn:hover {
  background: #3b55c9;
}
