/* ظرف اصلی محیط چت */
.sn-col-chat {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at center, #111436 0%, #060713 100%);
    position: relative;
}

/* هدر چت با افکت شیشه‌ای */
.sn-chat-header {
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ناحیه پیام‌ها */
.sn-messages-area {
    flex: 1;
    padding: 25px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* حباب پیام‌های ارسالی (ما) */
.sn-msg-row.sent {
    flex-direction: row-reverse;
    display: flex;
    gap: 12px;
    animation: msgBounceLeft 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sn-msg-bubble.sent {
    background: linear-gradient(135deg, #7d52f4 0%, #00d2ff 100%);
    color: white;
    padding: 12px 18px;
    border-radius: 20px 20px 0px 20px;
    max-width: 70%;
    box-shadow: 0 10px 20px rgba(125, 82, 244, 0.3);
    position: relative;
}

/* حباب پیام‌های دریافتی (مشتری) */
.sn-msg-row.received {
    display: flex;
    gap: 12px;
    animation: msgBounceRight 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sn-msg-bubble.received {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    padding: 12px 18px;
    border-radius: 20px 20px 20px 0px;
    max-width: 70%;
}

/* فوتر چت (محل تایپ) */
.sn-chat-footer {
    padding: 20px;
    background: transparent;
}

.sn-input-wrapper {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    display: flex;
    align-items: center;
    padding: 8px 15px;
    transition: 0.3s;
}

.sn-input-wrapper:focus-within {
    border-color: #7d52f4;
    box-shadow: 0 0 20px rgba(125, 82, 244, 0.2);
    background: rgba(255, 255, 255, 0.06);
}

.sn-chat-input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    padding: 10px;
    outline: none;
}

.sn-send-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7d52f4 0%, #00d2ff 100%);
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
}

.sn-send-btn:hover {
    transform: scale(1.1) rotate(-10deg);
    box-shadow: 0 0 20px #7d52f4;
}

/* انیمیشن‌های اختصاصی */
@keyframes msgBounceLeft {
    from { opacity: 0; transform: translateX(50px) scale(0.8); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes msgBounceRight {
    from { opacity: 0; transform: translateX(-50px) scale(0.8); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}
