/* Dani Chat Styles */
.dani-chat-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: 'Cairo', sans-serif;
    direction: rtl;
}

.dani-trigger-btn {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F85C8A 0%, #ff7eb3 100%);
    box-shadow: 0 10px 25px rgba(248, 92, 138, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 3px solid white;
}

.dani-trigger-btn:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 35px rgba(248, 92, 138, 0.6);
}

.dani-trigger-btn i {
    color: white;
    font-size: 30px;
}

/* Chat Window */
.dani-chat-container {
    position: absolute;
    bottom: 85px;
    right: 0;
    width: 380px;
    height: 520px;
    background: white;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px) scale(0.9);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dani-chat-container.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

.dani-chat-header {
    background: linear-gradient(135deg, #F85C8A 0%, #ff7eb3 100%);
    padding: 20px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dani-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dani-avatar {
    width: 45px;
    height: 45px;
    background: white;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #F85C8A;
    font-size: 24px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dani-status {
    font-size: 10px;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 10px;
    margin-top: 2px;
    display: inline-block;
}

/* Messages Area */
.dani-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #fdf8f9;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.dani-msg {
    max-width: 85%;
    padding: 12px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
    position: relative;
    animation: daniSlideIn 0.3s ease;
}

@keyframes daniSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dani-msg.bot {
    align-self: flex-start;
    background: white;
    color: #444;
    border-bottom-right-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #fecdd3;
}

.dani-msg.user {
    align-self: flex-end;
    background: #F85C8A;
    color: white;
    border-bottom-left-radius: 5px;
    box-shadow: 0 8px 20px rgba(248, 92, 138, 0.2);
}

.voice-btn {
    position: absolute;
    left: -35px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #F85C8A;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #ffe4ed;
    transition: 0.2s;
}

.voice-btn:hover {
    background: #F85C8A;
    color: white;
}

/* Input Area */
.dani-input-area {
    padding: 20px;
    background: white;
    border-top: 1px solid #fecdd3;
    display: flex;
    gap: 10px;
}

.dani-input-area input {
    flex: 1;
    border: none;
    background: #f8fafc;
    padding: 12px 18px;
    border-radius: 15px;
    font-size: 14px;
    outline: none;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    transition: 0.2s;
}

.dani-input-area input:focus {
    background: white;
    box-shadow: 0 0 0 4px rgba(248, 92, 138, 0.1);
}

.dani-send-btn {
    width: 45px;
    height: 45px;
    background: #F85C8A;
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.2s;
}

.dani-send-btn:hover {
    background: #ff3366;
    transform: scale(1.05);
}

.dani-mic-btn {
    width: 45px;
    height: 45px;
    background: #f1f5f9;
    color: #64748b;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dani-mic-btn:hover {
    background: #e2e8f0;
    color: #F85C8A;
}

.dani-mic-btn.active {
    background: #F85C8A;
    color: white;
    box-shadow: 0 0 0 4px rgba(248, 92, 138, 0.2);
    animation: micPulse 1.5s infinite;
}

@keyframes micPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Responsive */
@media (max-width: 1024px) {
    .dani-chat-wrapper {
        bottom: 160px !important;
        right: 15px !important;
    }

    .dani-chat-container {
        width: calc(100vw - 40px);
        height: calc(100vh - 200px);
        bottom: 125px;
    }
}