/* ======================================================
   TamilAI Document Chat
   SSL Technology
====================================================== */

.document-chat-overlay {
  position: fixed;
  inset: 0;

  display: none;
  justify-content: center;
  align-items: center;

  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);

  z-index: 999999;
}
.document-chat-window {
  width: min(1400px, 96vw);

  height: min(950px, 95vh);

  display: flex;
  flex-direction: column;

  background: #0f1b27;

  border: 1px solid #19d3ff55;

  border-radius: 22px;

  overflow: hidden;

  box-shadow: 0 0 35px rgba(0, 230, 255, 0.15);
}
.document-chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 18px 24px;

  background: #11283b;

  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.document-chat-title {
  display: flex;
  align-items: center;
  gap: 15px;
}

.document-chat-icon {
  font-size: 32px;
}

#documentChatTitle {
  white-space: nowrap;

  overflow: hidden;

  text-overflow: ellipsis;

  font-size: 20px;
}

.document-chat-status {
  margin-top: 5px;

  font-size: 13px;

  color: #59ff92;
}
#documentChatClose {
  width: 42px;
  height: 42px;

  border: none;

  border-radius: 12px;

  background: #193247;

  color: var(--text-primary);

  cursor: pointer;

  transition: 0.25s;
}

#documentChatClose:hover {
  background: #ff5555;
}
/* ==========================================
   Messages
========================================== */

.document-chat-messages {
  flex: 1;

  padding: 40px 55px;

  overflow-y: auto;

  display: flex;
  flex-direction: column;
  gap: 18px;
}
/* ==========================================
   Welcome Section V2
========================================== */

.document-chat-welcome {
  width: 100%;
  max-width: 700px;

  margin: auto;

  text-align: center;
  font-size: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;

  color: var(--text-primary);

  animation: fadeWelcome 0.35s ease;
}

@keyframes fadeWelcome {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.welcome-icon {
  width: 90px;
  height: 90px;

  display: flex;
  justify-content: center;
  align-items: center;

  font-size: 46px;

  border-radius: 50%;

  background: linear-gradient(135deg, #143247, #1d4560);

  border: 1px solid rgba(0, 216, 255, 0.18);

  box-shadow: 0 0 25px rgba(0, 216, 255, 0.12);

  margin-bottom: 20px;
}

.document-chat-welcome h3 {
  margin: 0;

  font-size: 42px;

  font-weight: 700;

  color: var(--text-primary);
}

.document-chat-welcome p {
  margin-top: 14px;

  max-width: 420px;

  line-height: 1.7;

  font-size: 18px;

  color: #9db8ca;
}
.document-chat-welcome ul {
  width: 100%;

  margin-top: 35px;

  display: grid;

  gap: 16px;

  list-style: none;

  padding: 0;
}

.document-chat-welcome li {
  display: flex;

  justify-content: center;
  align-items: center;

  gap: 12px;

  padding: 18px;

  font-size: 17px;

  border-radius: 18px;

  background: #162b3d;

  border: 1px solid rgba(255, 255, 255, 0.05);

  transition: 0.25s;

  cursor: pointer;
}

.document-chat-welcome li:hover {
  transform: translateY(-4px);

  background: #1b3951;

  border-color: #00d8ff;

  box-shadow: 0 0 20px rgba(0, 216, 255, 0.15);
}
.document-chat-info {
  display: flex;

  justify-content: space-evenly;

  align-items: center;

  padding: 18px 28px;

  font-size: 15px;

  background: #122436;

  border-top: 1px solid rgba(255, 255, 255, 0.05);

  border-bottom: 1px solid rgba(255, 255, 255, 0.05);

  color: #b9d4e4;
}
.document-chat-footer {
  display: flex;

  gap: 12px;

  padding: 18px;

  background: #102232;
}

#documentChatInput {
  flex: 1;

  height: 64px;

  font-size: 17px;

  padding: 0 24px;

  background: #183247;

  border: 1px solid rgba(255, 255, 255, 0.05);

  border-radius: 18px;

  color: var(--text-primary);
}

#documentChatInput::placeholder {
  color: #7fa0b7;
}
#documentChatInput:focus {
  border-color: #00d8ff;

  box-shadow: 0 0 15px rgba(0, 216, 255, 0.15);
}

#documentChatSend {
  width: 58px;

  border-radius: 18px;

  font-size: 26px;

  transition: 0.25s;
}

#documentChatSend:hover {
  transform: scale(1.05);
}
