
.office-teams-app {
  height: 100%;
  background: var(--navbar-bg);
  display: flex;
  flex-direction: column;
  position: absolute;
  width: 100%;
}

.office-teams-header {
  background: var(--chatheader);
  box-shadow: var(--shadow-rgb);
  padding: 0 0 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  border-bottom: 1.5px solid var(--border);
  z-index: 2;
}

.office-teams-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-strong);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex-direction: column;
  cursor: pointer;
}
.metabage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--color-primary);
  margin-left: 0.5rem;
}
.subltittle {
  font-size: 0.8rem;
  color: var(--color-primary);
  letter-spacing: 0.2px;
}
.metabage img{
  width: 40px;
  height: 40px;
}
.research-toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  width: 100%;
}

.toggle-label {
  font-size: 1.05rem;
  color: var(--color-primary);
  letter-spacing: 0.2px;
  user-select: none;
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #ccc;
  border-radius: 24px;
  transition: background 0.3s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.3s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.10);
}

.switch input:checked + .slider {
  background: linear-gradient(90deg, #0078fe 60%, #00c6fb 100%);
}

.switch input:checked + .slider:before {
  transform: translateX(20px);
}

.chat-container {
  width: 100%;
  background: var(--navbar-bg);
  border-radius: 16px;
  box-shadow: var(--shadow-rgb);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 420px;
  overflow: hidden;
  border: 1.5px solid var(--border);
}

@media (max-width: 900px) {
  .chat-container {
    max-width: 100vw;
    margin: 0;
    border-radius: 0;
    height: 100vh;
    min-height: 0;
  }
  .office-teams-title, .research-toggle-row {
    margin-left: 12px;
    margin-right: 12px;
  }
}

.chat-area {
  flex: 1;
  overflow-y: auto;
  padding: 32px 0 12px 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: transparent;
  scroll-behavior: smooth;
}

.bubble {
  max-width: 80%;
  padding: 12px;
  border-radius: 16px;
  font-size: 1.08rem;
  line-height: 1.7;
  word-break: break-word;
  box-shadow: var(--shadow-rgb);
  opacity: 0;
  animation: bubbleIn 0.5s cubic-bezier(.4,1.6,.6,1) forwards;
  transition: background 0.2s, color 0.2s;
  margin-bottom: 2px;
  margin-top: 2px;
  position: relative;
}

@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(32px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.bubble.user {
  align-self: flex-end;
  background: var(--message-sent-bg);
  color: var(--white);
  border-bottom-right-radius: 6px;
  margin-right: 24px;
  margin-left: 48px;
  box-shadow: 0 2px 12px rgba(0,120,254,0.10);
  color: var(--text-primary-sent);
}

.bubble.bot {
  align-self: flex-start;
  background: var(--message-recieved-bg);
  color: var(--primary-strong);
  border-bottom-left-radius: 6px;
  margin-left: 24px;
  margin-right: 48px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.sources {
  margin-top: 10px;
  font-size: 0.97em;
  color: var(--color-info);
  word-break: break-all;
}
.sources a {
  color: #0078fe;
  text-decoration: underline;
  word-break: break-all;
}
.bubble.bot .sources {
  color: var(--indicator);
}
.cursor {
  display: inline-block;
  width: 1ch;
  animation: blink-cursor 1s steps(1) infinite;
}
@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* .typing-indicator {

  font-size: 1.08em;
  margin: 0 0 8px 32px;
  min-height: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-style: italic;
  letter-spacing: 0.5px;
  animation: fadeIn 0.5s;
}
.typing-indicator::after {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;

  margin-left: 6px;
  animation: typingBlink 1s infinite alternate;
}
@keyframes typingBlink {
  from { opacity: 0.3; }
  to { opacity: 1; }
} */

.chat-form {
  display: flex;
  align-items: center;
  padding: 5px 5px 5px 5px;
  background: var(--bg);
  border-top: 1.5px solid var(--border);
  gap: 10px;
  position: relative;
  background-color: var(--chatheader);
  flex-direction: column;
}
.chat-form .rowsss{
  display: flex;
  flex-direction: row;
  width: 100%;
}
.chat-input {
  flex: 1;
  padding: 14px 18px;
  border: 1.5px solid var(--input-border);
  border-radius: 10px;
  background: var(--input-bg);
  color: var(--text);
  font-size: 1.08rem;
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
  width: 90%;
  border: 1px solid var(--border-color);
}

.chat-input:focus {
  border-color: #00c6fb;
  box-shadow: 0 2px 8px rgba(0,198,251,0.08);

}

.send-btn {
width: 10%;
  animation: sendBtnIn 0.4s cubic-bezier(.4,1.6,.6,1);
  background-color: transparent;
  color:var(--color-primary);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes sendBtnIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: none; }
}


.stop-btn {
  background: var(--stop-bg);
  color: var(--stop-text);
  border: none;
  border-radius: 10px;
  padding: 0 18px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(244,67,54,0.10);
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
  outline: none;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  animation: stopBtnIn 0.4s cubic-bezier(.4,1.6,.6,1);
}
@keyframes stopBtnIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: none; }
}
.stop-btn:hover, .stop-btn:focus {
  background: #c62828;
  box-shadow: 0 4px 16px rgba(244,67,54,0.18);
  transform: translateY(-2px) scale(1.04);
} 
#ai-info-page {
  position: relative;
  top: 0; right: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  font-family: 'Segoe UI', sans-serif;
  box-shadow: -3px 0 10px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
}

#ai-info-page.slide-in {
  transform: translateX(0);
}

#ai-info-page.slide-out {
  transform: translateX(100%);
}

.ai-info-header {
  background: #f0f0f0;
  padding: 15px;
  display: flex;
  align-items: center;
  font-size: 18px;
  font-weight: 500;
  border-bottom: 1px solid #ccc;
}

#ai-back-btn {
  background: none;
  border: none;
  font-size: 24px;
  margin-right: 15px;
  cursor: pointer;
}

.ai-info-body {
  padding: 20px;
  color: #222;
  overflow-y: auto;
  flex-grow: 1;
}

.ai-info-body h3 {
  margin-top: 0;
  color: #0078d4;
}

.ai-info-body ul {
  margin-top: 15px;
  padding-left: 20px;
}

.ai-info-body ul li {
  margin: 10px 0;
}

#AImodel1{
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 40px;
  height: 40px;
  z-index: var(--layer3);
  border-radius: 7.5px;
  background-color: var(--navbar-bg);
  box-shadow:inset 1px 10px 1px var(--shadow-rgb);
  border: none;
}
#AImodel1 img{
  width: 30px;
  height: 30px;
  color: var(--primary-strong);
  
}