/* ==========================================================================
   MYTEE — StudyMyte's Official Intelligent AI Assistant Styles
   ========================================================================== */

/* Floating Launcher Button */
.mytee-launcher {
  position: fixed !important;
  bottom: 28px !important;
  right: 28px !important;
  z-index: 99998 !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 10px 18px 10px 12px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #4f46e5 100%) !important;
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 10px 25px -4px rgba(37, 99, 235, 0.5), 0 0 20px rgba(79, 70, 229, 0.35) !important;
  cursor: pointer !important;
  font-family: 'Outfit', 'Inter', -apple-system, sans-serif !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  letter-spacing: 0.3px !important;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  user-select: none !important;
  line-height: 1 !important;
}

.mytee-launcher:hover {
  transform: translateY(-3px) scale(1.04) !important;
  box-shadow: 0 16px 32px -4px rgba(37, 99, 235, 0.65), 0 0 30px rgba(79, 70, 229, 0.5) !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
}

.mytee-launcher:active {
  transform: translateY(0) scale(0.97) !important;
}

.mytee-avatar-orbit {
  position: relative !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.2) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.mytee-pulse-ring {
  position: absolute !important;
  top: -3px !important;
  left: -3px !important;
  right: -3px !important;
  bottom: -3px !important;
  border-radius: 50% !important;
  border: 2px solid rgba(255, 255, 255, 0.7) !important;
  animation: myteePulse 2.4s infinite cubic-bezier(0.4, 0, 0.6, 1) !important;
  pointer-events: none !important;
}

@keyframes myteePulse {
  0% { transform: scale(0.95); opacity: 0.9; }
  50% { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(0.95); opacity: 0; }
}

.mytee-badge-ai {
  font-size: 10px !important;
  padding: 2px 7px !important;
  background: rgba(255, 255, 255, 0.25) !important;
  border-radius: 12px !important;
  text-transform: uppercase !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px !important;
}

/* Chat Drawer / Floating Window */
.mytee-drawer {
  position: fixed !important;
  bottom: 86px !important;
  right: 28px !important;
  width: 420px !important;
  max-width: calc(100vw - 36px) !important;
  height: 620px !important;
  max-height: calc(100vh - 110px) !important;
  background: #0f172a !important;
  background: rgba(15, 23, 42, 0.96) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(59, 130, 246, 0.3) !important;
  border-radius: 24px !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 35px rgba(59, 130, 246, 0.2) !important;
  z-index: 99999 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  font-family: 'Outfit', 'Inter', -apple-system, sans-serif !important;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  transform-origin: bottom right !important;
}

[data-theme="light"] .mytee-drawer {
  background: rgba(255, 255, 255, 0.97) !important;
  border-color: rgba(59, 130, 246, 0.25) !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.22), 0 0 30px rgba(59, 130, 246, 0.12) !important;
}

.mytee-drawer.mytee-hidden {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: scale(0.92) translateY(20px) !important;
}

/* Header */
.mytee-header {
  padding: 16px 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.1) 0%, transparent 100%) !important;
}

[data-theme="light"] .mytee-header {
  border-bottom-color: rgba(0, 0, 0, 0.06) !important;
}

.mytee-header-brand {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.mytee-header-avatar {
  width: 40px !important;
  height: 40px !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #2563eb, #6366f1) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35) !important;
  position: relative !important;
}

.mytee-online-dot {
  position: absolute !important;
  bottom: -2px !important;
  right: -2px !important;
  width: 10px !important;
  height: 10px !important;
  background: #10b981 !important;
  border: 2px solid #0f172a !important;
  border-radius: 50% !important;
}

[data-theme="light"] .mytee-online-dot {
  border-color: #ffffff !important;
}

.mytee-title-row {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.mytee-title-text {
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #f8fafc !important;
  letter-spacing: -0.2px !important;
}

[data-theme="light"] .mytee-title-text {
  color: #0f172a !important;
}

.mytee-role-pill {
  font-size: 10px !important;
  font-weight: 700 !important;
  padding: 2px 7px !important;
  border-radius: 999px !important;
  background: rgba(59, 130, 246, 0.2) !important;
  color: #60a5fa !important;
  border: 1px solid rgba(59, 130, 246, 0.35) !important;
}

.mytee-subtitle-text {
  font-size: 11.5px !important;
  color: #94a3b8 !important;
  margin-top: 1px !important;
}

[data-theme="light"] .mytee-subtitle-text {
  color: #64748b !important;
}

.mytee-header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.mytee-header-btn {
  background: none !important;
  border: none !important;
  color: #94a3b8 !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.mytee-header-btn:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #f8fafc !important;
}

[data-theme="light"] .mytee-header-btn:hover {
  background: rgba(0, 0, 0, 0.06) !important;
  color: #0f172a !important;
}

/* Chat Messages Container */
.mytee-body {
  flex: 1 !important;
  overflow-y: auto !important;
  padding: 18px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  scroll-behavior: smooth !important;
}

/* Message Item */
.mytee-msg-wrap {
  display: flex !important;
  gap: 10px !important;
  max-width: 90% !important;
  animation: myteeMsgFade 0.22s ease forwards !important;
}

@keyframes myteeMsgFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.mytee-msg-wrap.user {
  align-self: flex-end !important;
  flex-direction: row-reverse !important;
}

.mytee-msg-wrap.model {
  align-self: flex-start !important;
}

.mytee-msg-bubble {
  padding: 12px 16px !important;
  border-radius: 18px !important;
  font-size: 13.5px !important;
  line-height: 1.55 !important;
  word-break: break-word !important;
}

.mytee-msg-wrap.user .mytee-msg-bubble {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  border-bottom-right-radius: 4px !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3) !important;
}

.mytee-msg-wrap.model .mytee-msg-bubble {
  background: rgba(30, 41, 59, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #f1f5f9 !important;
  border-bottom-left-radius: 4px !important;
}

[data-theme="light"] .mytee-msg-wrap.model .mytee-msg-bubble {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #1e293b !important;
}

.mytee-msg-bubble p {
  margin: 0 0 8px 0 !important;
}
.mytee-msg-bubble p:last-child {
  margin-bottom: 0 !important;
}

.mytee-msg-bubble strong {
  color: #60a5fa !important;
  font-weight: 700 !important;
}

[data-theme="light"] .mytee-msg-bubble strong {
  color: #1d4ed8 !important;
}

.mytee-msg-bubble code {
  background: rgba(0, 0, 0, 0.35) !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  font-family: monospace !important;
  font-size: 12px !important;
}

[data-theme="light"] .mytee-msg-bubble code {
  background: #e2e8f0 !important;
}

/* Suggestion Chips */
.mytee-chips-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  margin-top: 10px !important;
}

.mytee-chip-btn {
  background: rgba(37, 99, 235, 0.1) !important;
  border: 1px solid rgba(59, 130, 246, 0.3) !important;
  padding: 8px 12px !important;
  border-radius: 12px !important;
  color: #f1f5f9 !important;
  font-size: 12.5px !important;
  text-align: left !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-family: inherit !important;
}

.mytee-chip-btn:hover {
  background: rgba(37, 99, 235, 0.2) !important;
  border-color: #3b82f6 !important;
  transform: translateX(3px) !important;
}

.mytee-chip-highlight {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(239, 68, 68, 0.15)) !important;
  border: 1px solid rgba(245, 158, 11, 0.45) !important;
  color: #fef08a !important;
  font-weight: 600 !important;
}

.mytee-chip-highlight:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(239, 68, 68, 0.25)) !important;
  border-color: #f59e0b !important;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.3) !important;
}

[data-theme="light"] .mytee-chip-highlight {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(239, 68, 68, 0.1)) !important;
  border-color: rgba(245, 158, 11, 0.4) !important;
  color: #b45309 !important;
}

[data-theme="light"] .mytee-chip-btn {
  background: rgba(37, 99, 235, 0.06) !important;
  border-color: rgba(37, 99, 235, 0.2) !important;
  color: #1e293b !important;
}

/* Resource Cards */
.mytee-resource-card {
  margin-top: 10px !important;
  padding: 12px 14px !important;
  border-radius: 14px !important;
  background: rgba(15, 23, 42, 0.9) !important;
  border: 1px solid rgba(59, 130, 246, 0.35) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

[data-theme="light"] .mytee-resource-card {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06) !important;
}

.mytee-resource-header {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 8px !important;
}

.mytee-resource-title {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #f8fafc !important;
  line-height: 1.4 !important;
}

[data-theme="light"] .mytee-resource-title {
  color: #0f172a !important;
}

.mytee-type-tag {
  font-size: 9.5px !important;
  font-weight: 800 !important;
  padding: 2px 6px !important;
  border-radius: 6px !important;
  text-transform: uppercase !important;
  background: rgba(16, 185, 129, 0.18) !important;
  color: #10b981 !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
  white-space: nowrap !important;
}

.mytee-type-tag.pyq {
  background: rgba(245, 158, 11, 0.18) !important;
  color: #f59e0b !important;
  border-color: rgba(245, 158, 11, 0.35) !important;
}

.mytee-resource-meta {
  font-size: 11.5px !important;
  color: #94a3b8 !important;
  display: flex !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}

[data-theme="light"] .mytee-resource-meta {
  color: #64748b !important;
}

.mytee-resource-actions {
  display: flex !important;
  gap: 8px !important;
  margin-top: 4px !important;
}

.mytee-btn-action {
  flex: 1 !important;
  padding: 7px 10px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  text-align: center !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.mytee-btn-action.primary {
  background: #2563eb !important;
  color: #ffffff !important;
  border: none !important;
}
.mytee-btn-action.primary:hover {
  background: #1d4ed8 !important;
}

.mytee-btn-action.secondary {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #f8fafc !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}
.mytee-btn-action.secondary:hover {
  background: rgba(255, 255, 255, 0.15) !important;
}

[data-theme="light"] .mytee-btn-action.secondary {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #1e293b !important;
}

/* Action Nav Pill */
.mytee-nav-pill-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin-top: 8px !important;
  margin-right: 6px !important;
  padding: 6px 12px !important;
  background: rgba(99, 102, 241, 0.15) !important;
  border: 1px solid rgba(99, 102, 241, 0.4) !important;
  border-radius: 999px !important;
  color: #818cf8 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
}

.mytee-nav-pill-btn:hover {
  background: rgba(99, 102, 241, 0.28) !important;
  transform: translateY(-1px) !important;
}

/* Link / Redirection Buttons in MYTEE */
.mytee-link-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 5px 12px !important;
  margin: 3px 2px !important;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.22) 0%, rgba(79, 70, 229, 0.25) 100%) !important;
  border: 1px solid rgba(99, 102, 241, 0.45) !important;
  border-radius: 999px !important;
  color: #38bdf8 !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  vertical-align: middle !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
}

.mytee-link-btn:hover {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.45) 0%, rgba(79, 70, 229, 0.55) 100%) !important;
  border-color: rgba(96, 165, 250, 0.8) !important;
  color: #ffffff !important;
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4) !important;
}

[data-theme="light"] .mytee-link-btn {
  background: #eff6ff !important;
  border-color: #93c5fd !important;
  color: #1d4ed8 !important;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.12) !important;
}

[data-theme="light"] .mytee-link-btn:hover {
  background: #2563eb !important;
  color: #ffffff !important;
  border-color: #1d4ed8 !important;
}

.mytee-link-btn.instagram {
  border-color: rgba(225, 48, 108, 0.45) !important;
  background: rgba(225, 48, 108, 0.15) !important;
  color: #f472b6 !important;
}
.mytee-link-btn.instagram:hover {
  background: rgba(225, 48, 108, 0.35) !important;
  color: #ffffff !important;
}

.mytee-link-btn.telegram {
  border-color: rgba(0, 136, 204, 0.45) !important;
  background: rgba(0, 136, 204, 0.15) !important;
  color: #38bdf8 !important;
}
.mytee-link-btn.telegram:hover {
  background: rgba(0, 136, 204, 0.35) !important;
  color: #ffffff !important;
}

.mytee-link-btn.github {
  border-color: rgba(148, 163, 184, 0.4) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #e2e8f0 !important;
}
.mytee-link-btn.github:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
}

.mytee-link-btn.mail {
  border-color: rgba(52, 211, 153, 0.45) !important;
  background: rgba(16, 185, 129, 0.15) !important;
  color: #34d399 !important;
}
.mytee-link-btn.mail:hover {
  background: rgba(16, 185, 129, 0.35) !important;
  color: #ffffff !important;
}

.mytee-links-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin-top: 10px !important;
  margin-bottom: 6px !important;
}

.mytee-redirect-card-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 14px !important;
  border-radius: 12px !important;
  background: rgba(15, 23, 42, 0.75) !important;
  border: 1px solid rgba(59, 130, 246, 0.4) !important;
  color: #f8fafc !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
}

.mytee-redirect-card-btn:hover {
  transform: translateY(-2px) !important;
  background: rgba(30, 58, 138, 0.6) !important;
  border-color: #38bdf8 !important;
  color: #ffffff !important;
  box-shadow: 0 6px 18px rgba(56, 189, 248, 0.35) !important;
}

.mytee-redirect-card-btn.instagram {
  border-color: rgba(225, 48, 108, 0.45) !important;
  background: rgba(225, 48, 108, 0.12) !important;
  color: #f472b6 !important;
}

.mytee-redirect-card-btn.instagram:hover {
  background: rgba(225, 48, 108, 0.3) !important;
  border-color: #f472b6 !important;
  color: #ffffff !important;
}

.mytee-redirect-card-btn.telegram {
  border-color: rgba(0, 136, 204, 0.45) !important;
  background: rgba(0, 136, 204, 0.12) !important;
  color: #38bdf8 !important;
}

.mytee-redirect-card-btn.telegram:hover {
  background: rgba(0, 136, 204, 0.3) !important;
  border-color: #38bdf8 !important;
  color: #ffffff !important;
}

.mytee-redirect-card-btn.github {
  border-color: rgba(148, 163, 184, 0.45) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #e2e8f0 !important;
}

.mytee-redirect-card-btn.github:hover {
  background: rgba(255, 255, 255, 0.18) !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
}

.mytee-redirect-card-btn.mail {
  border-color: rgba(52, 211, 153, 0.45) !important;
  background: rgba(16, 185, 129, 0.12) !important;
  color: #34d399 !important;
}

.mytee-redirect-card-btn.mail:hover {
  background: rgba(16, 185, 129, 0.28) !important;
  border-color: #34d399 !important;
  color: #ffffff !important;
}

.mytee-redirect-card-btn.support {
  border-color: rgba(251, 191, 36, 0.45) !important;
  background: rgba(245, 158, 11, 0.12) !important;
  color: #fbbf24 !important;
}

.mytee-redirect-card-btn.support:hover {
  background: rgba(245, 158, 11, 0.28) !important;
  border-color: #fbbf24 !important;
  color: #ffffff !important;
}

[data-theme="light"] .mytee-redirect-card-btn {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .mytee-redirect-card-btn:hover {
  border-color: #2563eb !important;
  color: #2563eb !important;
  background: #f8fafc !important;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.15) !important;
}

[data-theme="light"] .mytee-redirect-card-btn.instagram {
  background: #fdf2f8 !important;
  border-color: #fbcfe8 !important;
  color: #db2777 !important;
}

[data-theme="light"] .mytee-redirect-card-btn.telegram {
  background: #f0f9ff !important;
  border-color: #bae6fd !important;
  color: #0284c7 !important;
}

[data-theme="light"] .mytee-redirect-card-btn.github {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #0f172a !important;
}

[data-theme="light"] .mytee-redirect-card-btn.mail {
  background: #ecfdf5 !important;
  border-color: #a7f3d0 !important;
  color: #059669 !important;
}

[data-theme="light"] .mytee-redirect-card-btn.support {
  background: #fffbeb !important;
  border-color: #fde68a !important;
  color: #d97706 !important;
}

/* Support Ticket Card */
.mytee-ticket-card {
  margin-top: 10px !important;
  padding: 14px !important;
  border-radius: 14px !important;
  background: rgba(16, 185, 129, 0.1) !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
}

.mytee-ticket-id {
  font-size: 14px !important;
  font-weight: 800 !important;
  color: #10b981 !important;
}

/* Secure Password Reset Widget */
.mytee-reset-card {
  margin-top: 10px !important;
  padding: 14px !important;
  border-radius: 14px !important;
  background: rgba(15, 23, 42, 0.75) !important;
  border: 1px solid rgba(16, 185, 129, 0.45) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
}

.mytee-reset-header {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  color: #10b981 !important;
  margin-bottom: 8px !important;
}

.mytee-reset-field-wrap {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
}

.mytee-reset-input {
  width: 100% !important;
  padding: 8px 36px 8px 12px !important;
  border-radius: 8px !important;
  background: rgba(30, 41, 59, 0.8) !important;
  border: 1px solid rgba(148, 163, 184, 0.3) !important;
  color: #f8fafc !important;
  font-size: 12.5px !important;
  outline: none !important;
  transition: border-color 0.2s !important;
}

.mytee-reset-input:focus {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2) !important;
}

.mytee-eye-btn {
  position: absolute !important;
  right: 8px !important;
  background: transparent !important;
  border: none !important;
  color: #94a3b8 !important;
  cursor: pointer !important;
  padding: 4px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.mytee-eye-btn:hover {
  color: #f8fafc !important;
}

[data-theme="light"] .mytee-reset-card {
  background: #f0fdf4 !important;
  border-color: #86efac !important;
}

[data-theme="light"] .mytee-reset-input {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

/* Typing Indicator */
.mytee-typing-dots {
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 12px 18px !important;
  background: rgba(30, 41, 59, 0.7) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 18px !important;
  width: fit-content !important;
}

.mytee-typing-dots span {
  width: 6px !important;
  height: 6px !important;
  background: #3b82f6 !important;
  border-radius: 50% !important;
  animation: myteeDot 1.4s infinite ease-in-out both !important;
}

.mytee-typing-dots span:nth-child(1) { animation-delay: -0.32s !important; }
.mytee-typing-dots span:nth-child(2) { animation-delay: -0.16s !important; }

@keyframes myteeDot {
  0%, 80%, 100% { transform: scale(0); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* Message Meta & Feedback Actions */
.mytee-msg-footer {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-top: 8px !important;
  font-size: 11px !important;
  color: #94a3b8 !important;
}

/* ChatGPT-Style Live Typewriter Streaming Cursor */
.mytee-streaming-cursor {
  display: inline-block !important;
  width: 6px !important;
  height: 15px !important;
  background: #38bdf8 !important;
  margin-left: 3px !important;
  border-radius: 2px !important;
  vertical-align: middle !important;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.9) !important;
  animation: myteeCursorBlink 0.75s infinite ease-in-out !important;
}

[data-theme="light"] .mytee-streaming-cursor {
  background: #0284c7 !important;
  box-shadow: 0 0 8px rgba(2, 132, 199, 0.7) !important;
}

@keyframes myteeCursorBlink {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.1; transform: scaleY(0.85); }
}

.mytee-revealed-content {
  animation: myteeFadeUpCards 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@keyframes myteeFadeUpCards {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mytee-feedback-action {
  background: none !important;
  border: none !important;
  color: #94a3b8 !important;
  cursor: pointer !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  transition: all 0.2s !important;
}

.mytee-feedback-action:hover {
  color: #f8fafc !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="light"] .mytee-feedback-action:hover {
  color: #0f172a !important;
  background: rgba(0, 0, 0, 0.06) !important;
}

/* Footer & Input Area */
.mytee-footer {
  padding: 14px 18px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: rgba(15, 23, 42, 0.8) !important;
}

[data-theme="light"] .mytee-footer {
  border-top-color: rgba(0, 0, 0, 0.06) !important;
  background: rgba(248, 250, 252, 0.9) !important;
}

.mytee-input-form {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: rgba(0, 0, 0, 0.3) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 16px !important;
  padding: 4px 6px 4px 14px !important;
  transition: border-color 0.2s !important;
}

[data-theme="light"] .mytee-input-form {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
}

.mytee-input-form:focus-within {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25) !important;
}

.mytee-input-field {
  flex: 1 !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  font-family: inherit !important;
  font-size: 13.5px !important;
  color: #f8fafc !important;
  padding: 8px 0 !important;
}

[data-theme="light"] .mytee-input-field {
  color: #0f172a !important;
}

.mytee-input-field::placeholder {
  color: #94a3b8 !important;
}

.mytee-btn-send {
  width: 36px !important;
  height: 36px !important;
  border-radius: 10px !important;
  border: none !important;
  background: #2563eb !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
}

.mytee-btn-send:hover {
  background: #1d4ed8 !important;
  transform: scale(1.05) !important;
}

.mytee-btn-send:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  transform: none !important;
}

.mytee-disclaimer {
  font-size: 10px !important;
  color: #64748b !important;
  text-align: center !important;
  margin-top: 6px !important;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .mytee-launcher {
    bottom: 96px !important;
    right: 18px !important;
    padding: 8px 14px 8px 10px !important;
    font-size: 13px !important;
  }

  .mytee-drawer {
    bottom: 0 !important;
    right: 0 !important;
    left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 90vh !important;
    max-height: 90vh !important;
    border-radius: 24px 24px 0 0 !important;
    border-bottom: none !important;
  }
}



/* Inbuilt Document Viewer Priority over MYTEE */
#modal-doc-viewer {
  z-index: 1000005 !important;
}

/* Modern Exam Analyzer & Academic Presentation Styles */
.mytee-table-scroll {
  width: 100% !important;
  overflow-x: auto !important;
  margin: 12px 0 !important;
  border-radius: 12px !important;
  border: 1px solid rgba(59, 130, 246, 0.25) !important;
  background: rgba(15, 23, 42, 0.6) !important;
}

.mytee-table {
  width: 100% !important;
  border-collapse: collapse !important;
  font-size: 12px !important;
  text-align: left !important;
  min-width: 320px !important;
}

.mytee-table th {
  background: rgba(30, 58, 138, 0.35) !important;
  color: #93c5fd !important;
  padding: 8px 12px !important;
  font-weight: 700 !important;
  border-bottom: 1px solid rgba(59, 130, 246, 0.3) !important;
  white-space: nowrap !important;
}

.mytee-table td {
  padding: 8px 12px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  color: #f1f5f9 !important;
  vertical-align: middle !important;
}

.mytee-table tr:last-child td {
  border-bottom: none !important;
}

.mytee-table tr:hover td {
  background: rgba(59, 130, 246, 0.08) !important;
}

.mytee-callout {
  margin: 10px 0 !important;
  padding: 10px 14px !important;
  background: rgba(30, 58, 138, 0.2) !important;
  border-left: 3px solid #3b82f6 !important;
  border-radius: 4px 12px 12px 4px !important;
  font-size: 13px !important;
  color: #e2e8f0 !important;
  line-height: 1.5 !important;
}

.mytee-code-pill {
  display: inline-block !important;
  background: rgba(59, 130, 246, 0.15) !important;
  color: #60a5fa !important;
  border: 1px solid rgba(59, 130, 246, 0.3) !important;
  padding: 2px 7px !important;
  border-radius: 6px !important;
  font-size: 11.5px !important;
  font-family: inherit !important;
  font-weight: 600 !important;
  margin: 1px 2px !important;
}

[data-theme="light"] .mytee-table-scroll {
  background: #ffffff !important;
  border-color: rgba(37, 99, 235, 0.2) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .mytee-table th {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  border-bottom-color: rgba(37, 99, 235, 0.2) !important;
}

[data-theme="light"] .mytee-table td {
  color: #1e293b !important;
  border-bottom-color: rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .mytee-table tr:hover td {
  background: rgba(37, 99, 235, 0.04) !important;
}

[data-theme="light"] .mytee-callout {
  background: #eff6ff !important;
  border-left-color: #2563eb !important;
  color: #1e3a8a !important;
}

[data-theme="light"] .mytee-code-pill {
  background: rgba(37, 99, 235, 0.08) !important;
  color: #1d4ed8 !important;
  border-color: rgba(37, 99, 235, 0.25) !important;
}
