/* AI Support Agent Styles - Doctor Roofing Premium */

.dr-bot-container {
    position: fixed;
    bottom: 95px; /* Above WhatsApp button */
    right: 30px;
    z-index: 9998;
    font-family: 'Outfit', sans-serif;
}

.dr-bot-bubble {
    background: #dfa646;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(223, 166, 70, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.dr-bot-bubble:hover {
    transform: scale(1.05) translateY(-5px);
    border-color: #c5a059;
}

.dr-bot-status-dot {
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 10px #22c55e;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.dr-bot-window {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 380px;
    height: 550px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    display: none; /* Controlled by JS */
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    animation: slideUp 0.4s ease-out;
    border: 1px solid #e2e8f0;
}

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

.dr-bot-header {
    background: #0f172a;
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dr-bot-agent-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dr-bot-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #c5a059;
}

.dr-bot-messages {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #f8fafc;
}

.dr-msg {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 15px;
    font-size: 14px;
    line-height: 1.5;
}

.dr-msg-bot {
    background: white;
    color: #1e293b;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.dr-msg-user {
    background: #0f172a;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.dr-bot-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
}

.dr-opt-btn {
    background: white;
    border: 1px solid #c5a059;
    color: #0f172a;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.dr-opt-btn:hover {
    background: #c5a059;
    color: white;
}

.dr-bot-input-area {
    padding: 15px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 10px;
}

.dr-bot-input {
    flex-grow: 1;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 8px 15px;
    outline: none;
    font-size: 14px;
}

.dr-bot-input:focus {
    border-color: #c5a059;
}

.dr-bot-send {
    background: #0f172a;
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Typing Indicator */
.typing {
    display: flex;
    gap: 4px;
    padding: 10px;
}
.dot {
    width: 6px; height: 6px; background: #cbd5e1; border-radius: 50%;
    animation: blink 1.4s infinite;
}
.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes blink {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}
