/* --- Resuelve Chatbot UI --- */
:root {
    --resuelve-primary: #2b7a78;
    --resuelve-dark: #1a2a40;
    --resuelve-glass: rgba(255, 255, 255, 0.95);
}

#resuelve-launcher {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--resuelve-primary) 0%, var(--resuelve-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(43, 122, 120, 0.4);
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#resuelve-launcher:hover {
    transform: scale(1.1) rotate(5deg);
}

#resuelve-container {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 380px;
    height: 550px;
    background: var(--resuelve-glass);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 15px 45px rgba(0,0,0,0.2);
    z-index: 9998;
    overflow: hidden;
    transform-origin: bottom right;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(255,255,255,0.2);
}

#resuelve-container.hidden {
    transform: scale(0) translateY(100px);
    opacity: 0;
    pointer-events: none;
}

.resuelve-header {
    background: var(--resuelve-dark);
    color: white;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.resuelve-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.resuelve-avatar {
    width: 40px;
    height: 40px;
    background: var(--resuelve-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.resuelve-header h3 {
    font-size: 1.1rem;
    margin: 0;
}

.resuelve-header span {
    font-size: 0.75rem;
    opacity: 0.8;
}

#resuelve-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: rgba(240, 242, 245, 0.5);
}

.message {
    max-width: 80%;
    padding: 0.8rem 1.2rem;
    border-radius: 15px;
    font-size: 0.9rem;
    line-height: 1.4;
    animation: msgIn 0.3s ease;
}

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

.message-bot {
    background: white;
    color: var(--resuelve-dark);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.message-user {
    background: var(--resuelve-primary);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.resuelve-input-area {
    padding: 1.2rem;
    background: white;
    display: flex;
    gap: 10px;
    border-top: 1px solid #eee;
}

#resuelve-input {
    flex: 1;
    border: none;
    padding: 0.5rem;
    outline: none;
    font-size: 0.9rem;
}

.resuelve-btn-send {
    background: var(--resuelve-primary);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.resuelve-suggestion {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.suggestion-chip {
    background: #e2e8f0;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.suggestion-chip:hover {
    background: var(--resuelve-primary);
    color: white;
}
