/* DelaAI Chat Widget - Colorful Theme Styles */
/* Redesigned with soft, professional tints for corporate appeal */

/* ==================== COLORFUL THEME ==================== */
.delaai-theme-colorful #delaai-chat-launcher {
  background: linear-gradient(135deg, #ffd6cc 0%, #c9e4ca 100%);
  color: #5c4742;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 20px rgba(255, 214, 204, 0.3);
}

.delaai-theme-colorful #delaai-chat-launcher:hover {
  background: linear-gradient(135deg, #ffcbb8 0%, #b8d9b9 100%);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 25px rgba(255, 214, 204, 0.4);
}

.delaai-theme-colorful #delaai-chat-container {
  background: linear-gradient(145deg, #fffbf7 0%, #fff9f5 100%);
  border: 1px solid #ffe4db;
  box-shadow: 0 10px 40px rgba(255, 214, 204, 0.15);
}

.delaai-theme-colorful #delaai-chat-header {
  background: linear-gradient(135deg, #ffd6cc 0%, #ffead4 100%);
  color: #5c4742;
  border-bottom: 1px solid #ffe4db;
}

.delaai-theme-colorful #delaai-header-logo {
  border-color: rgba(92, 71, 66, 0.2);
}

.delaai-theme-colorful #delaai-chat-close {
  color: #7a5f59;
}

.delaai-theme-colorful #delaai-chat-close:hover {
  background: rgba(255, 255, 255, 0.5);
  color: #5c4742;
  border-radius: 8px;
}

.delaai-theme-colorful .delaai-welcome-message::after {
  background: linear-gradient(90deg, transparent, rgba(255, 214, 204, 0.3), transparent);
}

.delaai-theme-colorful .delaai-message.assistant {
  background: linear-gradient(135deg, #f0f8f0 0%, #fef5e7 100%);
  color: #4a5d4b;
  border: 1px solid #e6f2e6;
}

.delaai-theme-colorful .delaai-message.user {
  background: linear-gradient(135deg, #e7f3ff 0%, #f0e7ff 100%);
  color: #4a5a6b;
  border: 1px solid #dde9f7;
}

.delaai-theme-colorful #delaai-chat-input {
  background: #fffbf7;
  border: 1px solid #ffe4db;
  color: #5c4742;
}

.delaai-theme-colorful #delaai-chat-input::placeholder {
  color: #b39a93;
}

.delaai-theme-colorful #delaai-chat-input:focus {
  border-color: #ffc4b3;
  background: white;
  box-shadow: 0 0 0 3px rgba(255, 214, 204, 0.2);
}

.delaai-theme-colorful #delaai-chat-send {
  background: linear-gradient(135deg, #a8d5ba 0%, #b8e6c1 100%);
  color: #2d5a3d;
  border: 1px solid #9bc9aa;
}

.delaai-theme-colorful #delaai-chat-send:hover {
  background: linear-gradient(135deg, #96c7a7 0%, #a6d9b0 100%);
  transform: scale(1.05);
  box-shadow: 0 3px 12px rgba(168, 213, 186, 0.3);
}

.delaai-theme-colorful .delaai-faq-item {
  background: linear-gradient(135deg, #fff5f0 0%, #f0f5ff 100%);
  color: #5c4742;
  border: 1px solid #ffe4db;
}

.delaai-theme-colorful .delaai-faq-item:hover {
  background: linear-gradient(135deg, #ffede5 0%, #e5edff 100%);
  border-color: #ffc4b3;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(255, 214, 204, 0.2);
}

.delaai-theme-colorful #delaai-chat-footer {
  border-top: 1px solid #ffe4db;
  background: linear-gradient(135deg, #fffbf7 0%, #fff9f5 100%);
}

.delaai-theme-colorful .delaai-footer-link {
  color: #7a5f59;
  font-weight: 500;
}

.delaai-theme-colorful .delaai-footer-link:hover {
  color: #5c4742;
}

/* ==================== HISTORY HEADER STYLES ==================== */
.delaai-theme-colorful .delaai-history-header {
  border-bottom-color: #ffe4db;
  color: #5c4742;
}

.delaai-theme-colorful .delaai-history-header h3 {
  color: #5c4742;
}

.delaai-theme-colorful .delaai-history-header-bottom {
  border-top-color: #ffe4db;
  background: rgba(255, 251, 247, 0.95);
}

/* ==================== MODERN CONVERSATION CARD DESIGN FOR COLORFUL THEME ==================== */
.delaai-theme-colorful .delaai-conversation-item {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid rgba(251, 191, 36, 0.2);
  box-shadow: 0 2px 8px rgba(251, 191, 36, 0.1);
}

/* Status indicator bar with warm gradient */
.delaai-theme-colorful .delaai-conversation-item::before {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

/* Icon area with soft orange gradient */
.delaai-theme-colorful .delaai-conversation-icon {
  background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
}

/* Sparkle emoji for colorful theme */
.delaai-theme-colorful .delaai-conversation-icon::after {
  content: '✨';
  font-size: 18px;
}

/* Hover state with warm tint */
.delaai-theme-colorful .delaai-conversation-item:hover {
  background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
  transform: translateX(4px) rotate(0.5deg);
  box-shadow: 0 6px 20px rgba(251, 146, 60, 0.2);
  border-color: rgba(251, 146, 60, 0.3);
}

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

/* Text colors for colorful theme */
.delaai-theme-colorful .delaai-conversation-date {
  color: #92400e;
}

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

.delaai-theme-colorful .delaai-conversation-text {
  color: #78350f;
}

/* Message count badge with gradient */
.delaai-theme-colorful .delaai-conversation-messages-count {
  background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
  color: white;
  border: none;
}

/* Active/selected conversation state */
.delaai-theme-colorful .delaai-conversation-item.active {
  background: linear-gradient(135deg, #fdba74 0%, #fb923c 100%);
  border-color: rgba(251, 146, 60, 0.4);
}

.delaai-theme-colorful .delaai-conversation-item.active::before {
  opacity: 1;
  width: 4px;
  background: linear-gradient(135deg, #dc2626 0%, #f97316 100%);
}

/* ==================== NAVIGATION BUTTONS ==================== */
.delaai-theme-colorful .delaai-back-to-history {
  color: #ea580c;
  font-weight: 600;
}

.delaai-theme-colorful .delaai-back-to-history:hover {
  background: rgba(251, 146, 60, 0.1);
  color: #c2410c;
}

/* ==================== DELETE BUTTON STYLING ==================== */
.delaai-theme-colorful .delaai-delete-conversation-btn {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #dc2626;
}

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

/* ==================== ACTION BUTTONS ==================== */
.delaai-theme-colorful .delaai-new-conversation-btn {
  background: linear-gradient(135deg, #a8d5ba 0%, #b8e6c1 100%);
  color: #2d5a3d;
  border: 1px solid #9bc9aa;
}

.delaai-theme-colorful .delaai-new-conversation-btn:hover {
  background: linear-gradient(135deg, #96c7a7 0%, #a6d9b0 100%);
}

.delaai-theme-colorful .delaai-new-conversation-btn-wide {
  background: linear-gradient(135deg, #ffd6cc 0%, #c9e4ca 100%);
  color: #5c4742;
  box-shadow: 0 2px 8px rgba(255, 214, 204, 0.2);
}

.delaai-theme-colorful .delaai-new-conversation-btn-wide:hover {
  background: linear-gradient(135deg, #ffcbb8 0%, #b8d9b9 100%);
  box-shadow: 0 4px 16px rgba(255, 214, 204, 0.3);
}

.delaai-theme-colorful .delaai-view-history-btn {
  background: linear-gradient(135deg, rgba(255, 214, 204, 0.2) 0%, rgba(201, 228, 202, 0.2) 100%);
  border: 1.5px solid rgba(255, 196, 179, 0.3);
  color: #7a5f59;
  font-weight: 500;
}

.delaai-theme-colorful .delaai-view-history-btn::before {
  display: none;
}

.delaai-theme-colorful .delaai-view-history-btn:hover {
  background: linear-gradient(135deg, rgba(255, 214, 204, 0.3) 0%, rgba(201, 228, 202, 0.3) 100%);
  border-color: rgba(255, 196, 179, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 214, 204, 0.2);
}

/* ==================== EMPTY STATE ==================== */
.delaai-theme-colorful .delaai-empty-state {
  color: #b39a93;
}

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

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

/* ==================== ATTACHMENT BUTTON ==================== */
.delaai-theme-colorful #delaai-chat-attach {
  background: linear-gradient(135deg, #fff5f0 0%, #f0f5ff 100%);
  color: #7a5f59;
  border: 1px solid #ffe4db;
}

.delaai-theme-colorful #delaai-chat-attach:hover {
  background: linear-gradient(135deg, #ffede5 0%, #e5edff 100%);
  color: #5c4742;
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(255, 214, 204, 0.2);
}

.delaai-theme-colorful #delaai-chat-attach.has-attachment {
  background: linear-gradient(135deg, #a8d5ba 0%, #b8e6c1 100%);
  color: #2d5a3d;
  border: 1px solid #9bc9aa;
}

/* ==================== REGISTRATION FORM COLORFUL THEME ==================== */
.delaai-theme-colorful .delaai-registration-form {
  background: linear-gradient(135deg, #fffbf7 0%, #fff9f5 100%);
  border: 1px solid #ffe4db;
  box-shadow: 0 4px 15px rgba(255, 214, 204, 0.15);
}

.delaai-theme-colorful .delaai-registration-title {
  color: #5c4742;
  border-bottom: 2px solid #ffe4db;
}

.delaai-theme-colorful .delaai-form-label {
  color: #7a5f59;
}

.delaai-theme-colorful .delaai-form-input {
  background: white;
  border: 1px solid #ffe4db;
  color: #5c4742;
}

.delaai-theme-colorful .delaai-form-input:focus {
  border-color: #ffc4b3;
  box-shadow: 0 0 0 3px rgba(255, 214, 204, 0.2);
}

.delaai-theme-colorful .delaai-form-input::placeholder {
  color: #d4b5ad;
}

.delaai-theme-colorful .delaai-submit-btn {
  background: linear-gradient(135deg, #a8d5ba 0%, #b8e6c1 100%);
  color: #2d5a3d;
  border: 1px solid #9bc9aa;
  box-shadow: 0 2px 6px rgba(168, 213, 186, 0.2);
}

.delaai-theme-colorful .delaai-submit-btn:hover {
  background: linear-gradient(135deg, #96c7a7 0%, #a6d9b0 100%);
  box-shadow: 0 4px 10px rgba(168, 213, 186, 0.3);
}

.delaai-theme-colorful .delaai-submit-btn:disabled {
  background: #f5f0ed;
  color: #d4b5ad;
  border: 1px solid #ffe4db;
  box-shadow: none;
}

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

.delaai-theme-colorful #delaai-chat-messages::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #ffd6cc 0%, #c9e4ca 100%);
  border-radius: 4px;
}

.delaai-theme-colorful #delaai-chat-messages::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #ffcbb8 0%, #b8d9b9 100%);
}

/* ==================== IMAGE PREVIEW ==================== */
.delaai-theme-colorful .delaai-image-preview-wrapper {
  background: rgba(255, 251, 247, 0.98);
  border: 1px solid #ffe4db;
  box-shadow: 0 4px 15px rgba(255, 214, 204, 0.15);
}

.delaai-theme-colorful .delaai-preview-info {
  background: linear-gradient(135deg, #fffbf7 0%, #fff9f5 100%);
  border-top: 1px solid #ffe4db;
}

.delaai-theme-colorful .delaai-preview-filename {
  color: #7a5f59;
}

.delaai-theme-colorful .delaai-preview-remove {
  color: #dc2626;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.15);
}

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

/* ==================== LAUNCHER OPTIONS CIRCLES ==================== */
/* Chat button - pastel coral theme */
.delaai-theme-colorful #delaai-option-chat {
  background: linear-gradient(135deg, #ffd6cc 0%, #ffb8a8 100%);
  color: #5c4742;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.delaai-theme-colorful #delaai-option-chat:hover {
  background: linear-gradient(135deg, #ffcbb8 0%, #ffa898 100%);
}

/* Voice button - pastel green theme */
.delaai-theme-colorful #delaai-option-voice {
  background: linear-gradient(135deg, #a8d5ba 0%, #96c7a7 100%);
  color: #2d5a3d;
  border: 1px solid #9bc9aa;
}

.delaai-theme-colorful #delaai-option-voice:hover {
  background: linear-gradient(135deg, #96c7a7 0%, #84b996 100%);
}

/* ==================== VOICE INTERFACE ==================== */
.delaai-theme-colorful .delaai-voice-title {
  color: #5c4742;
}

.delaai-theme-colorful .delaai-voice-icon {
  color: #7a5f59;
}

.delaai-theme-colorful .delaai-voice-sentences {
  background: linear-gradient(135deg, #fff5f0 0%, #f0f8f0 100%);
  border: 1px solid #ffe4db;
}

.delaai-theme-colorful .delaai-voice-sentences-label {
  color: #b39a93;
}

.delaai-theme-colorful .delaai-voice-sentence {
  color: #4a5d4b;
  background: #fffbf7;
  border-left-color: #a8d5ba;
}

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

.delaai-theme-colorful .delaai-voice-status {
  background: linear-gradient(135deg, #fffbf7 0%, #fff9f5 100%);
}

.delaai-theme-colorful .delaai-voice-status-text {
  color: #5c4742;
}

.delaai-theme-colorful .delaai-voice-wave {
  background: linear-gradient(180deg, #a8d5ba 0%, #96c7a7 100%);
}

.delaai-theme-colorful .delaai-voice-btn-start {
  background: linear-gradient(135deg, #a8d5ba 0%, #b8e6c1 100%);
  color: #2d5a3d;
  border: 1px solid #9bc9aa;
}

.delaai-theme-colorful .delaai-voice-btn-start:hover {
  background: linear-gradient(135deg, #96c7a7 0%, #a6d9b0 100%);
  box-shadow: 0 4px 12px rgba(168, 213, 186, 0.4);
}

.delaai-theme-colorful .delaai-voice-btn-end {
  background: linear-gradient(135deg, #f8a5a5 0%, #f28b8b 100%);
  color: #7f1d1d;
  border: 1px solid #f89898;
}

.delaai-theme-colorful .delaai-voice-btn-end:hover {
  background: linear-gradient(135deg, #f28b8b 0%, #ed7272 100%);
  box-shadow: 0 4px 12px rgba(248, 165, 165, 0.4);
}

.delaai-theme-colorful .delaai-voice-btn-secondary {
  background: #fffbf7;
  color: #7a5f59;
  border: 2px solid #ffe4db;
}

.delaai-theme-colorful .delaai-voice-btn-secondary:hover {
  background: linear-gradient(135deg, #fff5f0 0%, #ffede5 100%);
  border-color: #ffc4b3;
  color: #5c4742;
}

/* Phone Instruction for Mobile */
.delaai-theme-colorful .delaai-voice-phone-instruction {
  background: linear-gradient(135deg, #e7f3ff 0%, #f0e7ff 100%);
  border: 1px solid #dde9f7;
  box-shadow: 0 2px 8px rgba(219, 233, 247, 0.3);
}

.delaai-theme-colorful .delaai-voice-phone-instruction svg {
  color: #4a5a6b;
}

.delaai-theme-colorful .delaai-voice-phone-instruction span {
  color: #4a5a6b;
  font-weight: 500;
}

/* Call Duration - Soft pastel design */
.delaai-theme-colorful .delaai-voice-duration {
  background: linear-gradient(135deg, rgba(168, 213, 186, 0.15) 0%, rgba(168, 213, 186, 0.1) 100%);
  border: 1px solid rgba(168, 213, 186, 0.3);
  box-shadow: 0 2px 8px rgba(168, 213, 186, 0.15);
}

.delaai-theme-colorful .delaai-voice-duration svg {
  color: #5f9374;
}

.delaai-theme-colorful .delaai-voice-duration-text {
  color: #4a5d4b;
  font-weight: 500;
}

/* Voice Audio Controls */
.delaai-theme-colorful .delaai-voice-controls {
  background: linear-gradient(135deg, #fffbf7 0%, #fff9f5 100%);
  border: 1px solid #ffe4db;
  box-shadow: 0 4px 16px rgba(255, 214, 204, 0.15);
}

.delaai-theme-colorful .delaai-voice-control-btn {
  background: linear-gradient(135deg, #fff5f0 0%, #f0f8f0 100%);
  border: 1px solid #ffe4db;
  box-shadow: 0 2px 8px rgba(255, 214, 204, 0.1);
}

.delaai-theme-colorful .delaai-voice-control-btn:hover {
  background: linear-gradient(135deg, #ffede5 0%, #e5f3e5 100%);
  border-color: #ffc4b3;
  box-shadow: 0 4px 12px rgba(255, 214, 204, 0.2);
  transform: scale(1.05);
}

.delaai-theme-colorful .delaai-voice-control-icon {
  color: #7a5f59;
}

/* Muted state */
.delaai-theme-colorful .delaai-voice-control-btn.muted {
  background: linear-gradient(135deg, rgba(248, 165, 165, 0.2) 0%, rgba(248, 165, 165, 0.1) 100%);
  border-color: rgba(248, 165, 165, 0.4);
}

.delaai-theme-colorful .delaai-voice-control-btn.muted .delaai-voice-control-icon {
  color: #dc2626;
}

.delaai-theme-colorful .delaai-voice-control-btn.muted:hover {
  border-color: rgba(248, 165, 165, 0.6);
  box-shadow: 0 4px 12px rgba(248, 165, 165, 0.3);
}

/* Speaker active state */
.delaai-theme-colorful .delaai-voice-control-btn.speaker-active {
  background: linear-gradient(135deg, rgba(168, 213, 186, 0.2) 0%, rgba(168, 213, 186, 0.1) 100%);
  border-color: rgba(168, 213, 186, 0.4);
}

.delaai-theme-colorful .delaai-voice-control-btn.speaker-active .delaai-voice-control-icon {
  color: #2d5a3d;
}

.delaai-theme-colorful .delaai-voice-control-btn.speaker-active:hover {
  border-color: rgba(168, 213, 186, 0.6);
  box-shadow: 0 4px 12px rgba(168, 213, 186, 0.3);
}

/* Back Button */
.delaai-theme-colorful .delaai-voice-btn-back {
  background: #fffbf7;
  border: 1px solid #ffe4db;
  color: #7a5f59;
  box-shadow: 0 2px 8px rgba(255, 214, 204, 0.1);
}

.delaai-theme-colorful .delaai-voice-btn-back:hover {
  background: linear-gradient(135deg, #fff5f0 0%, #ffede5 100%);
  border-color: #ffc4b3;
  color: #5c4742;
  box-shadow: 0 4px 12px rgba(255, 214, 204, 0.2);
}

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

/* Volume Popup - Colorful Theme */
.delaai-theme-colorful .delaai-volume-popup {
  background: linear-gradient(135deg, rgba(255, 251, 247, 0.98) 0%, rgba(255, 249, 245, 0.98) 100%);
  border-color: rgba(255, 228, 219, 0.8);
  box-shadow: 0 4px 16px rgba(255, 214, 204, 0.2);
}

.delaai-theme-colorful .delaai-volume-popup-arrow {
  background: linear-gradient(135deg, rgba(255, 251, 247, 0.98) 0%, rgba(255, 249, 245, 0.98) 100%);
  border-left-color: rgba(255, 228, 219, 0.8);
  border-bottom-color: rgba(255, 228, 219, 0.8);
}

.delaai-theme-colorful .delaai-volume-popup-value {
  color: #5f9374;
  font-weight: 600;
}

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

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

.delaai-theme-colorful .delaai-volume-popup-slider::-webkit-slider-thumb {
  background: linear-gradient(135deg, #a8d5ba 0%, #96c7a7 100%);
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 1),
    0 2px 8px rgba(168, 213, 186, 0.5);
}

.delaai-theme-colorful .delaai-volume-popup-slider::-moz-range-thumb {
  background: linear-gradient(135deg, #a8d5ba 0%, #96c7a7 100%);
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 1),
    0 2px 8px rgba(168, 213, 186, 0.5);
}

.delaai-theme-colorful .delaai-volume-popup-slider::-webkit-slider-thumb:hover {
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 1),
    0 4px 12px rgba(168, 213, 186, 0.7);
}

.delaai-theme-colorful .delaai-volume-popup-slider::-moz-range-thumb:hover {
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 1),
    0 4px 12px rgba(168, 213, 186, 0.7);
}

.delaai-theme-colorful .delaai-volume-popup-fill {
  background: linear-gradient(90deg, #b8e6c1 0%, #a8d5ba 50%, #96c7a7 100%);
  box-shadow: 0 0 8px rgba(168, 213, 186, 0.4);
}