/**
 * Iris Assist Chatbot Styles
 * Iris Optiek - Zichtbaar Beter
 */

/* Widget Container */
#iris-assist-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Toggle Button */
.iris-chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a365d 0%, #2d5a87 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(26, 54, 93, 0.4);
    transition: all 0.3s ease;
    position: relative;
}

.iris-chat-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(26, 54, 93, 0.5);
}

.iris-chat-toggle svg {
    width: 28px;
    height: 28px;
    color: white;
}

.iris-chat-toggle .chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 22px;
    height: 22px;
    background: #d4a853;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
    color: #1a365d;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Chat Window */
.iris-chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    height: 550px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Chat Header */
.iris-chat-header {
    background: linear-gradient(135deg, #1a365d 0%, #2d5a87 100%);
    color: white;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.iris-chat-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.iris-avatar {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.iris-avatar svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.iris-chat-title h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.iris-status {
    font-size: 12px;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 6px;
}

.iris-status::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
}

.iris-chat-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.iris-chat-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.iris-chat-close svg {
    width: 20px;
    height: 20px;
    color: white;
}

/* Messages Container */
.iris-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #f8fafc;
}

/* Message Styles */
.iris-message {
    max-width: 85%;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.iris-message-user {
    align-self: flex-end;
}

.iris-message-assistant {
    align-self: flex-start;
}

.iris-message-content {
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
}

.iris-message-user .iris-message-content {
    background: linear-gradient(135deg, #1a365d 0%, #2d5a87 100%);
    color: white;
    border-bottom-right-radius: 4px;
}

.iris-message-assistant .iris-message-content {
    background: white;
    color: #1e293b;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.iris-message-content strong {
    font-weight: 600;
}

/* Message Actions */
.iris-message-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.iris-action-btn {
    padding: 8px 14px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #1a365d;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.iris-action-btn:hover {
    background: #1a365d;
    color: white;
    border-color: #1a365d;
}

.iris-action-phone:hover,
.iris-action-maps:hover {
    background: #d4a853;
    color: #1a365d;
    border-color: #d4a853;
}

/* Typing Indicator */
.iris-typing-indicator {
    display: flex;
    gap: 4px;
    padding: 16px;
    background: white;
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.iris-typing-indicator span {
    width: 8px;
    height: 8px;
    background: #94a3b8;
    border-radius: 50%;
    animation: typing 1.4s infinite both;
}

.iris-typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.iris-typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-8px);
    }
}

/* Input Area */
.iris-chat-input {
    padding: 16px;
    background: white;
    border-top: 1px solid #e2e8f0;
}

.iris-quick-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.iris-quick-btn {
    padding: 6px 12px;
    background: #f1f5f9;
    border: none;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.iris-quick-btn:hover {
    background: #1a365d;
    color: white;
}

.iris-input-form {
    display: flex;
    gap: 10px;
}

.iris-input-form input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 24px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.iris-input-form input:focus {
    border-color: #1a365d;
}

.iris-input-form input::placeholder {
    color: #94a3b8;
}

.iris-input-form button {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #d4a853 0%, #c9a227 100%);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.iris-input-form button:hover {
    transform: scale(1.05);
}

.iris-input-form button svg {
    width: 20px;
    height: 20px;
    fill: #1a365d;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    #iris-assist-widget {
        bottom: 10px;
        right: 10px;
    }
    
    .iris-chat-toggle {
        width: 54px;
        height: 54px;
    }
    
    .iris-chat-window {
        position: fixed;
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .iris-chat-messages {
        padding: 16px;
    }
    
    .iris-message {
        max-width: 90%;
    }
}

/* Hidden utility class */
.hidden {
    display: none !important;
}
