.wsc-chat-widget {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 380px;
    height: 500px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    z-index: 10000;
    font-family: 'Vazir', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.3s ease;
}

.wsc-chat-widget.wsc-minimized {
    height: 60px;
    width: 300px;
}

.wsc-chat-widget.wsc-minimized .wsc-chat-body {
    display: none;
}

.wsc-chat-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    border-radius: 15px 15px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.wsc-chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-left: 10px;
}

.wsc-chat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wsc-chat-info {
    flex: 1;
}

.wsc-chat-info strong {
    display: block;
    font-size: 14px;
}

.wsc-chat-status {
    font-size: 12px;
    opacity: 0.8;
}

.wsc-chat-status.wsc-online {
    color: #4ade80;
}

.wsc-chat-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
}

.wsc-chat-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.wsc-chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f8f9fa;
}

.wsc-message {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.wsc-bot-message {
    align-items: flex-start;
}

.wsc-user-message {
    align-items: flex-end;
}

.wsc-bot-message .wsc-message-content {
    background: white;
    padding: 12px 15px;
    border-radius: 18px 18px 18px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    max-width: 80%;
}

.wsc-user-message .wsc-message-content {
    background: #667eea;
    color: white;
    padding: 12px 15px;
    border-radius: 18px 18px 0 18px;
    max-width: 80%;
}

.wsc-message-time {
    font-size: 11px;
    color: #6c757d;
    margin-top: 5px;
}

.wsc-chat-input-area {
    padding: 15px;
    border-top: 1px solid #e9ecef;
}

.wsc-input-group {
    display: flex;
    margin-bottom: 10px;
}

.wsc-input-group input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 25px;
    outline: none;
    font-family: inherit;
    direction: rtl;
}

.wsc-input-group input:focus {
    border-color: #667eea;
}

.wsc-input-group button {
    background: #667eea;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin-right: 10px;
    cursor: pointer;
}

.wsc-quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.wsc-quick-reply {
    background: #e9ecef;
    border: none;
    border-radius: 15px;
    padding: 8px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.3s;
    direction: rtl;
}

.wsc-quick-reply:hover {
    background: #667eea;
    color: white;
}

.wsc-typing-indicator {
    display: none;
    padding: 10px 15px;
    color: #6c757d;
    font-style: italic;
}

.wsc-typing-indicator.active {
    display: block;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .wsc-chat-widget {
        width: 90vw;
        left: 5vw;
        right: 5vw;
        height: 70vh;
    }
    
    .wsc-chat-widget.wsc-minimized {
        width: 80vw;
    }
}