@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500&display=swap');

/* هيكل الزر الرئيسي */
.whatsapp-float {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 9999;
    font-family: 'Tajawal', sans-serif;
    display: flex;
}

/* تصميم الزر المستطيل */
.whatsapp-float .btn {
    width: 50px;
    height: 120px;
    background-color: #25D366;
    color: white;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    padding: 15px 5px;
}

.whatsapp-float .btn:hover {
    background-color: #128C7E;
    width: 55px;
}

.whatsapp-float .btn-text {
    transform: rotate(180deg);
    margin-top: 10px;
    font-size: 14px;
    font-weight: bold;
}

/* القائمة المنسدلة */
.whatsapp-float .dropdown {
    width: 280px;
    background-color: white;
    border-radius: 8px 0 0 8px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
    position: absolute;
    right: 50px;
    top: 0;
}

.whatsapp-float.active .dropdown {
    max-height: 500px;
}

/* أقسام القائمة */
.whatsapp-float .dropdown-section {
    border-bottom: 1px solid #f0f0f0;
}

.whatsapp-float .dropdown-section:last-child {
    border-bottom: none;
}

.whatsapp-float .dropdown-title {
    padding: 12px 15px;
    background-color: #f8f8f8;
    color: #444;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.whatsapp-float .dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.whatsapp-float .dropdown-section.active .dropdown-content {
    max-height: 500px;
}

.whatsapp-float .dropdown-item {
    padding: 12px 15px;
    color: #555;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.whatsapp-float .dropdown-item:hover {
    background-color: #f5f5f5;
    color: #000;
}

.whatsapp-float .dropdown-arrow {
    transition: transform 0.3s;
    font-size: 12px;
}

.whatsapp-float .dropdown-section.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* التجاوب مع الشاشات الصغيرة */
@media (max-width: 768px) {
    .whatsapp-float .dropdown {
        width: 250px;
    }
    
    .whatsapp-float .btn {
        height: 100px;
        width: 40px;
        font-size: 20px;
    }
    
    .whatsapp-float.active .dropdown {
        max-height: 400px;
    }
}






 
.p-\[1\.4rem\] {
    padding: 1.4rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(249, 243, 249, 0.98) 100%);
    border-radius: 24px;
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    box-shadow: 
        0 25px 50px -12px rgba(138, 63, 145, 0.25),
        0 10px 30px rgba(190, 45, 145, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -2px 0 rgba(138, 63, 145, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(20px);
    overflow: hidden;
}

.p-\[1\.4rem\]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, 
        rgba(170, 90, 200, 0.4) 0%, 
        rgba(230, 120, 200, 0.2) 25%,
        rgba(255, 150, 210, 0.1) 50%,
        rgba(230, 120, 200, 0.2) 75%,
        rgba(170, 90, 200, 0.4) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: 0;
}

.p-\[1\.4rem\]::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.p-\[1\.4rem\]:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 35px 60px -12px rgba(138, 63, 145, 0.35),
        0 15px 40px rgba(190, 45, 145, 0.25),
        inset 0 2px 0 rgba(255, 255, 255, 0.6),
        inset 0 -3px 0 rgba(138, 63, 145, 0.15);
}

.p-\[1\.4rem\]:hover::after {
    animation: luxury-shimmer 1.5s forwards;
    opacity: 1;
}

@keyframes luxury-shimmer {
    0% {
        transform: rotate(45deg) translateX(-100%);
    }
    100% {
        transform: rotate(45deg) translateX(100%);
    }
}

.p-\[1\.4rem\]:active {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 
        0 15px 30px -12px rgba(138, 63, 145, 0.2),
        0 8px 20px rgba(190, 45, 145, 0.15),
        inset 0 2px 0 rgba(138, 63, 145, 0.1),
        inset 0 -1px 0 rgba(255, 255, 255, 0.3);
}