/* DelaAI Chat Widget - Default Theme Styles */
/* Enhanced with modern conversation card design */

/* ==================== DEFAULT THEME ==================== */
.delaai-theme-default #delaai-chat-launcher {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
}

.delaai-theme-default #delaai-chat-launcher:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
}

.delaai-theme-default #delaai-chat-container {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.delaai-theme-default #delaai-chat-header {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  color: #1e293b;
}

.delaai-theme-default #delaai-header-logo {
  border-color: rgba(30, 41, 59, 0.1);
}

.delaai-theme-default #delaai-chat-close {
  color: #64748b;
}

.delaai-theme-default #delaai-chat-close:hover {
  background: rgba(148, 163, 184, 0.1);
  color: #475569;
}

.delaai-theme-default .delaai-message.assistant {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  color: #334155;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

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

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

.delaai-theme-default #delaai-chat-send {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
}

.delaai-theme-default .delaai-faq-item {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.delaai-theme-default .delaai-faq-item:hover {
  background: #e2e8f0;
  border-color: #3b82f6;
}

.delaai-theme-default #delaai-chat-footer {
  border-top-color: #e2e8f0;
  background: #f8fafc;
}

.delaai-theme-default .delaai-footer-link {
  color: #64748b;
}

.delaai-theme-default .delaai-footer-link:hover {
  color: #3b82f6;
}

/* ==================== HISTORY HEADER STYLES ==================== */
.delaai-theme-default .delaai-history-header {
  border-bottom-color: #e5e7eb;
  color: #1f2937;
}

.delaai-theme-default .delaai-history-header h3 {
  color: #1f2937;
}

.delaai-theme-default .delaai-history-header-bottom {
  border-top-color: #e5e7eb;
  background: rgba(248, 250, 252, 0.95);
}

/* ==================== MODERN CONVERSATION CARD DESIGN FOR DEFAULT THEME ==================== */
.delaai-theme-default .delaai-conversation-item {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Status indicator bar - uses default blue gradient */
.delaai-theme-default .delaai-conversation-item::before {
  background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
}

/* Icon area with light blue gradient */
.delaai-theme-default .delaai-conversation-icon {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

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

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

/* Text colors for default theme */
.delaai-theme-default .delaai-conversation-date {
  color: #64748b;
}

.delaai-theme-default .delaai-conversation-date::before {
  opacity: 0.6;
}

.delaai-theme-default .delaai-conversation-text {
  color: #1e293b;
}

/* Message count badge with blue tint */
.delaai-theme-default .delaai-conversation-messages-count {
  background: rgba(59, 130, 246, 0.08);
  color: #64748b;
}

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

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

/* ==================== NAVIGATION BUTTONS ==================== */
.delaai-theme-default .delaai-back-to-history {
  color: #3b82f6;
  font-weight: 500;
}

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

/* ==================== DELETE BUTTON STYLING ==================== */
.delaai-theme-default .delaai-delete-conversation-btn {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

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

/* ==================== ACTION BUTTONS ==================== */
.delaai-theme-default .delaai-new-conversation-btn {
  background: #3b82f6;
  border: none;
}

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

.delaai-theme-default .delaai-new-conversation-btn-wide {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.delaai-theme-default .delaai-new-conversation-btn-wide:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.delaai-theme-default .delaai-view-history-btn {
  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;
  font-weight: 500;
}

.delaai-theme-default .delaai-view-history-btn::before {
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
}

.delaai-theme-default .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);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.15);
}

/* ==================== EMPTY STATE ==================== */
.delaai-theme-default .delaai-empty-state {
  color: #6c757d;
}

/* ==================== CUSTOM LOGO SUPPORT ==================== */
.delaai-theme-default #delaai-chat-launcher.has-custom-logo {
  background: transparent !important;
  animation: none !important;
  border: none !important;
}

.delaai-theme-default #delaai-chat-launcher.has-custom-logo:hover {
  background: transparent !important;
  animation: none !important;
}

/* ==================== ATTACHMENT BUTTON ==================== */
.delaai-theme-default #delaai-chat-attach {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid transparent;
}

.delaai-theme-default #delaai-chat-attach:hover {
  background: #e2e8f0;
  color: #475569;
  border-color: #cbd5e1;
}

.delaai-theme-default #delaai-chat-attach.has-attachment {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  border: 1px solid transparent;
}

/* ==================== REGISTRATION FORM DEFAULT THEME ==================== */
.delaai-theme-default .delaai-registration-form {
  background: #ffffff;
  border: 1px solid rgba(203, 213, 225, 0.3);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.delaai-theme-default .delaai-registration-title {
  color: #1e293b;
  border-bottom: 2px solid #eff6ff;
}

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

.delaai-theme-default .delaai-form-input {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #1e293b;
}

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

.delaai-theme-default .delaai-form-input::placeholder {
  color: #94a3b8;
}

.delaai-theme-default .delaai-submit-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  border: none;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.delaai-theme-default .delaai-submit-btn:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.delaai-theme-default .delaai-submit-btn:disabled {
  background: #cbd5e1;
  box-shadow: none;
}

/* ==================== SCROLLBAR STYLING ==================== */
.delaai-theme-default #delaai-chat-messages::-webkit-scrollbar-track {
  background: #f8fafc;
}

.delaai-theme-default #delaai-chat-messages::-webkit-scrollbar-thumb {
  background: #cbd5e1;
}

.delaai-theme-default #delaai-chat-messages::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ==================== IMAGE PREVIEW ==================== */
.delaai-theme-default .delaai-image-preview-wrapper {
  background: rgba(248, 250, 252, 0.95);
  border: 1px solid #e2e8f0;
}

.delaai-theme-default .delaai-preview-info {
  background: white;
  border-top: 1px solid #e2e8f0;
}

.delaai-theme-default .delaai-preview-filename {
  color: #475569;
}

.delaai-theme-default .delaai-preview-remove {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
}

.delaai-theme-default .delaai-preview-remove:hover {
  background: rgba(239, 68, 68, 0.15);
}

/* ==================== LAUNCHER OPTIONS CIRCLES ==================== */
/* Chat button - blue theme */
.delaai-theme-default #delaai-option-chat {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
}

.delaai-theme-default #delaai-option-chat:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
}

/* Voice button - green theme */
.delaai-theme-default #delaai-option-voice {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.delaai-theme-default #delaai-option-voice:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

/* ==================== VOICE INTERFACE ==================== */
.delaai-theme-default .delaai-voice-title {
  color: #1e293b;
}

.delaai-theme-default .delaai-voice-icon {
  color: #3b82f6;
}

.delaai-theme-default .delaai-voice-sentences {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

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

.delaai-theme-default .delaai-voice-sentence {
  color: #334155;
  background: white;
  border-left-color: #3b82f6;
}

[dir="rtl"] .delaai-theme-default .delaai-voice-sentence {
  border-right-color: #3b82f6;
}

.delaai-theme-default .delaai-voice-status {
  background: #f8fafc;
}

.delaai-theme-default .delaai-voice-status-text {
  color: #334155;
}

.delaai-theme-default .delaai-voice-wave {
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
}

.delaai-theme-default .delaai-voice-btn-start {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

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

.delaai-theme-default .delaai-voice-btn-end {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

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

.delaai-theme-default .delaai-voice-btn-secondary {
  background: white;
  color: #3b82f6;
  border: 2px solid #3b82f6;
}

.delaai-theme-default .delaai-voice-btn-secondary:hover {
  background: #eff6ff;
  border-color: #2563eb;
  color: #2563eb;
}

/* Call Duration - Clean light design */
.delaai-theme-default .delaai-voice-duration {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(59, 130, 246, 0.05) 100%);
  border: 1px solid rgba(59, 130, 246, 0.2);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.delaai-theme-default .delaai-voice-duration svg {
  color: #3b82f6;
}

.delaai-theme-default .delaai-voice-duration-text {
  color: #475569;
}

/* Voice Audio Controls */
.delaai-theme-default .delaai-voice-controls {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.delaai-theme-default .delaai-voice-control-btn {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.delaai-theme-default .delaai-voice-control-btn::before {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
}

.delaai-theme-default .delaai-voice-control-btn:hover {
  background: white;
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.delaai-theme-default .delaai-voice-control-icon {
  color: #64748b;
}

/* Muted state */
.delaai-theme-default .delaai-voice-control-btn.muted {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
  border-color: rgba(239, 68, 68, 0.3);
}

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

.delaai-theme-default .delaai-voice-control-btn.muted:hover {
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

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

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

.delaai-theme-default .delaai-voice-control-btn.speaker-active:hover {
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

/* Back Button */
.delaai-theme-default .delaai-voice-btn-back {
  background: white;
  border: 1px solid #e2e8f0;
  color: #64748b;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.delaai-theme-default .delaai-voice-btn-back:hover {
  background: #f8fafc;
  border-color: #3b82f6;
  color: #3b82f6;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

/* Wave Animation - Default Theme */
.delaai-theme-default .delaai-voice-wave-container {
  background: transparent;
}

/* Volume Popup - Default Theme */
.delaai-theme-default .delaai-volume-popup {
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.95) 0%, rgba(255, 255, 255, 0.95) 100%);
  border-color: rgba(226, 232, 240, 0.6);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.delaai-theme-default .delaai-volume-popup-arrow {
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.95) 0%, rgba(255, 255, 255, 0.95) 100%);
  border-left-color: rgba(226, 232, 240, 0.6);
  border-bottom-color: rgba(226, 232, 240, 0.6);
}

.delaai-theme-default .delaai-volume-popup-value {
  color: #3b82f6;
}

.delaai-theme-default .delaai-volume-popup-slider::-webkit-slider-runnable-track {
  background: linear-gradient(90deg, #e2e8f0 0%, #cbd5e1 100%);
}

.delaai-theme-default .delaai-volume-popup-slider::-moz-range-track {
  background: linear-gradient(90deg, #e2e8f0 0%, #cbd5e1 100%);
}

.delaai-theme-default .delaai-volume-popup-slider::-webkit-slider-thumb {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 1),
    0 2px 8px rgba(59, 130, 246, 0.4);
}

.delaai-theme-default .delaai-volume-popup-slider::-moz-range-thumb {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 1),
    0 2px 8px rgba(59, 130, 246, 0.4);
}

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

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

.delaai-theme-default .delaai-volume-popup-fill {
  background: linear-gradient(90deg, #60a5fa 0%, #3b82f6 50%, #2563eb 100%);
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.3);
}