/* Dragon Widget Styles */
#dragon-widget-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    font-family: 'Inter', sans-serif;
}

#dragon-widget-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #1a1a1a;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#dragon-widget-btn:hover {
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.6);
    transform: scale(1.05);
}

#dragon-widget-window {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 380px;
    height: 500px;
    background-color: #111;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.9);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    transform-origin: bottom right;
}

#dragon-widget-window.open {
    transform: scale(1);
    opacity: 1;
    pointer-events: all;
}

#dragon-widget-header {
    background-color: #1a1a1a;
    color: white;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
}

#dragon-widget-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

#dragon-widget-close {
    background: none;
    border: none;
    color: #888;
    font-size: 20px;
    cursor: pointer;
    transition: color 0.2s;
}

#dragon-widget-close:hover {
    color: white;
}

#dragon-widget-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dragon-msg-bubble {
    padding: 10px 14px;
    border-radius: 12px;
    max-width: 80%;
    font-size: 14px;
    line-height: 1.4;
    animation: fadeIn 0.3s ease;
    color: white;
}

.dragon-msg-dragon {
    background-color: #2a2a2a;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.dragon-msg-user {
    background-color: #4a4a4a;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

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

#dragon-widget-input-area {
    display: flex;
    padding: 12px;
    background-color: #1a1a1a;
    border-top: 1px solid #333;
}

#dragon-widget-input {
    flex: 1;
    background-color: #000;
    border: 1px solid #333;
    color: white;
    padding: 10px 14px;
    border-radius: 20px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

#dragon-widget-input:focus {
    border-color: #ff4500;
}

#dragon-widget-send {
    background: none;
    border: none;
    font-size: 20px;
    margin-left: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

#dragon-widget-send:hover {
    transform: scale(1.1);
}

.dragon-typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background-color: #2a2a2a;
    border-radius: 12px;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    width: fit-content;
}

.dragon-dot {
    width: 6px;
    height: 6px;
    background-color: #888;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out both;
}

.dragon-dot:nth-child(1) { animation-delay: -0.32s; }
.dragon-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

@media (max-width: 480px) {
    #dragon-widget-window {
        width: calc(100vw - 48px);
        height: 400px;
    }
}
