/* 
 * Dabbas Contact Widget Styles
 * Luxury Gold & Black Theme
 */

 .dabbas-contact-widget-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
    font-family: 'Inter', sans-serif; /* Fallback, theme should provide it */
}

/* The Popup Menu */
.dabbas-widget-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transform-origin: bottom right;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.dabbas-widget-menu.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Menu Items */
.dabbas-widget-item {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    text-decoration: none !important;
    group: item;
}

.dabbas-widget-tooltip {
    background: #111;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    white-space: nowrap;
    pointer-events: none;
}

.dabbas-widget-item:hover .dabbas-widget-tooltip {
    opacity: 1;
    transform: translateX(0);
}

.dabbas-widget-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;
}

.dabbas-widget-item:hover .dabbas-widget-icon {
    transform: scale(1.1);
}

.dabbas-widget-icon svg {
    width: 24px;
    height: 24px;
}

/* Brand Colors */
.whatsapp-item .dabbas-widget-icon {
    background: #25D366; /* WhatsApp Green */
}
.phone-item .dabbas-widget-icon {
    background: linear-gradient(135deg, #d4af37 0%, #aa8c2c 100%); /* Gold */
}
.email-item .dabbas-widget-icon {
    background: #333; /* Dark Gray */
}

/* Main Toggle Button */
.dabbas-widget-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4af37 0%, #aa8c2c 100%);
    border: none;
    color: #080E17;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
}

.dabbas-widget-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.5);
}

.dabbas-widget-toggle svg {
    width: 28px;
    height: 28px;
}

/* Toggle Animation State */
.dabbas-contact-widget-container.is-open .dabbas-widget-toggle {
    background: #111;
    color: #fff;
    transform: rotate(90deg);
}

.dabbas-contact-widget-container.is-open .dabbas-icon-chat {
    display: none;
}

.dabbas-contact-widget-container.is-open .dabbas-icon-close {
    display: block !important;
}

/* Responsive */
@media (max-width: 600px) {
    .dabbas-contact-widget-container {
        bottom: 20px;
        right: 20px;
    }
    
    .dabbas-widget-tooltip {
        display: none; /* Hide tooltips on mobile to avoid screen bleed */
    }
    
    .dabbas-widget-toggle {
        width: 55px;
        height: 55px;
    }
    
    .dabbas-widget-icon {
        width: 45px;
        height: 45px;
    }
}
