/**
 * AI Customer Care Widget CSS
 * Additional styling for the AI widget
 */

/* Widget Container */
#ai-widget-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Chat Button */
#ai-widget-button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#ai-widget-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

#ai-widget-button:active {
    transform: scale(0.95);
}

/* Chat Window */
#ai-widget-window {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.1);
}

/* Header */
#ai-widget-header h4 {
    font-weight: 600;
    letter-spacing: -0.025em;
}

#ai-widget-header small {
    font-size: 12px;
    opacity: 0.9;
}

/* Close Button */
#ai-widget-close {
    transition: all 0.2s ease;
    border-radius: 50%;
}

#ai-widget-close:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

/* Messages */
#ai-widget-messages {
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f1f1f1;
}

#ai-widget-messages::-webkit-scrollbar {
    width: 6px;
}

#ai-widget-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

#ai-widget-messages::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

#ai-widget-messages::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Input Area */
#ai-widget-input {
    transition: 0.2s ease;
}

#ai-widget-input:focus {
    box-shadow: 0 0 0 2px rgba(255,255,255,0.25);
}

#ai-widget-send {
    border: none;
    border-radius: 100%;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#ai-widget-send:hover {
    transform: rotate(45deg);
}

/* Typing Indicator */
#ai-widget-typing .dot {
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #666;
    margin-left: 2px;
}

/* Responsive Design */
@media (max-width: 480px) {
    #ai-widget-window {
        width: calc(100vw - 40px);
        right: 20px;
        left: 20px;
    }
    
    #ai-widget-button {
        bottom: 15px;
        right: 15px;
        width: 55px;
        height: 55px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    #ai-widget-window {
        background: #1a1a1a;
    }
    
    #ai-widget-messages {
        background: #2d2d2d;
    }
    
    #ai-widget-input::placeholder {
        color: #888;
    }

}

/* Animation Classes */
.ai-widget-fade-in {
    animation: ai-widget-fade-in 0.3s ease-out;
}

.ai-widget-slide-up {
    animation: ai-widget-slide-up 0.3s ease-out;
}

@keyframes ai-widget-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes ai-widget-slide-up {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom Themes */
.ai-widget-theme-dark {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --text-color: #ecf0f1;
    --background-color: #2c3e50;
    --border-color: #34495e;
}

.ai-widget-theme-light {
    --primary-color: #ffffff;
    --secondary-color: #95a5a6;
    --text-color: #2c3e50;
    --background-color: #ffffff;
    --border-color: #bdc3c7;
}

.ai-widget-theme-green {
    --primary-color: #27ae60;
    --secondary-color: #2ecc71;
    --text-color: #ffffff;
    --background-color: #ffffff;
    --border-color: #bdc3c7;
}

/* Reset Button */
#ai-widget-reset {
    transition: transform 0.5s ease;
}

#ai-widget-reset:hover {
    transform: rotate(-45deg);
}

/* Accessibility */
#ai-widget-button:focus,
#ai-widget-close:focus,
#ai-widget-input:focus {
    outline: 2px solid #000000;
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    #ai-widget-button {
        border: 2px solid #000;
    }
    
    #ai-widget-window {
        border: 2px solid #000;
    }
    
    #ai-widget-input {
        border: 2px solid #000;
    }
}


