﻿.chat-widget {
    position: fixed;
    bottom: 20px;
    right: -250px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 9999;
    transition: all 0.4s ease;
}
    .chat-widget.show {
        right: 20px;
    }
/* زر الفتح */
.chat-toggle {
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    transition: 0.3s;
}

    .chat-toggle:hover {
        transform: scale(1.1);
    }

/* صندوق الدردشة */
.chat-box {
    width: 320px;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    position: absolute;
    bottom: 80px;
    right: 0;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
}
 
    .chat-box.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

/* Header */
.chat-header {
    background: #25D366;
    color: #fff;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-title {
    display: flex;
    gap: 10px;
    align-items: center;
}

    .chat-title i {
        font-size: 24px;
    }

    .chat-title small {
        display: block;
        font-size: 12px;
    }

.close-btn {
    cursor: pointer;
    font-size: 20px;
}

/* Body */
.chat-body {
    padding: 15px;
}

.welcome {
    margin-bottom: 10px;
}

.quick-msg {
    display: block;
    width: 100%;
    margin-bottom: 8px;
    padding: 10px;
    border: none;
    background: #f1f1f1;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
}

    .quick-msg:hover {
        background: #e0e0e0;
    }

/* Footer */
.chat-footer {
    display: flex;
    border-top: 1px solid #eee;
}

    .chat-footer input {
        flex: 1;
        border: none;
        padding: 10px;
        outline: none;
    }

    .chat-footer button {
        background: #25D366;
        border: none;
        color: #fff;
        padding: 0 15px;
        cursor: pointer;
    }

/* Mobile */
@media(max-width: 480px) {
    .chat-box {
        width: 90vw;
    }
}
