/* DelaAI Chat Widget - Core Font Styles */
/* Extracted from original delaai-chat-styles.css */

/* ==================== FONT IMPORTS & DECLARATIONS ==================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Vazir Font Family - Absolute Paths from Root */
@font-face {
  font-family: 'Vazirplayground';
  src: url('/fonts/Vazir.eot');
  src: url('/fonts/Vazir.eot?#iefix') format('embedded-opentype'),
       url('/fonts/Vazir.woff2') format('woff2'),
       url('/fonts/Vazir.woff') format('woff'),
       url('/fonts/Vazir.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirplayground';
  src: url('/fonts/Vazir-Thin.eot');
  src: url('/fonts/Vazir-Thin.eot?#iefix') format('embedded-opentype'),
       url('/fonts/Vazir-Thin.woff2') format('woff2'),
       url('/fonts/Vazir-Thin.woff') format('woff'),
       url('/fonts/Vazir-Thin.ttf') format('truetype');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirplayground';
  src: url('/fonts/Vazir-Light.eot');
  src: url('/fonts/Vazir-Light.eot?#iefix') format('embedded-opentype'),
       url('/fonts/Vazir-Light.woff2') format('woff2'),
       url('/fonts/Vazir-Light.woff') format('woff'),
       url('/fonts/Vazir-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirplayground';
  src: url('/fonts/Vazir-Medium.eot');
  src: url('/fonts/Vazir-Medium.eot?#iefix') format('embedded-opentype'),
       url('/fonts/Vazir-Medium.woff2') format('woff2'),
       url('/fonts/Vazir-Medium.woff') format('woff'),
       url('/fonts/Vazir-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirplayground';
  src: url('/fonts/Vazir-Bold.eot');
  src: url('/fonts/Vazir-Bold.eot?#iefix') format('embedded-opentype'),
       url('/fonts/Vazir-Bold.woff2') format('woff2'),
       url('/fonts/Vazir-Bold.woff') format('woff'),
       url('/fonts/Vazir-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}/* DelaAI Chat Widget - Core Animation Styles */
/* Extracted from original delaai-chat-styles.css */

/* ==================== ANIMATIONS ==================== */
@keyframes typing-dot {
  0%, 80%, 100% { 
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% { 
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes slideInUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.5); }
  50% { box-shadow: 0 0 30px rgba(59, 130, 246, 0.8); }
}

@keyframes scroll-faq {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

@keyframes shine {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
  100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes slideRight {
  0% { transform: translateX(-10px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}
@keyframes pulse-soft {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}/* DelaAI Chat Widget - Core CSS Variables */
/* Extracted from original delaai-chat-styles.css */

/* 
 * NOTE: The original delaai-chat-styles.css file does not contain any CSS custom properties (variables).
 * This file has been created as a placeholder for future modularization improvements.
 * 
 * In a future refactoring, common values could be extracted as variables, such as:
 * - Color schemes for each theme
 * - Common spacing values
 * - Border radius values
 * - Animation durations
 * - Font stacks
 * - Z-index values
 * 
 * Example structure (not from original file):
 * :root {
 *   --delaai-font-family: 'Vazirplayground', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
 *   --delaai-z-index-widget: 10000;
 *   --delaai-z-index-container: 10001;
 *   --delaai-border-radius-default: 16px;
 *   --delaai-animation-duration: 0.3s;
 * }
 *//* DelaAI Chat Widget - Core Reset and Base Styles */
/* Extracted from original delaai-chat-styles.css */

/* ==================== BASE WIDGET STYLES ==================== */
#delaai-chat-widget {
  position: fixed;
  z-index: 10000;
  font-family: 'Vazirplayground', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 12px;
  direction: rtl;
}

#delaai-chat-widget.bottom-right {
  bottom: 20px;
  right: 20px;
}

#delaai-chat-widget.bottom-left {
  bottom: 20px;
  left: 20px;
}

#delaai-chat-widget.top-right {
  top: 20px;
  right: 20px;
}

#delaai-chat-widget.top-left {
  top: 20px;
  left: 20px;
}/* DelaAI Chat Widget - Launcher Component Styles */
/* Extracted from original delaai-chat-styles.css */

/* ==================== LAUNCHER STYLES ==================== */
#delaai-chat-launcher {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

#delaai-chat-launcher:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

#delaai-chat-launcher svg {
  width: 28px;
  height: 28px;
  transition: all 0.3s ease;
}

#delaai-chat-launcher img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
  transition: all 0.3s ease;
}

/* Custom Logo Support */
#delaai-chat-launcher.has-custom-logo img {
  border-radius: inherit !important;
}

/* Focus state from accessibility section */
#delaai-chat-launcher:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

/* Mobile specific launcher adjustments */
@media (max-width: 480px) {
  #delaai-chat-launcher:not(.has-custom-logo) {
    width: 50px;
    height: 50px;
  }
  
  #delaai-chat-launcher.has-custom-logo {
    transform: scale(0.8);
  }
  
  #delaai-chat-launcher svg {
    width: 24px;
    height: 24px;
  }
  
  #delaai-chat-launcher:not(.has-custom-logo) img {
    width: 32px;
    height: 32px;
  }
}/* DelaAI Chat Widget - Container Component Styles */
/* Extracted from original delaai-chat-styles.css */

/* ==================== CONTAINER & HEADER STYLES ==================== */
#delaai-chat-container {
  position: absolute;
  /* bottom: 80px; */
  right: 0;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: slideInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  box-sizing: border-box;
  z-index: 10001;
}

/* ==================== RESPONSIVE DESIGN ==================== */
/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
  #delaai-chat-container {
    width: calc(100vw - 32px) !important;
    height: calc(100vh - 120px) !important;
    bottom: 16px;
    right: 16px;
    left: 16px;
    margin: 0 auto;
    max-width: 400px;
  }
}

/* ==================== RESPONSIVE DESIGN ==================== */
/* Tablet and larger mobile devices */
@media (max-width: 768px) {
  #delaai-chat-widget.bottom-right {
    bottom: 10px;
    right: 10px;
  }
 
  #delaai-chat-widget.bottom-left {
    bottom: 10px;
    left: 10px;
  }
 
  #delaai-chat-container:not(.mobile-fullscreen) {
    width: calc(100vw - 20px) !important;
    height: calc(100vh - 140px) !important;
    bottom: 70px !important;
    right: 10px !important;
    left: 10px !important;
    margin: 0 auto !important;
    max-width: 380px !important;
    position: fixed !important;
  }
 
  /* Center the container on larger mobile screens */
  #delaai-chat-widget.bottom-right #delaai-chat-container:not(.mobile-fullscreen),
  #delaai-chat-widget.bottom-left #delaai-chat-container:not(.mobile-fullscreen) {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    margin: 0 !important;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  #delaai-chat-widget.bottom-right {
    bottom: 8px;
    right: 8px;
  }
 
  #delaai-chat-widget.bottom-left {
    bottom: 8px;
    left: 8px;
  }
 
  #delaai-chat-container:not(.mobile-fullscreen) {
    width: calc(100vw - 16px) !important;
    height: calc(100vh - 120px) !important;
    bottom: 68px !important;
    right: 8px !important;
    left: 8px !important;
    margin: 0 !important;
    max-width: none !important;
    position: fixed !important;
    transform: none !important;
  }
 
  /* Override centering for very small screens */
  #delaai-chat-widget.bottom-right #delaai-chat-container:not(.mobile-fullscreen),
  #delaai-chat-widget.bottom-left #delaai-chat-container:not(.mobile-fullscreen) {
    left: 8px !important;
    right: 8px !important;
    transform: none !important;
  }
}

/* Very small screens (iPhone SE, etc.) */
@media (max-width: 375px) {
  #delaai-chat-container:not(.mobile-fullscreen) {
    width: calc(100vw - 12px) !important;
    height: calc(100vh - 100px) !important;
    bottom: 60px !important;
    right: 6px !important;
    left: 6px !important;
  }
 
  #delaai-chat-widget.bottom-right #delaai-chat-container:not(.mobile-fullscreen),
  #delaai-chat-widget.bottom-left #delaai-chat-container:not(.mobile-fullscreen) {
    left: 6px !important;
    right: 6px !important;
  }
}

/* Landscape orientation fixes */
@media (max-width: 768px) and (orientation: landscape) {
  #delaai-chat-container:not(.mobile-fullscreen) {
    height: calc(100vh - 80px) !important;
    bottom: 60px !important;
  }
}

/* Safe area support for devices with notches */
@media (max-width: 480px) {
  #delaai-chat-container:not(.mobile-fullscreen) {
    bottom: max(68px, env(safe-area-inset-bottom, 68px)) !important;
    left: max(8px, env(safe-area-inset-left, 8px)) !important;
    right: max(8px, env(safe-area-inset-right, 8px)) !important;
    width: calc(100vw - max(16px, env(safe-area-inset-left, 8px) + env(safe-area-inset-right, 8px))) !important;
  }
}/* DelaAI Chat Widget - Header Component Styles */
/* Extracted from original delaai-chat-styles.css */

#delaai-chat-header {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  position: relative;
}

#delaai-chat-company-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  direction: rtl;
}

#delaai-header-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

#delaai-company-name {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
  direction: rtl;
}

#delaai-chat-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.2s ease;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  flex-shrink: 0;
}

/* Focus state from accessibility section */
#delaai-chat-close:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

/* Mobile adjustments */
@media (max-width: 480px) {
  #delaai-chat-close {
    margin-right: 8px;
  }
  
  #delaai-header-logo {
    width: 28px;
    height: 28px;
  }
  
  #delaai-company-name {
    font-size: 14px;
    max-width: 140px;
  }
  
  #delaai-chat-company-info {
    gap: 8px;
  }
}/* /var/www/html/styles/components/messages.css */
/* DelaAI Chat Widget - Messages Component Styles */
/* Extracted from original delaai-chat-styles.css */

/* ==================== MESSAGES CONTAINER ==================== */
#delaai-chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* ==================== MESSAGE STYLES ==================== */
.delaai-message-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  direction: ltr; /* Keep wrapper LTR for proper avatar positioning */
}

.delaai-message-wrapper.user {
  flex-direction: row-reverse;
  justify-content: flex-start;
}

.delaai-message-wrapper.assistant {
  flex-direction: row;
  justify-content: flex-start;
}

.delaai-message-avatar {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.delaai-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.delaai-message {
  margin-bottom: 0;
  padding: 12px 16px;
  border-radius: 18px;
  max-width: 85%;
  word-wrap: break-word;
  line-height: 1.6;
  animation: slideInRight 0.3s ease;
  text-align: right;
  direction: rtl;
}

/* Handle lists with auto direction inside RTL messages */
.delaai-message.assistant ul[dir="auto"],
.delaai-message.assistant ol[dir="auto"] {
  direction: rtl;
  padding-left: 0;
  padding-right: 25px;
  text-align: right;
}

/* But keep the direction flexible for mixed content */
.delaai-message ul,
.delaai-message ol {
  unicode-bidi: plaintext;
}

.delaai-message.user {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  margin-left: auto;
  border-bottom-right-radius: 6px;
}

.delaai-message.assistant {
  border-bottom-left-radius: 6px;
  margin-right: auto;
}

/* Message Content Formatting */
.delaai-message p {
  margin: 0 0 8px 0;
  line-height: 1.6;
}

.delaai-message p:last-child {
  margin-bottom: 0;
}

.delaai-message code {
  background: rgba(0, 0, 0, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Vazirplayground', 'Monaco', 'Menlo', 'Consolas', monospace;
  font-size: 13px;
}

.delaai-message pre {
  background: rgba(0, 0, 0, 0.05);
  padding: 12px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 8px 0;
  border-left: 3px solid rgba(0, 0, 0, 0.2);
}

.delaai-message pre code {
  background: none;
  padding: 0;
  font-family: 'Vazirplayground', 'Monaco', 'Menlo', 'Consolas', monospace;
}

.delaai-message h1, .delaai-message h2, .delaai-message h3 {
  margin: 12px 0 8px 0;
  font-weight: 600;
}

.delaai-message ul[dir="rtl"], 
.delaai-message ol[dir="rtl"] {
  padding-left: 0;
  padding-right: 20px;
}

.delaai-message ul[dir="rtl"] li,
.delaai-message ol[dir="rtl"] li {
  direction: rtl;
  text-align: right;
}

.delaai-message ul, .delaai-message ol {
  margin: 8px 0;
  padding-left: 20px;
}

/* Fix RTL ordered list numbering */
.delaai-message ol[dir="rtl"] {
  list-style: none;
  counter-reset: item;
}

.delaai-message ol[dir="rtl"] li {
  counter-increment: item;
  position: relative;
  padding-right: 35px;
}

.delaai-message ol[dir="rtl"] li::before {
  content: counter(item) ". ";
  position: absolute;
  right: 0;
  font-weight: bold;
}

.delaai-message blockquote {
  margin: 8px 0;
  padding-left: 12px;
  border-left: 3px solid rgba(0, 0, 0, 0.3);
  font-style: italic;
  opacity: 0.8;
}

/* Enhanced Code Block Styles */
.delaai-code-container {
  margin: 12px 0;
  border-radius: 8px;
  overflow: hidden;
  background: #1a1b26;
  border: 1px solid #2d3748;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  direction: ltr !important;
  text-align: left !important;
}

.delaai-code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #16161e;
  border-bottom: 1px solid #2d3748;
  font-size: 12px;
}

.delaai-code-language {
  color: #7aa2f7;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.delaai-copy-btn {
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.delaai-copy-btn:hover {
  color: #7aa2f7;
  background: rgba(122, 162, 247, 0.1);
}

.delaai-code-block {
  margin: 0 !important;
  padding: 12px !important;
  background: #1a1b26 !important;
  overflow-x: auto;
  font-family: 'JetBrains Mono', 'Fira Code', 'Monaco', 'Menlo', 'Consolas', monospace !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  border: none !important;
  border-radius: 0 !important;
  white-space: pre !important;
  direction: ltr !important;
  text-align: left !important;
  tab-size: 4 !important;
}

.delaai-code-block code {
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  font-family: inherit !important;
  color: #a9b1d6 !important;
  white-space: pre !important;
  direction: ltr !important;
  text-align: left !important;
  display: block !important;
  width: 100% !important;
}

/* Enhanced inline code */
.delaai-message code:not(.delaai-code-block code) {
  background: rgba(122, 162, 247, 0.1) !important;
  color: #7aa2f7 !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  font-family: 'JetBrains Mono', 'Fira Code', 'Monaco', 'Menlo', 'Consolas', monospace !important;
  font-size: 12px !important;
  border: 1px solid rgba(122, 162, 247, 0.2) !important;
}

/* Tokyo Night theme overrides */
.hljs {
  background: #1a1b26 !important;
  color: #a9b1d6 !important;
}

/* Different tab sizes for various languages */
.delaai-code-block .language-python {
  tab-size: 4 !important;
}

.delaai-code-block .language-javascript {
  tab-size: 2 !important;
}

.delaai-code-block .language-json {
  tab-size: 2 !important;
}

.delaai-code-block .language-css {
  tab-size: 2 !important;
}

.delaai-code-block .language-html {
  tab-size: 2 !important;
}

/* Ensure proper spacing for indented code */
.delaai-code-block code::before {
  content: '';
  white-space: pre;
}

/* Mobile responsiveness for code blocks */
@media (max-width: 480px) {
  .delaai-code-container {
    margin: 8px -4px;
    border-radius: 6px;
  }
  
  .delaai-code-header {
    padding: 6px 8px;
    font-size: 11px;
  }
  
  .delaai-code-block {
    padding: 8px !important;
    font-size: 12px !important;
  }
  
  .delaai-copy-btn {
    padding: 2px;
  }
}

/* Welcome Message */
.delaai-welcome-message {
  margin-bottom: 24px !important;
  position: relative;
}

.delaai-welcome-message::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .delaai-message-avatar {
    width: 28px;
    height: 28px;
  }
  
  .delaai-message-wrapper {
    gap: 8px;
  }
  
  .delaai-welcome-message {
    margin-bottom: 20px !important;
  }
  
  .delaai-welcome-message::after {
    width: 40px;
  }
}

/* Ensure images integrate properly within message bubbles */
.delaai-message .delaai-message-images {
  margin-top: 12px !important;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 12px;
}

/* Accessibility - High contrast mode */
@media (prefers-contrast: high) {
  .delaai-message {
    border: 2px solid currentColor;
  }
}

/* RTL Support for Markdown Elements */
.delaai-message.assistant[style*="direction: rtl"] h1,
.delaai-message.assistant[style*="direction: rtl"] h2,
.delaai-message.assistant[style*="direction: rtl"] h3,
.delaai-message.assistant[style*="direction: rtl"] h4,
.delaai-message.assistant[style*="direction: rtl"] h5,
.delaai-message.assistant[style*="direction: rtl"] h6 {
  direction: rtl !important;
  text-align: right !important;
  unicode-bidi: embed;
}

.delaai-message.assistant[style*="direction: rtl"] p {
  direction: rtl !important;
  text-align: right !important;
  unicode-bidi: embed;
}

.delaai-message.assistant[style*="direction: rtl"] blockquote {
  direction: rtl !important;
  text-align: right !important;
  border-left: none;
  border-right: 3px solid rgba(0, 0, 0, 0.3);
  padding-left: 0;
  padding-right: 12px;
}

.delaai-message.assistant[style*="direction: rtl"] ul,
.delaai-message.assistant ul[dir="rtl"] {
  direction: rtl !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-right: 20px !important;
  margin-left: 0 !important;
  list-style-position: inside !important;
}

.delaai-message.assistant[style*="direction: rtl"] ul li,
.delaai-message.assistant ul[dir="rtl"] li {
  direction: rtl !important;
  text-align: right !important;
}

.delaai-message.assistant[style*="direction: rtl"] ol,
.delaai-message.assistant ol[dir="rtl"] {
  direction: rtl !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-right: 20px !important;
  margin-left: 0 !important;
  list-style-position: inside !important;
  list-style-type: decimal !important;
}

.delaai-message.assistant[style*="direction: rtl"] ol li,
.delaai-message.assistant ol[dir="rtl"] li {
  direction: rtl !important;
  text-align: right !important;
}

.delaai-message.assistant[style*="direction: rtl"] ol {
  list-style: decimal inside !important;
  counter-reset: none !important;
}

.delaai-message.assistant[style*="direction: rtl"] ol li {
  padding-right: 0 !important;
  position: static !important;
}

.delaai-message.assistant[style*="direction: rtl"] ol li::before {
  display: none !important;
}

.delaai-message.assistant[style*="direction: rtl"] {
  unicode-bidi: plaintext;
}

.delaai-message.assistant[style*="direction: rtl"] code {
  direction: ltr !important;
  unicode-bidi: isolate;
}

.delaai-message.assistant[style*="direction: rtl"] strong,
.delaai-message.assistant[style*="direction: rtl"] em {
  unicode-bidi: embed;
}

/* RTL bullet points */
.delaai-message[style*="direction: rtl"] ul li::marker {
  unicode-bidi: bidi-override;
}

/* Force RTL for Persian/Arabic content that might be misdetected */
.delaai-message.assistant:has(*:lang(fa)),
.delaai-message.assistant:has(*:lang(ar)),
.delaai-message.assistant:has(*:lang(he)) {
  direction: rtl !important;
}

/* Ensure all child elements inherit RTL when parent is RTL */
.delaai-message.assistant[style*="direction: rtl"] * {
  direction: inherit;
  text-align: inherit;
}

/* Fix for headers without dir attribute */
.delaai-message.assistant h1,
.delaai-message.assistant h2,
.delaai-message.assistant h3,
.delaai-message.assistant h4,
.delaai-message.assistant h5,
.delaai-message.assistant h6 {
  unicode-bidi: plaintext;
}

/* Ensure ordered lists in RTL show numbers on the right */
.delaai-message.assistant ol[dir="rtl"],
.delaai-message.assistant[style*="direction: rtl"] ol {
  list-style-position: inside;
  direction: rtl;
  text-align: right;
  padding-right: 0;
  padding-left: 0;
}

.delaai-message.assistant ol[dir="rtl"] li,
.delaai-message.assistant[style*="direction: rtl"] ol li {
  text-align: right;
  direction: rtl;
}

/* Fix bullet points position for RTL */
.delaai-message.assistant ul[dir="rtl"],
.delaai-message.assistant[style*="direction: rtl"] ul {
  list-style-position: inside;
  direction: rtl;
  text-align: right;
  padding-right: 0;
  padding-left: 0;
}

.delaai-message.assistant ul[dir="rtl"] li::marker,
.delaai-message.assistant[style*="direction: rtl"] ul li::marker {
  unicode-bidi: bidi-override;
  direction: rtl;
}/* DelaAI Chat Widget - Input Component Styles */
/* Extracted from original delaai-chat-styles.css */

/* ==================== INPUT CONTAINER ==================== */
#delaai-chat-input-container {
  padding: 0 20px 0px 10px;
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 60px;
  flex-shrink: 0;
  height: 46px !important;
}

#delaai-chat-input::placeholder {
  padding-top: 5px;
}

#delaai-chat-input {
  flex: 1;
  border: none;
  outline: none;
  resize: none;
  padding: 3px 10px;
  border-radius: 20px;
  font-family: 'Vazirplayground', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  transition: all 0.2s ease;
  height: 15px !important;
  min-height: 30px;
  max-height: 100px;
  direction: rtl;
}

#delaai-chat-send {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
  box-sizing: content-box !important; /* Add this */
  padding: 0 !important; /* Ensure no padding */
}

#delaai-chat-send:hover {
  transform: scale(1.05);
}

#delaai-chat-send svg {
  width: 18px;
  height: 18px;
  overflow: auto !important;
}

/* Focus states from accessibility section */
#delaai-chat-send:focus,
#delaai-chat-input:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

/* Attachment button styles */
#delaai-chat-attach {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.05);
  color: #64748b;
  box-sizing: content-box !important; /* Add this */
  padding: 0 !important; /* Ensure no padding */
}

#delaai-chat-attach:hover {
  transform: scale(1.05);
  background: rgba(0, 0, 0, 0.1);
}

#delaai-chat-attach.has-attachment {
  background: #3b82f6;
  color: white;
}

#delaai-chat-attach svg {
  width: 18px;
  height: 18px;
}

#delaai-chat-attach:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

#delaai-chat-input:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

#delaai-chat-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* High contrast mode */
@media (prefers-contrast: high) {
  #delaai-chat-attach {
    border: 2px solid currentColor;
  }
}

/* High contrast mode from accessibility section */
@media (prefers-contrast: high) {
  #delaai-chat-input {
    border: 2px solid currentColor;
  }
}/* DelaAI Chat Widget - Footer Component Styles */
/* Extracted from original delaai-chat-styles.css */

/* ==================== FOOTER STYLES ==================== */
#delaai-chat-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 8px 16px;
  text-align: center;
  flex-shrink: 0;
  background: inherit;
}

.delaai-footer-link {
  font-size: 10px;
  text-decoration: none;
  opacity: 0.7;
  transition: all 0.2s ease;
  font-family: 'Vazirplayground', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.delaai-footer-link:hover {
  opacity: 1;
  text-decoration: none;
  transform: translateY(-1px);
}

.delaai-footer-fallback {
  text-align: center;
  padding: 12px;
  font-size: 11px;
  opacity: 0.6;
  border: none;
}/* DelaAI Chat Widget - Scrollbars Component Styles */
/* Extracted from original delaai-chat-styles.css */

/* Messages container scrollbar */
#delaai-chat-messages::-webkit-scrollbar {
  width: 4px;
}

#delaai-chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

#delaai-chat-messages::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 2px;
}

/* Custom scrollbar for code blocks */
.delaai-code-block::-webkit-scrollbar {
  height: 6px;
}

.delaai-code-block::-webkit-scrollbar-track {
  background: #16161e;
}

.delaai-code-block::-webkit-scrollbar-thumb {
  background: #414868;
  border-radius: 3px;
}

.delaai-code-block::-webkit-scrollbar-thumb:hover {
  background: #565f89;
}/* /var/www/html/styles/features/faq.css */
/* DelaAI Chat Widget - FAQ Feature Styles */
/* Extracted from original delaai-chat-styles.css */

/* ==================== FAQ STYLES ==================== */
#delaai-chat-faq-wrapper {
  background: transparent;
  flex-shrink: 0;
  border: none;
  overflow: hidden;
}

.delaai-faq-container {
  overflow-x: auto;
  overflow-y: hidden;
  border: none;
  border-radius: 0;
  background: transparent;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.delaai-faq-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.delaai-faq-scroll {
  display: flex;
  animation: scroll-faq 20s linear infinite;
  gap: 8px;
  padding: 0px 16px;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.delaai-faq-scroll:hover {
  animation-play-state: paused;
}

.delaai-faq-scroll.dragging {
  animation: none;
  cursor: grabbing;
}

.delaai-faq-item {
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 12px;
  flex-shrink: 0;
  font-family: 'Vazirplayground', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  direction: rtl;
  text-align: right;
}

.delaai-faq-item:hover {
  transform: translateY(-1px);
}/* DelaAI Chat Widget - History Feature Styles */
/* Enhanced with modern card design and improved visual hierarchy */

/* ==================== HISTORY STYLES ==================== */
.delaai-history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.delaai-history-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

/* Bottom positioned history header */
.delaai-history-header-bottom {
  border-bottom: none !important;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin-top: auto;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  bottom: 0;
  z-index: 5;
  justify-content: center !important;
  padding: 16px 20px;
}

.delaai-conversations-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  padding-bottom: 0;
}

/* ==================== MODERN CARD DESIGN ==================== */
.delaai-conversation-item {
  padding: 16px;
  margin-bottom: 12px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

/* Status indicator bar */
.delaai-conversation-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.delaai-conversation-item:hover::before {
  opacity: 1;
}

/* Conversation icon/avatar area */
.delaai-conversation-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.delaai-conversation-icon::after {
  content: '💬';
  font-size: 18px;
}

/* Main content area */
.delaai-conversation-content {
  flex: 1;
  min-width: 0;
  padding-right: 28px;
}

/* Date with better styling */
.delaai-conversation-date {
  font-size: 11px;
  color: #64748b;
  margin-bottom: 6px;
  font-weight: 500;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.delaai-conversation-date::before {
  content: '🕐';
  font-size: 10px;
  opacity: 0.6;
}

/* Main message text */
.delaai-conversation-text {
  font-size: 14px;
  color: #1e293b;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.4;
  font-weight: 400;
}

/* Message count with badge style */
.delaai-conversation-messages-count {
  font-size: 11px;
  color: #64748b;
  background: rgba(59, 130, 246, 0.08);
  padding: 2px 8px;
  border-radius: 12px;
  display: inline-block;
  font-weight: 500;
}

/* Hover state */
.delaai-conversation-item:hover {
  background: #f8fafc;
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: rgba(59, 130, 246, 0.2);
}

.delaai-conversation-item:hover .delaai-conversation-icon {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

/* Active/selected state */
.delaai-conversation-item.active {
  background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
  border-color: rgba(59, 130, 246, 0.3);
}

.delaai-conversation-item.active::before {
  opacity: 1;
  width: 4px;
}

/* ==================== NAVIGATION BUTTONS ==================== */
.delaai-back-to-history {
  width: calc(100% - 32px);
  margin: 8px 16px 16px;
  padding: 12px 16px;
  background: transparent;
  border: none;
  color: #3b82f6;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  text-align: right;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 8px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.delaai-back-to-history[dir="ltr"] {
  text-align: left;
  flex-direction: row;
}

.delaai-back-to-history[dir="rtl"] {
  text-align: right;
  flex-direction: row-reverse;
}

.delaai-back-to-history::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transition: transform 0.3s ease;
  border-radius: 1px;
}

.delaai-back-to-history:hover {
  color: #2563eb;
  background: rgba(59, 130, 246, 0.08);
  padding-left: 20px;
}

.delaai-back-to-history:hover::after {
  transform: scaleX(1);
}

/* ==================== EMPTY STATE ==================== */
.delaai-empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #6c757d;
  font-size: 14px;
}

/* ==================== BUTTON STYLES ==================== */
.delaai-new-conversation-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.delaai-new-conversation-btn:hover {
  background: #2563eb;
}

/* Wide version of new conversation button */
.delaai-new-conversation-btn-wide {
  width: 75%;
  justify-content: center;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  margin: 0 auto;
}

.delaai-new-conversation-btn-wide:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* View History Button - Modern Design */
.delaai-view-history-btn {
  width: calc(75% - 32px);
  margin: 7px;
  padding: 13px 16px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(59, 130, 246, 0.12) 100%);
  border: 1.5px solid rgba(59, 130, 246, 0.2);
  color: #3b82f6;
  border-radius: 12px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  font-family: 'Vazirplayground', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.delaai-view-history-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
  transition: left 0.5s ease;
}

.delaai-view-history-btn:hover::before {
  left: 100%;
}

.delaai-view-history-btn:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(59, 130, 246, 0.18) 100%);
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.15);
}

.delaai-view-history-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

/* ==================== DELETE BUTTON REDESIGN ==================== */
.delaai-delete-conversation-btn {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.12);
  cursor: pointer;
  padding: 0;
  border-radius: 8px;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  z-index: 10;
  color: #ef4444;
}

.delaai-conversation-item:hover .delaai-delete-conversation-btn {
  opacity: 1;
}

.delaai-delete-conversation-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.25);
  transform: scale(1.1);
}

.delaai-delete-conversation-btn svg {
  width: 16px;
  height: 16px;
}

/* ==================== MOBILE ENHANCEMENTS ==================== */
@media (max-width: 480px) {
  .delaai-conversation-item {
    padding: 14px;
    margin-bottom: 10px;
  }
  
  /* Always show delete button on mobile */
  .delaai-delete-conversation-btn {
    opacity: 0.7;
    width: 32px;
    height: 32px;
  }
  
  .delaai-conversation-item:active {
    transform: scale(0.98);
  }
  
  /* Larger touch targets */
  .delaai-conversation-icon {
    width: 44px;
    height: 44px;
  }
  
  .delaai-conversation-text {
    font-size: 15px;
  }
  
  .delaai-delete-conversation-btn:active {
    transform: scale(0.95);
  }
}

/* Mobile enhancements for history buttons */
@media (max-width: 480px) {
  .delaai-view-history-btn {
    width: calc(100% - 24px);
    margin: 12px;
    padding: 12px 14px;
    font-size: 15px;
  }
  
  .delaai-back-to-history {
    width: calc(100% - 24px);
    margin: 8px 12px 12px;
    padding: 14px;
    font-size: 15px;
  }
  
  .delaai-view-history-btn svg,
  .delaai-back-to-history svg {
    width: 20px;
    height: 20px;
  }
}/* DelaAI Chat Widget - Images Feature Styles */
/* Extracted from original delaai-chat-styles.css */

/* ==================== IMAGE DOWNLOAD STYLES ==================== */
.delaai-image-wrapper {
  position: relative !important;
}

.delaai-image-controls {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 10;
}

.delaai-image-wrapper:hover .delaai-image-controls {
  opacity: 1;
}

.delaai-image-download-btn,
.delaai-image-open-btn {
  background: rgba(0, 0, 0, 0.7) !important;
  border: none !important;
  border-radius: 6px !important;
  color: white !important;
  padding: 6px !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
  backdrop-filter: blur(4px) !important;
  font-size: 0 !important; /* Hide any text content */
}

.delaai-image-download-btn:hover,
.delaai-image-open-btn:hover {
  background: rgba(0, 0, 0, 0.9) !important;
  transform: scale(1.05) !important;
}

.delaai-image-download-btn svg,
.delaai-image-open-btn svg {
  pointer-events: none;
  flex-shrink: 0;
}

/* Theme-specific button styles */
.delaai-theme-dark .delaai-image-download-btn,
.delaai-theme-dark .delaai-image-open-btn {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #f3f4f6 !important;
}

.delaai-theme-dark .delaai-image-download-btn:hover,
.delaai-theme-dark .delaai-image-open-btn:hover {
  background: rgba(255, 255, 255, 0.3) !important;
}

.delaai-theme-colorful .delaai-image-download-btn,
.delaai-theme-colorful .delaai-image-open-btn {
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.8) 0%, rgba(254, 202, 87, 0.8) 100%) !important;
}

.delaai-theme-colorful .delaai-image-download-btn:hover,
.delaai-theme-colorful .delaai-image-open-btn:hover {
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.9) 0%, rgba(254, 202, 87, 0.9) 100%) !important;
}

.delaai-theme-stunning .delaai-image-download-btn,
.delaai-theme-stunning .delaai-image-open-btn {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%) !important;
}

.delaai-theme-stunning .delaai-image-download-btn:hover,
.delaai-theme-stunning .delaai-image-open-btn:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%) !important;
}

/* Mobile responsiveness for image controls */
@media (max-width: 480px) {
  .delaai-image-controls {
    opacity: 0.8; /* Show controls by default on mobile */
    top: 4px;
    right: 4px;
    gap: 2px;
  }
  
  .delaai-image-download-btn,
  .delaai-image-open-btn {
    padding: 4px !important;
    border-radius: 4px !important;
  }
  
  .delaai-image-download-btn svg,
  .delaai-image-open-btn svg {
    width: 14px;
    height: 14px;
  }
}

/* Accessibility improvements */
.delaai-image-download-btn:focus,
.delaai-image-open-btn:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Loading state for downloads */
.delaai-image-downloading {
  position: relative;
}

.delaai-image-downloading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Ensure images integrate properly within message bubbles */
.delaai-message .delaai-message-images {
  margin-top: 12px !important;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 12px;
}

/* Theme-specific image integration */
.delaai-theme-dark .delaai-message .delaai-message-images {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.delaai-theme-minimal .delaai-message .delaai-message-images {
  border-top-color: rgba(26, 26, 26, 0.1);
}

.delaai-theme-colorful .delaai-message .delaai-message-images {
  border-top-color: rgba(255, 107, 107, 0.2);
}

.delaai-theme-stunning .delaai-message .delaai-message-images {
  border-top-color: rgba(102, 126, 234, 0.2);
}

/* Note: The spin animation keyframe is defined in core/animations.css *//* /var/www/html/styles/features/launcher-options.css */
/**
 * Launcher Options - Floating Circles Above Launcher
 * Displays when voice is enabled
 */

/* Container for the floating circular buttons */
.delaai-launcher-options {
  position: absolute;
  bottom: 80px; /* Position above the launcher */
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999998; /* Just below chat container */
}

/* Show the options with animation */
.delaai-launcher-options.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Individual circular option button */
.delaai-launcher-option-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.delaai-launcher-option-circle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

.delaai-launcher-option-circle:active {
  transform: scale(1.05);
}

.delaai-launcher-option-circle svg {
  width: 28px;
  height: 28px;
  z-index: 1;
  position: relative;
}

/* Animation delay for staggered appearance */
.delaai-launcher-options.visible .delaai-launcher-option-circle:nth-child(1) {
  animation: slideUpFade 0.3s ease-out 0.05s backwards;
}

.delaai-launcher-options.visible .delaai-launcher-option-circle:nth-child(2) {
  animation: slideUpFade 0.3s ease-out 0s backwards;
}

/* Slide up animation */
@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Mobile responsive */
@media (max-width: 480px) {
  .delaai-launcher-options {
    bottom: 75px;
  }

  .delaai-launcher-option-circle {
    width: 52px;
    height: 52px;
  }

  .delaai-launcher-option-circle svg {
    width: 26px;
    height: 26px;
  }
}

/* Position adjustments for different launcher positions */
.bottom-left .delaai-launcher-options {
  left: 0;
  right: auto;
}

.bottom-right .delaai-launcher-options {
  right: 0;
  left: auto;
}

.top-left .delaai-launcher-options {
  bottom: auto;
  top: 80px;
  left: 0;
  right: auto;
  flex-direction: column-reverse;
}

.top-right .delaai-launcher-options {
  bottom: auto;
  top: 80px;
  right: 0;
  left: auto;
  flex-direction: column-reverse;
}
/* /var/www/html/styles/features/voice.css */
/**
 * Voice Interface Styles
 * Styles for the voice call interface and controls
 */

/* Voice Container - Main container for voice interface */
.delaai-voice-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 16px 24px 24px;
  min-height: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow-y: visible;
  gap: 20px;
  position: relative;
}

/* Top Bar - Contains duration (left) and back button (right) */
.delaai-voice-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 600px;
  padding: 0 8px;
  margin-bottom: 8px;
}

/* Center Content - Contains GIF and audio controls */
.delaai-voice-center-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex: 1;
  width: 100%;
}

/* Call Button Container - Bottom position */
.delaai-voice-call-button {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
}

/* Voice Sentences Display - Compact and responsive */
.delaai-voice-sentences {
  background: rgba(248, 249, 250, 0.6);
  border-radius: 16px;
  padding: 16px;
  width: 100%;
  max-width: 480px;
  border: 1px solid rgba(224, 224, 224, 0.5);
  backdrop-filter: blur(10px);
}

.delaai-voice-sentences-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 200px;
  overflow-y: auto;
}

.delaai-voice-sentence {
  font-size: 13px;
  color: #4a5568;
  margin: 0;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  line-height: 1.6;
  border-left: 3px solid #4A90E2;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.delaai-voice-sentence:hover {
  background: white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

[dir="rtl"] .delaai-voice-sentence {
  border-left: none;
  border-right: 3px solid #4A90E2;
}

/* Voice Status */
.delaai-voice-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 12px 24px;
  background: #f8f9fa;
  border-radius: 24px;
}

.delaai-voice-status-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  position: relative;
  transition: all 0.3s ease;
}

/* Status indicator states */
.delaai-voice-status-indicator.disconnected {
  background: #9e9e9e;
}

.delaai-voice-status-indicator.connecting {
  background: #ff9800;
  animation: delaai-pulse 1.5s ease-in-out infinite;
}

.delaai-voice-status-indicator.connected {
  background: #4caf50;
  animation: delaai-pulse 2s ease-in-out infinite;
}

.delaai-voice-status-text {
  font-size: 15px;
  font-weight: 500;
  color: #333;
  margin: 0;
}

/* Call Duration Display - Top Left in top bar */
.delaai-voice-duration {
  display: none; /* Shown when connected */
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 8px 16px;
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.1) 0%, rgba(53, 122, 189, 0.08) 100%);
  border: 1px solid rgba(74, 144, 226, 0.2);
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.delaai-voice-duration svg {
  width: 14px;
  height: 14px;
  color: #4A90E2;
  flex-shrink: 0;
}

.delaai-voice-duration-text {
  font-size: 13px;
  font-weight: 500;
  color: #4A90E2;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
}

/* Voice Audio Controls - Below GIF animation */
.delaai-voice-controls {
  display: none; /* Shown when connected */
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 16px 24px;
  background: linear-gradient(135deg, rgba(248, 249, 250, 0.4) 0%, rgba(255, 255, 255, 0.2) 100%);
  border: 1px solid rgba(224, 224, 224, 0.4);
  border-radius: 24px;
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.delaai-voice-control-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid rgba(74, 144, 226, 0.2);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(240, 247, 255, 0.8) 100%);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.15);
}

.delaai-voice-control-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.1) 0%, rgba(53, 122, 189, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.delaai-voice-control-btn:hover::before {
  opacity: 1;
}

.delaai-voice-control-btn:hover {
  transform: translateY(-2px) scale(1.05);
  border-color: rgba(74, 144, 226, 0.4);
  box-shadow: 0 8px 24px rgba(74, 144, 226, 0.25);
}

.delaai-voice-control-btn:active {
  transform: translateY(0) scale(0.98);
}

.delaai-voice-control-icon {
  width: 24px;
  height: 24px;
  color: #4A90E2;
  position: absolute;
  transition: all 0.3s ease;
}

/* Muted state - Red color */
.delaai-voice-control-btn.muted {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.1) 100%);
  border-color: rgba(239, 68, 68, 0.3);
  animation: pulse-muted 2s ease-in-out infinite;
}

.delaai-voice-control-btn.muted .delaai-voice-control-icon {
  color: #ef4444;
}

.delaai-voice-control-btn.muted:hover {
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.3);
}

/* Speaker active state - Green color */
.delaai-voice-control-btn.speaker-active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.1) 100%);
  border-color: rgba(16, 185, 129, 0.3);
}

.delaai-voice-control-btn.speaker-active .delaai-voice-control-icon {
  color: #10b981;
}

.delaai-voice-control-btn.speaker-active:hover {
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.25);
}

/* Pulse animation for muted state */
@keyframes pulse-muted {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
  }
  50% {
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.3);
  }
}

/* RTL support */
[dir="rtl"] .delaai-voice-controls {
  flex-direction: row-reverse;
}

/* Wave Animation Visualization - Centered in interface */
.delaai-voice-wave-container {
  display: none; /* Shown when connected */
  position: relative;
  width: 320px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  isolation: isolate;
}

.delaai-voice-wave-iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
  background: transparent;
}

/* Circular Call Buttons - Start/End */
.delaai-voice-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.delaai-voice-btn:active {
  transform: scale(0.95);
}

.delaai-voice-btn svg {
  width: 32px;
  height: 32px;
}

/* Start call button - Green with pulse effect */
.delaai-voice-btn-start {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  position: relative;
}

.delaai-voice-btn-start::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% {
    opacity: 0;
    transform: scale(1);
  }
  50% {
    opacity: 0.3;
  }
  100% {
    opacity: 0;
    transform: scale(1.15);
  }
}

.delaai-voice-btn-start:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(16, 185, 129, 0.4);
}

/* End call button - Red */
.delaai-voice-btn-end {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
}

.delaai-voice-btn-end:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(239, 68, 68, 0.4);
}

/* Back to Chat Button - Top Right in top bar */
.delaai-voice-btn-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(74, 144, 226, 0.3);
  border-radius: 20px;
  color: #4A90E2;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.delaai-voice-btn-back svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.delaai-voice-btn-back:hover {
  background: rgba(240, 247, 255, 1);
  border-color: #4A90E2;
  color: #357ABD;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.15);
}

.delaai-voice-btn-back:active {
  transform: translateY(0);
}

/* Animations */
@keyframes delaai-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 currentColor;
    opacity: 1;
  }
  50% {
    box-shadow: 0 0 0 6px transparent;
    opacity: 0.8;
  }
}

@keyframes delaai-pulse-icon {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes delaai-wave {
  0%, 100% {
    height: 20px;
  }
  50% {
    height: 50px;
  }
}

/* Mobile responsive */
@media (max-width: 480px) {
  .delaai-voice-container {
    padding: 4px 2px 1px;
    gap: 20px;
  }

  .delaai-voice-btn {
    width: 64px;
    height: 64px;
  }

  .delaai-voice-btn svg {
    width: 28px;
    height: 28px;
  }

  .delaai-voice-sentences {
    padding: 12px 14px;
    max-width: 100%;
  }

  .delaai-voice-sentences-content {
    max-height: 160px;
  }

  .delaai-voice-sentence {
    font-size: 12px;
    padding: 8px 12px;
  }

  .delaai-voice-status {
    padding: 8px 16px;
  }

  .delaai-voice-status-text {
    font-size: 13px;
  }

  .delaai-voice-top-bar {
    padding: 0 4px;
  }

  .delaai-voice-duration {
    padding: 1px 12px;
  }

  .delaai-voice-duration svg {
    width: 14px;
    height: 14px;
  }

  .delaai-voice-duration-text {
    font-size: 13px;
  }

  .delaai-voice-controls {
    gap: 16px;
    padding: 12px 20px;
  }

  .delaai-voice-control-btn {
    width: 52px;
    height: 52px;
  }

  .delaai-voice-control-icon {
    width: 22px;
    height: 22px;
  }

  .delaai-voice-wave-container {
    width: 267px;
    height: 150px;
    padding: 16px;
  }

  .delaai-voice-btn-back {
    font-size: 11px;
    padding: 6px 12px;
  }

  .delaai-voice-btn-back svg {
    width: 12px;
    height: 12px;
  }
}

/* Tablet adjustments */
@media (min-width: 481px) and (max-width: 768px) {
  .delaai-voice-container {
    padding: 40px 20px 22px;
  }

  .delaai-voice-btn {
    width: 68px;
    height: 68px;
  }

  .delaai-voice-sentences {
    max-width: 420px;
  }
}

/* RTL specific adjustments */
[dir="rtl"] .delaai-voice-btn svg {
  transform: scaleX(-1);
}

[dir="rtl"] .delaai-voice-btn-back svg {
  transform: scaleX(1); /* Back arrow should not be flipped */
}

/* ==================== VOLUME POPUP CONTROL ==================== */
/* Volume popup - appears to right of speaker button when clicked */
.delaai-volume-control-wrapper {
  position: relative;
}

.delaai-volume-popup {
  display: none; /* Toggled by speaker button click */
  position: absolute;
  left: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.95) 0%, rgba(255, 255, 255, 0.95) 100%);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(226, 232, 240, 0.6);
  border-radius: 16px;
  padding: 5px 4px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  width: 60px;
  height: 180px;
  animation: delaai-popup-slide-right 0.3s ease;
  z-index: 10000;
}

.delaai-volume-popup-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  height: 100%;
}

.delaai-volume-popup-slider-container {
  position: relative;
  flex: 1;
  width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-90deg);
}

.delaai-volume-popup-slider {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  outline: none;
  cursor: pointer;
  margin: 0;
  width: 140px;
  height: 24px;
  position: relative;
  z-index: 2;
  -webkit-user-select: none;
  user-select: none;
}

/* Slider background track */
.delaai-volume-popup-slider::-webkit-slider-runnable-track {
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, #e2e8f0 0%, #cbd5e1 100%);
  border-radius: 3px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.delaai-volume-popup-slider::-moz-range-track {
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, #e2e8f0 0%, #cbd5e1 100%);
  border-radius: 3px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Slider thumb */
.delaai-volume-popup-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  cursor: pointer;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 1),
    0 2px 8px rgba(59, 130, 246, 0.4);
  transition: all 0.2s ease;
  z-index: 3;
}

.delaai-volume-popup-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  cursor: pointer;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 1),
    0 2px 8px rgba(59, 130, 246, 0.4);
  transition: all 0.2s ease;
}

.delaai-volume-popup-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 1),
    0 4px 12px rgba(59, 130, 246, 0.6);
}

.delaai-volume-popup-slider::-moz-range-thumb:hover {
  transform: scale(1.2);
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 1),
    0 4px 12px rgba(59, 130, 246, 0.6);
}

.delaai-volume-popup-slider:active::-webkit-slider-thumb {
  transform: scale(1.1);
}

.delaai-volume-popup-slider:active::-moz-range-thumb {
  transform: scale(1.1);
}

/* Animated fill bar - rotated horizontal */
.delaai-volume-popup-fill {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, #60a5fa 0%, #3b82f6 50%, #2563eb 100%);
  border-radius: 3px;
  pointer-events: none;
  z-index: 1;
  transition: width 0.1s ease;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.3);
}

.delaai-volume-popup-value {
  font-size: 12px;
  font-weight: 700;
  color: #3b82f6;
  flex-shrink: 0;
  text-align: center;
}

/* Popup arrow pointing to speaker button */
.delaai-volume-popup-arrow {
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.95) 0%, rgba(255, 255, 255, 0.95) 100%);
  border-left: 1px solid rgba(226, 232, 240, 0.6);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

/* Popup slide right animation */
@keyframes delaai-popup-slide-right {
  0% {
    opacity: 0;
    transform: translateY(-50%) translateX(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}

/* RTL support for volume popup */
[dir="rtl"] .delaai-volume-popup {
  left: auto;
  right: calc(100% + 8px);
}

[dir="rtl"] .delaai-volume-popup-arrow {
  left: auto;
  right: -6px;
  border-left: none;
  border-right: 1px solid rgba(226, 232, 240, 0.6);
}

[dir="rtl"] .delaai-volume-popup-fill {
  left: auto;
  right: 0;
}
/* DelaAI Chat Widget - Registration Form Styles */

/* Base Registration Form Styles */
.delaai-registration-form {
  padding: 16px;
  max-width: 100%;
  animation: fadeInUp 0.3s ease-out;
}

.delaai-registration-title {
  margin: 0 0 16px 0;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: #1f2937;
  font-family: 'Vazirplayground', 'Inter', -apple-system, sans-serif;
}

.delaai-registration-form form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.delaai-form-group {
  position: relative;
}

.delaai-form-label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
  font-family: 'Vazirplayground', 'Inter', -apple-system, sans-serif;
  transition: color 0.2s ease;
}

.delaai-form-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 13px;
  font-family: 'Vazirplayground', 'Inter', -apple-system, sans-serif;
  background: #ffffff;
  color: #1f2937;
  transition: all 0.2s ease;
  outline: none;
  box-sizing: border-box;
}

.delaai-form-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.delaai-form-input::placeholder {
  color: #9ca3af;
  opacity: 0.7;
  font-size: 12px;
}

.delaai-submit-btn {
  margin-top: 4px;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Vazirplayground', 'Inter', -apple-system, sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  background: #3b82f6;
  color: white;
}

.delaai-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.delaai-submit-btn:active {
  transform: translateY(0);
}

.delaai-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.delaai-submit-btn:focus {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Form animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .delaai-registration-form {
    padding: 14px;
  }
  
  .delaai-registration-title {
    font-size: 14px;
    margin-bottom: 14px;
  }
  
  .delaai-form-input {
    padding: 8px 10px;
    font-size: 14px; /* Slightly larger on mobile to prevent zoom */
  }
  
  .delaai-submit-btn {
    padding: 10px 18px;
    font-size: 13px;
  }
}

/* RTL Support */
[dir="rtl"] .delaai-registration-form {
  direction: rtl;
}

[dir="rtl"] .delaai-form-label {
  text-align: right;
}

[dir="rtl"] .delaai-form-input {
  direction: rtl;
  text-align: right;
}

/* LTR Support - Explicit styles for English */
[dir="ltr"] .delaai-registration-form {
  direction: ltr;
}

[dir="ltr"] .delaai-form-label {
  text-align: left;
}

[dir="ltr"] .delaai-form-input {
  direction: ltr;
  text-align: left;
}

/* Font family adjustments based on direction */
[dir="ltr"] .delaai-registration-title,
[dir="ltr"] .delaai-form-label,
[dir="ltr"] .delaai-form-input,
[dir="ltr"] .delaai-submit-btn {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, 'Vazirplayground', sans-serif;
}

[dir="rtl"] .delaai-registration-title,
[dir="rtl"] .delaai-form-label,
[dir="rtl"] .delaai-form-input,
[dir="rtl"] .delaai-submit-btn {
  font-family: 'Vazirplayground', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

/* ==================== THEME OVERRIDES ==================== */

/* Default Theme - Clean and professional */
.delaai-theme-default .delaai-registration-title {
  color: #1e293b;
}

.delaai-theme-default .delaai-form-label {
  color: #64748b;
}

.delaai-theme-default .delaai-form-input {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #334155;
}

.delaai-theme-default .delaai-form-input:focus {
  background: white;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.delaai-theme-default .delaai-submit-btn {
  background: #3b82f6;
  color: white;
}

.delaai-theme-default .delaai-submit-btn:hover {
  background: #2563eb;
  box-shadow: 0 3px 10px rgba(59, 130, 246, 0.2);
}

/* Dark Theme - Elegant night mode */
.delaai-theme-dark .delaai-registration-form {
  background: rgba(31, 41, 55, 0.3);
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.delaai-theme-dark .delaai-registration-title {
  color: #f3f4f6;
  font-weight: 500;
}

.delaai-theme-dark .delaai-form-label {
  color: #d1d5db;
  font-weight: 400;
}

.delaai-theme-dark .delaai-form-input {
  background: rgba(55, 65, 81, 0.5);
  border-color: rgba(75, 85, 99, 0.5);
  color: #f3f4f6;
}

.delaai-theme-dark .delaai-form-input::placeholder {
  color: #9ca3af;
}

.delaai-theme-dark .delaai-form-input:focus {
  background: rgba(55, 65, 81, 0.8);
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

.delaai-theme-dark .delaai-submit-btn {
  background: #6366f1;
  color: white;
}

.delaai-theme-dark .delaai-submit-btn:hover {
  background: #5b21b6;
  box-shadow: 0 3px 12px rgba(99, 102, 241, 0.25);
}

/* Minimal Theme - Sophisticated monochrome */
.delaai-theme-minimal .delaai-registration-form {
  background: rgba(250, 250, 250, 0.5);
  border-radius: 12px;
  border: 1px solid #e8e8e8;
}

.delaai-theme-minimal .delaai-registration-title {
  color: #1a1a1a;
  letter-spacing: -0.01em;
  font-weight: 600;
}

.delaai-theme-minimal .delaai-form-label {
  color: #666666;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.delaai-theme-minimal .delaai-form-input {
  background: white;
  border-color: #e0e0e0;
  color: #1a1a1a;
  border-radius: 8px;
  font-weight: 400;
}

.delaai-theme-minimal .delaai-form-input:focus {
  background: white;
  border-color: #1a1a1a;
  box-shadow: 0 0 0 1px #1a1a1a;
}

.delaai-theme-minimal .delaai-submit-btn {
  background: #1a1a1a;
  color: white;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 8px;
}

.delaai-theme-minimal .delaai-submit-btn:hover {
  background: #000000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

/* Colorful Theme - Vibrant and playful */
.delaai-theme-colorful .delaai-registration-form {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  border: 1.5px solid transparent;
  background-image: 
    linear-gradient(white, white),
    linear-gradient(135deg, #ff6b6b, #feca57, #48cae4);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.delaai-theme-colorful .delaai-registration-title {
  color: #d84315;
  font-weight: 700;
}

.delaai-theme-colorful .delaai-form-label {
  color: #d84315;
  font-weight: 600;
  font-size: 11px;
}

.delaai-theme-colorful .delaai-form-input {
  background: #fffbf8;
  border: 1.5px solid #ffccbc;
  color: #bf360c;
  border-radius: 8px;
}

.delaai-theme-colorful .delaai-form-input:focus {
  background: white;
  border-color: #ff6b6b;
  box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.15);
}

.delaai-theme-colorful .delaai-submit-btn {
  background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
  color: white;
  font-weight: 600;
  border-radius: 8px;
}

.delaai-theme-colorful .delaai-submit-btn:hover {
  background: linear-gradient(135deg, #ff5252 0%, #ffb74d 100%);
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
  transform: translateY(-2px) scale(1.02);
}

/* Stunning Theme - Futuristic and premium */
.delaai-theme-stunning .delaai-registration-form {
  background: rgba(26, 26, 46, 0.6);
  border-radius: 12px;
  border: 1px solid rgba(102, 126, 234, 0.2);
  backdrop-filter: blur(10px);
  position: relative;
}

.delaai-theme-stunning .delaai-registration-form::after {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
  border-radius: 12px;
  opacity: 0.1;
  z-index: -1;
  transition: opacity 0.3s ease;
}

.delaai-theme-stunning .delaai-registration-form:hover::after {
  opacity: 0.2;
}

.delaai-theme-stunning .delaai-registration-title {
  color: #e0e7ff;
  font-weight: 500;
}

.delaai-theme-stunning .delaai-form-label {
  color: #c7d2fe;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.delaai-theme-stunning .delaai-form-input {
  background: rgba(58, 58, 110, 0.4);
  border: 1px solid rgba(102, 126, 234, 0.2);
  color: #e0e7ff;
  border-radius: 6px;
}

.delaai-theme-stunning .delaai-form-input::placeholder {
  color: rgba(199, 210, 254, 0.5);
}

.delaai-theme-stunning .delaai-form-input:focus {
  background: rgba(58, 58, 110, 0.6);
  border-color: #667eea;
  box-shadow: 0 0 12px rgba(102, 126, 234, 0.25);
}

.delaai-theme-stunning .delaai-submit-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.delaai-theme-stunning .delaai-submit-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.delaai-theme-stunning .delaai-submit-btn:hover::before {
  transform: translateX(100%);
}

.delaai-theme-stunning .delaai-submit-btn:hover {
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
  transform: translateY(-1px);
}

/* Accessibility enhancements */
@media (prefers-reduced-motion: reduce) {
  .delaai-registration-form,
  .delaai-form-input,
  .delaai-submit-btn,
  .delaai-submit-btn::before {
    animation: none;
    transition: none;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .delaai-form-input {
    border-width: 2px;
  }
  
  .delaai-submit-btn {
    border: 2px solid currentColor;
  }
}/* DelaAI Chat Widget - Mathematical Formula Styles */
/* Material Design Card Style for Math Formulas */

/* Base math container styles */
.delaai-math-display,
.delaai-math-inline {
  direction: ltr !important;
  unicode-bidi: isolate;
  font-family: 'KaTeX_Main', 'Times New Roman', serif;
}

/* Display math (block equations) - Prominent cards */
.delaai-math-display {
  display: block;
  margin: 20px 0;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.08),
    0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow-x: auto;
  overflow-y: hidden;
  text-align: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.delaai-math-display:hover {
  box-shadow: 
    0 4px 8px rgba(0, 0, 0, 0.1),
    0 8px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

/* Inline math - Compact cards */
.delaai-math-inline {
  display: inline-block;
  margin: 0 4px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  box-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.06),
    0 2px 6px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.05);
  vertical-align: middle;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
  white-space: nowrap;
}

.delaai-math-inline:hover {
  box-shadow: 
    0 2px 6px rgba(0, 0, 0, 0.08),
    0 4px 12px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

/* KaTeX font scaling for better readability */
.delaai-message .katex {
  font-size: 1.15em;
}

.delaai-message .delaai-math-display .katex {
  font-size: 1.3em;
}

.delaai-message .katex-display {
  margin: 0;
  padding: 0;
}

/* Ensure math formulas are always LTR even in RTL messages */
.delaai-message[style*="direction: rtl"] .delaai-math-display,
.delaai-message[style*="direction: rtl"] .delaai-math-inline {
  direction: ltr !important;
  unicode-bidi: isolate;
}

/* Prevent text selection issues with math cards */
.delaai-math-display,
.delaai-math-inline {
  user-select: all;
  -webkit-user-select: all;
  -moz-user-select: all;
  -ms-user-select: all;
}

/* Theme-specific math card styling */

/* Default theme - Clean blue accent */
.delaai-theme-default .delaai-math-display {
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.95) 0%, rgba(241, 245, 249, 0.95) 100%);
  border-color: rgba(59, 130, 246, 0.15);
  box-shadow: 
    0 2px 4px rgba(59, 130, 246, 0.08),
    0 4px 12px rgba(59, 130, 246, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.delaai-theme-default .delaai-math-display:hover {
  border-color: rgba(59, 130, 246, 0.25);
  box-shadow: 
    0 4px 8px rgba(59, 130, 246, 0.12),
    0 8px 20px rgba(59, 130, 246, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.delaai-theme-default .delaai-math-inline {
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.9) 0%, rgba(241, 245, 249, 0.9) 100%);
  border-color: rgba(59, 130, 246, 0.12);
  box-shadow: 
    0 1px 3px rgba(59, 130, 246, 0.06),
    0 2px 6px rgba(59, 130, 246, 0.04);
}

.delaai-theme-default .delaai-math-inline:hover {
  border-color: rgba(59, 130, 246, 0.2);
  box-shadow: 
    0 2px 6px rgba(59, 130, 246, 0.1),
    0 4px 12px rgba(59, 130, 246, 0.06);
}

/* Dark theme - Elegant dark cards with subtle glow */
.delaai-theme-dark .delaai-math-display {
  background: linear-gradient(135deg, rgba(55, 65, 81, 0.6) 0%, rgba(31, 41, 55, 0.6) 100%);
  border-color: rgba(99, 102, 241, 0.2);
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.3),
    0 4px 12px rgba(99, 102, 241, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  color: #f3f4f6;
}

.delaai-theme-dark .delaai-math-display:hover {
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 
    0 4px 8px rgba(0, 0, 0, 0.4),
    0 8px 20px rgba(99, 102, 241, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.delaai-theme-dark .delaai-math-inline {
  background: linear-gradient(135deg, rgba(55, 65, 81, 0.5) 0%, rgba(31, 41, 55, 0.5) 100%);
  border-color: rgba(99, 102, 241, 0.15);
  box-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.2),
    0 2px 6px rgba(99, 102, 241, 0.08);
  color: #f3f4f6;
}

.delaai-theme-dark .delaai-math-inline:hover {
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: 
    0 2px 6px rgba(0, 0, 0, 0.3),
    0 4px 12px rgba(99, 102, 241, 0.12);
}

.delaai-theme-dark .delaai-math-display .katex,
.delaai-theme-dark .delaai-math-inline .katex {
  color: #e5e7eb !important;
}

/* Minimal theme - Sophisticated monochrome */
.delaai-theme-minimal .delaai-math-display {
  background: linear-gradient(135deg, rgba(250, 250, 250, 0.95) 0%, rgba(245, 245, 245, 0.95) 100%);
  border: 1px solid rgba(26, 26, 26, 0.1);
  box-shadow: 
    0 2px 4px rgba(26, 26, 26, 0.06),
    0 4px 12px rgba(26, 26, 26, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  border-radius: 10px;
}

.delaai-theme-minimal .delaai-math-display:hover {
  border-color: rgba(26, 26, 26, 0.15);
  box-shadow: 
    0 4px 8px rgba(26, 26, 26, 0.08),
    0 8px 20px rgba(26, 26, 26, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.delaai-theme-minimal .delaai-math-inline {
  background: linear-gradient(135deg, rgba(250, 250, 250, 0.9) 0%, rgba(245, 245, 245, 0.9) 100%);
  border: 1px solid rgba(26, 26, 26, 0.08);
  box-shadow: 
    0 1px 3px rgba(26, 26, 26, 0.05),
    0 2px 6px rgba(26, 26, 26, 0.03);
}

.delaai-theme-minimal .delaai-math-inline:hover {
  border-color: rgba(26, 26, 26, 0.12);
  box-shadow: 
    0 2px 6px rgba(26, 26, 26, 0.07),
    0 4px 12px rgba(26, 26, 26, 0.05);
}

/* Colorful theme - Vibrant gradient cards */
.delaai-theme-colorful .delaai-math-display {
  background: linear-gradient(135deg, rgba(255, 251, 248, 0.95) 0%, rgba(255, 245, 238, 0.95) 100%);
  border: 1.5px solid rgba(255, 107, 107, 0.2);
  box-shadow: 
    0 2px 4px rgba(255, 107, 107, 0.15),
    0 4px 12px rgba(254, 202, 87, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.delaai-theme-colorful .delaai-math-display:hover {
  border-color: rgba(255, 107, 107, 0.3);
  box-shadow: 
    0 4px 8px rgba(255, 107, 107, 0.2),
    0 8px 20px rgba(254, 202, 87, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
}

.delaai-theme-colorful .delaai-math-inline {
  background: linear-gradient(135deg, rgba(255, 251, 248, 0.9) 0%, rgba(255, 245, 238, 0.9) 100%);
  border: 1px solid rgba(255, 107, 107, 0.15);
  box-shadow: 
    0 1px 3px rgba(255, 107, 107, 0.1),
    0 2px 6px rgba(254, 202, 87, 0.08);
}

.delaai-theme-colorful .delaai-math-inline:hover {
  border-color: rgba(255, 107, 107, 0.25);
  box-shadow: 
    0 2px 6px rgba(255, 107, 107, 0.15),
    0 4px 12px rgba(254, 202, 87, 0.12);
}

/* Stunning theme - Premium futuristic cards with glow */
.delaai-theme-stunning .delaai-math-display {
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.7) 0%, rgba(58, 58, 110, 0.5) 100%);
  border: 1px solid rgba(102, 126, 234, 0.3);
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.3),
    0 4px 12px rgba(102, 126, 234, 0.2),
    0 0 20px rgba(102, 126, 234, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: visible;
}

.delaai-theme-stunning .delaai-math-display::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15), rgba(240, 147, 251, 0.15));
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
  filter: blur(8px);
}

.delaai-theme-stunning .delaai-math-display:hover::before {
  opacity: 1;
}

.delaai-theme-stunning .delaai-math-display:hover {
  border-color: rgba(102, 126, 234, 0.5);
  box-shadow: 
    0 4px 8px rgba(0, 0, 0, 0.4),
    0 8px 20px rgba(102, 126, 234, 0.3),
    0 0 30px rgba(102, 126, 234, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.delaai-theme-stunning .delaai-math-inline {
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.6) 0%, rgba(58, 58, 110, 0.4) 100%);
  border: 1px solid rgba(102, 126, 234, 0.25);
  box-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.2),
    0 2px 6px rgba(102, 126, 234, 0.15),
    0 0 10px rgba(102, 126, 234, 0.08);
}

.delaai-theme-stunning .delaai-math-inline:hover {
  border-color: rgba(102, 126, 234, 0.4);
  box-shadow: 
    0 2px 6px rgba(0, 0, 0, 0.3),
    0 4px 12px rgba(102, 126, 234, 0.2),
    0 0 15px rgba(102, 126, 234, 0.15);
}

.delaai-theme-stunning .delaai-math-display .katex,
.delaai-theme-stunning .delaai-math-inline .katex {
  color: #e0e7ff !important;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
  .delaai-math-display {
    margin: 16px 0;
    padding: 12px 16px;
    border-radius: 10px;
  }
  
  .delaai-math-inline {
    margin: 0 3px;
    padding: 3px 8px;
    border-radius: 6px;
  }
  
  .delaai-message .katex {
    font-size: 1.05em;
  }
  
  .delaai-message .delaai-math-display .katex {
    font-size: 1.15em;
  }
}

/* Very small screens */
@media (max-width: 375px) {
  .delaai-math-display {
    margin: 14px 0;
    padding: 10px 14px;
  }
  
  .delaai-message .delaai-math-display .katex {
    font-size: 1.1em;
  }
}

/* Accessibility */
@media (prefers-contrast: high) {
  .delaai-math-display,
  .delaai-math-inline {
    border-width: 2px;
  }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .delaai-math-display,
  .delaai-math-inline,
  .delaai-math-display::before {
    transition: none;
    transform: none !important;
  }
  
  .delaai-math-display:hover,
  .delaai-math-inline:hover {
    transform: none !important;
  }
}

/* Scrollbar for very long equations */
.delaai-math-display::-webkit-scrollbar {
  height: 6px;
}

.delaai-math-display::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 3px;
}

.delaai-math-display::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.delaai-math-display::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

/* RTL and LTR support - ensure formulas stay LTR but cards respect message direction */
.delaai-message[dir="rtl"] .delaai-math-display,
.delaai-message[dir="rtl"] .delaai-math-inline,
.delaai-message[style*="direction: rtl"] .delaai-math-display,
.delaai-message[style*="direction: rtl"] .delaai-math-inline {
  /* Formulas themselves stay LTR but the card can be positioned by parent */
  direction: ltr !important;
  text-align: center;
}

/* Print styles */
@media print {
  .delaai-math-display,
  .delaai-math-inline {
    background: white !important;
    box-shadow: none !important;
    border: 1px solid #ccc !important;
  }
}/* Image Preview Styles */
#delaai-chat-image-preview {
  padding: 8px 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.delaai-image-preview-wrapper {
  position: relative;
  max-width: 100%;
}

.delaai-image-preview-content {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 8px;
  padding: 8px;
}

.delaai-preview-image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.delaai-preview-info {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
}

.delaai-preview-filename {
  font-size: 13px;
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.delaai-preview-remove {
  width: 24px;
  height: 24px;
  border: none;
  background: rgba(0, 0, 0, 0.1);
  color: #64748b;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  transition: all 0.2s ease;
  flex-shrink: 0;
  padding: 0;
}

.delaai-preview-remove:hover {
  background: #ef4444;
  color: white;
  transform: scale(1.1);
}

/* Mobile adjustments */
@media (max-width: 480px) {
  #delaai-chat-image-preview {
    padding: 6px 15px;
  }
  
  .delaai-preview-image {
    width: 50px;
    height: 50px;
  }
  
  .delaai-preview-filename {
    font-size: 12px;
  }
}/* /var/www/html/styles/utilities/rtl.css */
/* DelaAI Chat Widget - RTL/Bidirectional Text Support Utilities */
/* Extracted from original delaai-chat-styles.css */

/* ==================== RTL SUPPORT ==================== */
[dir="rtl"] .delaai-message.user {
  /* margin-right: auto; */
  margin-left: -1%;
  border-bottom-right-radius: 18px;
  border-bottom-left-radius: 6px;
}

[dir="rtl"] .delaai-message.assistant {
  /* margin-left: auto; */
  margin-right: 0;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 6px;
}/* DelaAI Chat Widget - Responsive Design Utilities */
/* Extracted from original delaai-chat-styles.css */

/* 
 * NOTE: Component-specific media queries have been included in their respective files:
 * - components/launcher.css - Mobile launcher adjustments
 * - components/header.css - Mobile header adjustments
 * - components/messages.css - Mobile message and code block adjustments
 * - features/history.css - Mobile history button adjustments
 * - features/images.css - Mobile image control adjustments
 * 
 * This file contains general responsive rules that affect multiple components
 * or overall widget positioning and layout.
 */

/* ==================== RESPONSIVE DESIGN ==================== */
/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
  #delaai-chat-container:not(.mobile-fullscreen) {
    width: calc(100vw - 32px) !important;
    height: calc(100vh - 120px) !important;
    bottom: 16px;
    right: 16px;
    left: 16px;
    margin: 0 auto;
    max-width: 400px;
  }
}

/* ==================== RESPONSIVE DESIGN ==================== */
/* Tablet and larger mobile devices */
@media (max-width: 768px) {
  #delaai-chat-widget.bottom-right {
    bottom: 10px;
    right: 10px;
  }
  
  #delaai-chat-widget.bottom-left {
    bottom: 10px;
    left: 10px;
  }
  
  #delaai-chat-container {
    width: calc(100vw - 20px) !important;
    height: calc(100vh - 140px) !important;
    bottom: 70px !important;
    right: 10px !important;
    left: 10px !important;
    margin: 0 auto !important;
    max-width: 380px !important;
    position: fixed !important;
  }
  
  /* Center the container on larger mobile screens */
  #delaai-chat-widget.bottom-right #delaai-chat-container,
  #delaai-chat-widget.bottom-left #delaai-chat-container {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    margin: 0 !important;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  #delaai-chat-widget.bottom-right {
    bottom: 8px;
    right: 8px;
  }
  
  #delaai-chat-widget.bottom-left {
    bottom: 8px;
    left: 8px;
  }
  
  #delaai-chat-container {
    width: calc(100vw - 16px) !important;
    height: calc(100vh - 120px) !important;
    bottom: 68px !important;
    right: 8px !important;
    left: 8px !important;
    margin: 0 !important;
    max-width: none !important;
    position: fixed !important;
    transform: none !important;
  }
  
  /* Override centering for very small screens */
  #delaai-chat-widget.bottom-right #delaai-chat-container,
  #delaai-chat-widget.bottom-left #delaai-chat-container {
    left: 8px !important;
    right: 8px !important;
    transform: none !important;
  }
}

/* Very small screens (iPhone SE, etc.) */
@media (max-width: 375px) {
  #delaai-chat-container {
    width: calc(100vw - 12px) !important;
    height: calc(100vh - 100px) !important;
    bottom: 60px !important;
    right: 6px !important;
    left: 6px !important;
  }
  
  #delaai-chat-widget.bottom-right #delaai-chat-container,
  #delaai-chat-widget.bottom-left #delaai-chat-container {
    left: 6px !important;
    right: 6px !important;
  }
}

/* Landscape orientation fixes */
@media (max-width: 768px) and (orientation: landscape) {
  #delaai-chat-container {
    height: calc(100vh - 80px) !important;
    bottom: 60px !important;
  }
}

/* Safe area support for devices with notches */
@media (max-width: 480px) {
  #delaai-chat-container {
    bottom: max(68px, env(safe-area-inset-bottom, 68px)) !important;
    left: max(8px, env(safe-area-inset-left, 8px)) !important;
    right: max(8px, env(safe-area-inset-right, 8px)) !important;
    width: calc(100vw - max(16px, env(safe-area-inset-left, 8px) + env(safe-area-inset-right, 8px))) !important;
  }
}/* DelaAI Chat Widget - Accessibility Utilities */
/* Extracted from original delaai-chat-styles.css */

/* ==================== ACCESSIBILITY ==================== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

#delaai-chat-launcher:focus,
#delaai-chat-close:focus,
#delaai-chat-send:focus,
#delaai-chat-input:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

@media (prefers-contrast: high) {
  .delaai-message {
    border: 2px solid currentColor;
  }
  
  #delaai-chat-input {
    border: 2px solid currentColor;
  }
}

/* 
 * NOTE: Additional accessibility features are included in component files:
 * - components/launcher.css - Focus state for launcher button
 * - components/header.css - Focus state for close button
 * - components/input.css - Focus states for input and send button, high contrast for input
 * - components/messages.css - High contrast for messages
 * - features/images.css - Focus states for image control buttons
 * 
 * This centralized file ensures consistent accessibility support across all themes
 * while component-specific files may duplicate some rules for modularity.
 */